Skip to Content
0
May 31, 2016 at 06:59 AM

Adding header text to bapi_pr_create is not working?

255 Views

I am using bapi_pr_create for creating a program that create Purchase requisition. What I want is to add header text to be added to newly created PR. I am using following snippet to upload the header text to the program.

prheadertext-preq_item = line_item.

prheadertext-text_id = 'B01'.

prheadertext-text_form = 'EN'.

prheadertext-text_line = 'test line'.

append prheadertext.

clear prheadertext.

.

.

.

.

CALL FUNCTION 'BAPI_PR_CREATE'

EXPORTING

prheader = zprheader

prheaderx = zprheaderx

testrun = ''

IMPORTING

number = result

* PRHEADEREXP =

TABLES

return = return

pritem = pritem

pritemx = pritemx

pritemtext = pritemtext .

prheadertext = prheadertext.




But the above method is not working.

Please suggest.

Hitesh.