2009 Aug 12 8:32 AM
Hi All,
I Used Bapi u2018BAPI_PR_CREATEu2019 to create PR,
but I found a problem.when uploded data for multiple line items in PR , then I found the created PR in ME53N the items are the same, means Quantity and valuation price field are uploaded same for all line items.
Please help.
Thanks and Regards,
Aman.
Hi All,
I Used Bapi u2018BAPI_PR_CREATEu2019 to create PR,
but I found a problem.when uploded data for multiple line items in PR , then I found the created PR in ME53N the items are the same, means Quantity and valuation price field are uploaded same for all line items.
Please help.
Thanks and Regards,
Aman.
2009 Aug 12 1:34 PM
Hi,
try to check with your internal table which you are passing to this FM.and also try to pass the value to PRITEMX parameter.
Thanks,
2009 Aug 12 1:45 PM
Hi,
Try this
{Sample Code}
wa_headerx-pr_type = 'X'.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
prheader = wa_header " Header Data
prheaderx = wa_headerx "Header data with 'X'
IMPORTING
number = pw_pr_number
TABLES
return = t_return
pritem = t_item
pritemx = t_itemx
pritemsource = t_itemsource
pritemtext = t_itext
EXCEPTIONS
OTHERS = 1.
{Sample Code}
Regards
Krishna
2009 Aug 13 2:15 PM
Hi,
Can you please send your code ? Also, try to clear workareas everytime after you append it to internal table.
KR Jaideep,
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |