Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to use the field checkbox for bapi parameter ?

Dear All,

Now, i find some code as below.

The BAPI is uesd to create or update the sales order; but checkbox for bapi parameter have not been give values 'X'. why?

take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.

Could you teach what happed?

...........................

case gt_all_hd-sd_doc_cat.

when 'C'.

call function 'BAPI_SALESORDER_CREATEFROMDAT2'

exporting

order_header_in = gs_order_hd

importing

salesdocument = gv_vbeln

tables

return = gt_return

order_items_in = gt_items

order_partners = gt_partners

order_schedules_in = gt_schedules

order_conditions_in = gt_conditions.

when others.

call function 'BAPI_SALESDOCU_CREATEFROMDATA1'

exporting

sales_header_in = gs_order_hd1

importing

salesdocument_ex = gv_vbeln

tables

return = gt_return

sales_items_in = gt_item1

sales_partners = gt_part1

sales_schedules_in = gt_sch1

sales_conditions_in = gt_cond1.

endcase.

....................

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question