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

BAPI _ CUSTOMERRETURN _ CREATE , how to fix a payer

Former Member
0 Likes
1,226

Hi All,

i want to have a fixed payer when we execute this bapi .

i tried passing 2 rows in RETURN_PARTNERS table , with item 00000 . with partner func SP and PY , but still all the sales orders created have .. payer as sold to party only .

Also the created sold to party has .. no pricing & vehicle usage .. kindly let me know what should fields i should pass to get a complete sales order craeted.

Thanx and warm regards

balwant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,179
Hi Balwant

   I use other BAPI for different business object, but 
internally both calles BAPI: SD_SALESDOCUMENT_CREATE and
 it works fine for me. 

   Are you passing the partner function and partner 
number for the same. Have you checked is these partners 
are defined in the customer master. For checking you can 
go to transaction XD03 -> Sales Area Data -> Partner 
Functions, you can see the list of partners assigned for 
different functions. I guess if you different from the 
available it wont accept to create the same.

   Do revert if you need more info.


Kind Regards
Eswar
11 REPLIES 11
Read only

Former Member
0 Likes
1,180
Hi Balwant

   I use other BAPI for different business object, but 
internally both calles BAPI: SD_SALESDOCUMENT_CREATE and
 it works fine for me. 

   Are you passing the partner function and partner 
number for the same. Have you checked is these partners 
are defined in the customer master. For checking you can 
go to transaction XD03 -> Sales Area Data -> Partner 
Functions, you can see the list of partners assigned for 
different functions. I guess if you different from the 
available it wont accept to create the same.

   Do revert if you need more info.


Kind Regards
Eswar
Read only

0 Likes
1,179

Hi Eswar,

Thanx a ton .. for your help but still i am stuck up !!

I checked in XD03. For the partner number i am passing , PY (partner function is maintained).Basically i want my payer , to be taken not from VBRK table (not defaulted) , but the constant "partner number" with partner function "PY" , i am passing in RETURN_PARTNERS.Sold to party comes right in sales order formed , which also i had passed here only as partner func "SP" .How and where exactly ,to pass payer so that it appears in sales order(as per i have passed, not taken from table)?.

Secondly what more and which parameter ,I should pass so that i get pricing and vehicle usage also in sales order .. as of now it gives (in Va02 -> incompletion log ) vehicle usage and pricing not there .

this is bit urgent kindly reply asap.i assure you to award you 10 points !!

Thanx and warm regards

Balwant

Read only

0 Likes
1,179

Hi,

Pricing must be supplied in table RETURN_CONDITIONS_IN for each item. Please ask your SD consultant to get the condition type for the price you are looking for. If the prices are not correctly maintained for materials, you will not get it automatically populated.

Now, how do you handle vehicle usage? Which field are you looking for? Or is it a pricing condition too?

Is your internal table appended with all the partner functions when you debug? Also pass item number as "000000" for header level partners.

Did you try to create this manually? Did it work? Sometimes, problems may lie on the functional side. Check and revert.

Raj

Reward points if helpful

Read only

0 Likes
1,179
Hi Balwant

   Will try to keep it simple. Am back in home, so will 
try to give you details with my knowledge. 

   For each partner that you want to appear in Sales 
order you can pass to RETURN_PARAMETERS
like partner role -  PY
     partner number - customer number(partner number)

   For pricing,handle this way:
   manually give item numbers in your BAPI say 000010 
incrementing 10 for each item. this will be your 
reference when you add the conditions.
   ibapisditm-itm_number = ibapisditmx-itm_number = '000010'. 

when you want to give price for this item you can use 
the same item number in the condition and give your 
price for parameter cond_value.

For Vehical usage, am not sure.

Hope the above info helps you.

Kind Regards
Eswar
Read only

0 Likes
1,179

Hi Eswar/Raj,

Thanx a lot for ur timely help. everything is fine now . except the sales order (VA02->

EDIT->incompletion log ) shows "vehicle usage" , as missing data,.i need to pass it in the parameter but i dont know where :)kindly help me to figure it out .

after executing bapi it shows warning message

"W V1 555 The sales document is not yet complete: Edit data" .

In anticipation of your early reply !!

Thanx and warm regards

balwant

Read only

0 Likes
1,179

Hi ALL,

Thanx a lot i was able finally do it , vehicle usage is a field in BAPISDITM-PRC_GROUP1.

Thanx a million ton!! for all ur help n support .. i have awarded both of you 10 pnts each.

thanx

Balwant

Read only

0 Likes
1,179
Hi Balwant

  Glad that we could help you.

  Just for your info, itz not possible to assign 
10points more than 1 person. 


Kind Regards
Eswar
Read only

0 Likes
1,179

Hi eshwar,

am sorry then how can i award u .. kindly advice .

thanx

balwant

Read only

0 Likes
1,179

Itz ok Balwant. Dont worry, am just informing you.

Inface we are happy that we could help you.

Kind Regards

Eswar

Message was edited by: Eswar Rao Boddeti

Read only

0 Likes
1,179

Hi Eshwar,

there is one more issue :):).

i am passing the pricing date (in Return_header_in) and i m using doc type as ZR (Automatic return).in the sales order created.My net value is changing ie its not taking the net value as per the pricing date !! .i want my net value to be constant here.How can i make it happen.is it possible ? .Your help will be heartily appreciated.

thanx n warm regards

Balwant

Read only

0 Likes
1,179

Dear Balwant

Kindly open a new thread as this thread is closed, so

you can award points for helpful answers.

Kind Regards

Eswar