05-05-2009 5:16 AM
hi all,
how can i pass header text to Purchase requisition via BAPI_REQUISITION_CREATE.
thanks in advance,
prasanna kumar
05-05-2009 6:33 AM
Jaya,
The short answer is that this is not possible using a the BAPI.
Cheers,
Neil.
07-16-2009 3:45 PM
I'm also trying to do this but with BAPI_PR_CREATE, but no results so far.
Does anyone knows if this is possible with this BAPI?????
Im using SAP_APPL 470.
Having some problems also with items texts.
Regards
07-20-2009 6:08 AM
Hey David,
COuld you let me know , wt exactly the prob you are facing.
You can use header text and item text structure of BAPI_PR_CREATE to pass the text data.
Regards
prasanna kumar
07-20-2009 2:19 PM
Thanks for the reply Prasanna Kummar,
I'm trying this BAPI using SE37,
on PRHEADERTEXT
I'm inserting the following data:
PREQ_NO PREQ_ITEM TEXT_ID TEXT_FORM TEXT_LINE
00000 B01 * BLA BLA BLA LINE 1
00000 B01 * BLA BLA BLA LINE 2
00000 B01 * BLA BLA BLA LINE 3
And in the PRITEMTEXT, i´m inserting
PREQ_NO PREQ_ITEM TEXT_ID TEXT_FORM TEXT_LINE
00000 B01 * BLA BLA BLA LINE ITEM 1
00000 B08 * BLA BLA BLA LINE ITEM 2
00000 B14 * BLA BLA BLA LINE ITEM 3
What happens is that the BAPI creates the PR, but with no header txt.
The item texts are created but not correctly , to the field B01 goes BLA BLA BLA LINE ITEM 1 thats ok.
But field B08 in PR document, gets the texts "BLA BLA BLA LINE ITEM 1" and "BLA BLA BLA LINE ITEM 2".
And field B14 gets all the texts in PRITEMTEXT.
I've been reading som SAP notes, were it says BAPI_PR_CREATE is not oficially released and might have some bugs.
Are u capable, using the BAPI_PR_CREATE, of create and update the ITEMs and HEADER texts?
Thanks and Best Regards
07-20-2009 2:29 PM
Hi
But have u tried to transfer the text to parameter REQUISITION_ITEM_TEXT of BAPI BAPI_REQUISITION_CREATE, u should consider the table requisition EBAN has the both data: header and item; i.e. there isn't a table for header data only.
So probably REQUISITION_ITEM_TEXT can be used fir header text too
Max