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

BAPI_PR_CREATE ignores parameters

Former Member
0 Likes
686

Hi,

I´m using BAPI_PR_CREATE (and BAPI_TRANSACTION_COMMIT) to create a purchase requisition.

I'm passing PRITEM, PRITEMX, PRACCOUNT, PRACCOUNTX, PRHEADER, PRHEADERX, PRITEMTEXT and PRHEADERTEXT.

This is working fine, the PR is created without any warnings or errors and can be edited in ME53n.

The problem is, when viewing my PR, there are no values for internal item memo and internal header memo although I´m passing PRITEMTEXT and PRHEADERTEXT.

To example PRHEADERTEXT looks like:

wa_prheadertext-text_id = 'ST'.
wa_prheadertext-text_form = '*'.
wa_prheadertext-text_line = 'This is my internal header memo !!!'.

Is there a BAPI-problem?

Regards,

Jan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
425

<b>wa_prheadertext-text_id = 'B01'.</b>

u have to pass like this for header.

for more info reg text ids check SE75.

Regards

Prabhu

2 REPLIES 2
Read only

Former Member
0 Likes
426

<b>wa_prheadertext-text_id = 'B01'.</b>

u have to pass like this for header.

for more info reg text ids check SE75.

Regards

Prabhu

Read only

0 Likes
425

Thank you, works fine now!!!