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

problem with bapi_pr_create urgent

Former Member
0 Likes
1,129

Hi all,

Iam trying to test BAPI_PR_CREATE manually in ECC 6.0. I am passing pritem parameters. After executing this diplaying an error 'enter doc type'.

after entering doctype also it is giving the same error. So please suggest me how i have to test.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
788

Hi

<b>Please read the function module SAP standard documentation in SE37 Transaction for this BAPI function module.</b>

<u>Other links of interest.</u>

<b>

Regards

- Atul

4 REPLIES 4
Read only

Former Member
0 Likes
789

Hi

<b>Please read the function module SAP standard documentation in SE37 Transaction for this BAPI function module.</b>

<u>Other links of interest.</u>

<b>

Regards

- Atul

Read only

0 Likes
788

Thanks Atul,

I saw all things i have not got any answer my question. My question is why the exception eventhough i enter doctype.

Thanks

Read only

0 Likes
788

Hi

<b>Ensure that for all the values which you are passing in PRITEM table will have a corresponding Flag set as 'X' in the the PRITEMX (Item table).

Similarly, Also, Ensure that for all the values which you are passing in PRHEADER table will have a corresponding Flag set as 'X' in the the PRHEADERX (Header table).</b>

<u>See this sample code.</u>

prheader (Header Table)

prheader-PREQ_NO	= '0000000010'.
prheader-PR_TYPE   = 'NB'. "Purchase Requistion - Doc Type
prheader-GENERAL_RELEASE = '1'.
append prheader.

Prheaderx (Header Flag Table)

prheaderx-PREQ_NO	= 'X'.
prheaderx-PR_TYPE   = 'X'. 
prheaderx-GENERAL_RELEASE = 'X'.
append prheaderx.

Regards

- Atul

Read only

0 Likes
788

Thanku Atul,

Now it is working.

Cheers..