Skip to Content

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

BAPI_INCOMINGINVOICE_SAVE extensionin

Hi experts,

There is a custom field, YUUD, in an append (ZZUUID) of table RBKP.

We hace a report to create documents using bapi BAPI_INCOMINGINVOICE_SAVE  and I need to save this new field YUUD. My code is as follows:

DATA: i_extensionin TYPE TABLE OF bapiparex,
       w_extensionin LIKE LINE OF i_extensionin.

...

[fill header data]

[fill item data]

MOVE pe_factura-yuud TO wa_zzuuid-yuud.

   MOVE 'ZZUUID' TO w_extensionin-structure.
   MOVE wa_zzuuid TO w_extensionin-valuepart1.
   APPEND w_extensionin TO i_extensionin.


CALL FUNCTION 'BAPI_INCOMINGINVOICE_SAVE'
       EXPORTING
         headerdata           = headerdata
         additionalheaderdata = additionalheaderdata
         refdoccategory       = refdoccategory
*       ADDRESSDATA          =
       IMPORTING
         invoicedocnumber     = invoicedocnumber
         fiscalyear           = fiscalyear
       TABLES
*       SELECTPO             = selectpo
         selectdelivery       = selectdelivery
*       SELECTBILLLADING     =
*       SELECTSERVICE        =
*       SELECTPLANT          =
         taxdata              = itax
*       WITHTAXDATA          =
*       VENDORITEMSPLITDATA  =
         return               = return
         extensionin          = i_extensionin.

But the value is not saved into RBKP-YUUD. Is there anything wrong ? thanks in advance !


Maria

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question