Application Development 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: 

HEADER TEXT VIA BAPI_REQUISITION_CREATE

Former Member
0 Kudos

hi all,

how can i pass header text to Purchase requisition via BAPI_REQUISITION_CREATE.

thanks in advance,

prasanna kumar

5 REPLIES 5

former_member186750
Contributor
0 Kudos

Jaya,

The short answer is that this is not possible using a the BAPI.

Cheers,

Neil.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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