Skip to Content
-1

ADD CULOMN REMAKS IN FUNCTION MODULE ZPI_IB_PO

Hai guys,

i want to add column remaks in function ZPI_IB_PO, and call function BAPI_PO_CREATE1 , but the output not show, please correct my code.

  data: POH_TEXT_HEADER type BAPIMEPOTEXTHEADER.
poh_headerx-doc_date = it_datapo-budat.
    IF ct_datapo-zreturn eq 'N'.
      poh_headerx-DOC_TYPE = 'NB'.
    ENDIF.
    IF ct_datapo-zreturn eq 'Y'.
      poh_headerx-DOC_TYPE = 'ZPOR'.
    ENDIF.
    POH_TEXT_HEADER-PO_NUMBER = IT_ZPI_TR_PO_H-EBELN.
    POH_TEXT_HEADER-TEXT_LINE = IT_DATAPO-ZREMAKS.
    POH_TEXT_HEADER-PO_ITEM = IT_DATAPO-EBELP.
 call function 'BAPI_PO_CREATE1'
 exporting
 POHEADER = poh_header
 POHEADERX = poh_headerx
 POTEXTHEADER = POH_TEXT_HEADER
 importing
 EXPPURCHASEORDER = po_ebeln
 tables
 POITEM = po_item
 POSCHEDULE = po_item_schedule
 POITEMX = po_itemx
 POSCHEDULEX = po_item_schedulex
 return = po_ret.
 call function 'BAPI_TRANSACTION_COMMIT'
 exporting
 wait = 'X'.
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 08, 2019 at 07:42 AM

    Did you set ? (I think this is your REMARK)

    poh_headerx-text_line = abap_true.
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.