BAPI QUOTATION

Create Quatation
‘BAPI_QUOTATION_CREATEFROMDATA’

Change Quotation
‘BAPI_CUSTOMERQUOTATION_CHANGE’

Change Text
Bila text-nya ingin diubah, bisa gunakan function module SAVE_TEXT

  data : lx_header type thead,
         lt_lines type table of tline with header line.

  lx_header-tdobject = 'VBBK'. "text object, dilihat di tcode VOTXN
  lx_header-tdname = salesdocument.
  lx_header-tdid = 'ZQU1'. "diisi berdasarkan salesdoctype di tcode VOTXN
  lx_header-tdspras = sy-langu.

  refresh lt_lines.
  lt_lines-tdformat = '*'.
  lt_lines-tdline = biaya_resiko_sendiri.
  append lt_lines. clear lt_lines.

  call function 'SAVE_TEXT'
    exporting
      client          = sy-mandt
      header          = lx_header
      savemode_direct = 'X'
    tables
      lines           = lt_lines
    exceptions
      id              = 1
      language        = 2
      name            = 3
      object          = 4
      others          = 5.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s