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

how to pass contract to BAPI_QUOTATION_CREATEFROMDATA2?

Former Member
0 Likes
634

Hi, there:

I need pass contract number to BAPI_QUOTATION_CREATEFROMDATA2.

I tried to use QUOTATION_HEADER_IN-MAST_CONTR and QUOTATION_HEADER_IN-REF_DOC.

but unfortunately both of them are not working.

which structure and field I need use.

Thanks in advance!

2 REPLIES 2
Read only

Former Member
0 Likes
542

Hi Daniel,

Did you pass 'X' into QUOTATION_HEADER_INX-MAST_CONTR   and QUOTATION_HEADER_INX-REF_DOC along with the passing of values for QUOTATION_HEADER_IN-MAST_CONTR and QUOTATION_HEADER_IN-REF_DOC.

With Thanks And Regards

Mohammed Khurshed

Read only

Former Member
0 Likes
542

Hi Daniel,

Reference is usually given at item level. Try passing following data in TABLES parameter in item level.

QUOTATION_ITEMS_IN :


REF_DOC  = <contract no>.

REF_DOC_IT - <contract item no>.

REF_DOC_CA - Document Category of preceding SD document


QUOTATION_ITEMS_INX :


REF_DOC  = 'X'.

REF_DOC_IT = 'X'.

REF_DOC_CA = 'X'.

Thanks,

Ajay Bose