Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create PR header text via BAPI

Former Member
0 Likes
1,170

Dear all,

Is there any BAPI which enable us to create the header text for the purchase requisition?

I have tried out BAPI BAPI_REQUISITION_CREATE but the text creation is at item level.

Please advise.

Thank you in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
552

Hi,

Since the text could be read using FM 'READ_TEXT', then it should be able to save it using FM 'SAVE_TEXT'.

Or you could use LSMW with direct input method with object 0001 method 0001 and program name /SAPDMC/SAP_LSMW_IMPORT_TEXTS.

Another method is by using BDC after BAPI_REQUISITION_CREATE.

Please note that above method only applicable if the PR is successfully created.

Regards,

Teddy Kurniawan

Read only

Former Member
0 Likes
552

edit_text if you want to popup text screen to enter text.

save_text to pass text from program.