Skip to Content
0
Former Member
Nov 28, 2006 at 03:54 PM

A question of BAPI_BILLINGDOC_CREATEMULTIPLE

1806 Views

i have BAPI_BILLINGDOC_CREATEMULTIPLE working OK with this code:

wa_vbrk-ref_doc = '0010001318'.

wa_vbrk-ref_item = '000010'.

wa_vbrk-ref_doc_ca = 'C'.

wa_vbrk-bill_date = sy-datum.

APPEND wa_vbrk .

wa_text-ref_doc = '0010001318'.

wa_text-ref_item = '000010'.

wa_text-applobject = 'VBBP'.

wa_text-text_id = 'Z010'. "or '0001' i have tried both

wa_text-langu = sy-langu.

wa_text-format_col = '*'.

wa_text-text_line = 'test text'.

APPEND wa_text.

break abap.

CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

TABLES

billingdatain = wa_vbrk

textdatain = wa_text

return = t_return

success = t_success.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = t_commit_return.

the sales order document has only one position '000010'. The problem is that im trying to insert a 'position text', in my example was 'test text'. the fact is that when i run my program the text is not being saved on the ' position texts '.

Any suggest please???????

As usual, rewarding points for help!!

thanks in advance. Andrew Arg

Message was edited by:

Andrew Argen