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

Using the BAPI_QUOTATION_CREATEFROMDATA

Former Member
0 Likes
987

Hi All,

I want to know how to use this BAPI:

BAPI_QUOTATION_CREATEFROMDATA in 4.6C

As iam getting the error:

E VP 112 Enter the value SOLD TO PARTY or SHIP TO PARTY.

And iam passing SOLD TO PARTY or SHIP TO PARTY values below.

=========================================

g_order_partner-partn_role = 'SH'.

g_order_partner-partn_numb = p_kunnr.

APPEND g_order_partner.

g_order_partner-partn_role = 'SP'.

g_order_partner-partn_numb = p_kunnr.

APPEND g_order_partner.

Any body having some clues on this.

Thanks a bunch.

Vas.

6 REPLIES 6
Read only

Former Member
0 Likes
880

Are you passing anything for CONVERT_PARVW_AUART?

Read only

Former Member
0 Likes
880

No ,

Iam passing the values to ORDER HEADER ,

ORDER ITEMS and ORDER PARTNERS .

Vas.

Read only

0 Likes
880

Pass an 'X' into CONVERT_PARVW_AUART.

Read only

Former Member
0 Likes
880

Hi Michael Malvey

Thanks for your good suggestion. Good Job.

Passing 'X' to CONVERT_PARVW_AUART solves the whole issue.

After that we get ORDER QTY decimal issue . But it is not a big thing. I resolved it.

Thanks a bunch.

Vas.

Read only

0 Likes
880

What you find in the FM is that if you pass the flag in it converts your partner functions from external (SH, SP, etc) to the internal values (WE, AG, etc). If you leave it blank it expects you to pass the internal values.

Read only

0 Likes
880

Hello,

I am having the same issue and i tried what was suggested and I still got the same error. In my case I am using we19 to post the IDoc. When i debug the code i notice that there is a value from structure FXVBPAKOM that is initialized to zero POSNR_LOW. I cant seem to be able to by pass this. Does anyone have any suggestions. thanks