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

Determining value for freight conditions in BAPI_CUSTOMERRETURN_CREATE.

Former Member
0 Likes
675

Hi,

I am using BAPI_CUSTOMERRETURN_CREATE for customer returns in sales order.

i am passing the parameters as shown below.

LW_LOGIC_SWITCH-PRICING = 'G'.

SORT LT_ITEM_IN1 BY ITM_NUMBER.

IF G_DATAR = C_SET AND NOT T_TC_0200[] IS INITIAL.

  • Call BAPI FM to Create Sales order.

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'

EXPORTING

RETURN_HEADER_IN = LW_HEADER

RETURN_HEADER_INX = LW_RETURN_HEADER_INX

BINARY_RELATIONSHIPTYPE = L_RELTYPE

LOGIC_SWITCH = LW_LOGIC_SWITCH

IMPORTING

SALESDOCUMENT = G_ORDER_NUMBER

TABLES

RETURN = LT_RETURN

RETURN_ITEMS_IN = LT_ITEM_IN1

RETURN_PARTNERS = LT_PARTNER2

RETURN_SCHEDULES_IN = LT_SCHEDULES

RETURN_CONDITIONS_IN = LT_ORDER_CONDITIONS_IN.

but the freight values are not being populated into the sales order.

can anybody please suggest me the solution.

thanks in advance,

Srikanth.

Hi,

I am using BAPI_CUSTOMERRETURN_CREATE for customer returns in sales order.

i am passing the parameters as shown below.

LW_LOGIC_SWITCH-PRICING = 'G'.

SORT LT_ITEM_IN1 BY ITM_NUMBER.

IF G_DATAR = C_SET AND NOT T_TC_0200[] IS INITIAL.

  • Call BAPI FM to Create Sales order.

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'

EXPORTING

RETURN_HEADER_IN = LW_HEADER

RETURN_HEADER_INX = LW_RETURN_HEADER_INX

BINARY_RELATIONSHIPTYPE = L_RELTYPE

LOGIC_SWITCH = LW_LOGIC_SWITCH

IMPORTING

SALESDOCUMENT = G_ORDER_NUMBER

TABLES

RETURN = LT_RETURN

RETURN_ITEMS_IN = LT_ITEM_IN1

RETURN_PARTNERS = LT_PARTNER2

RETURN_SCHEDULES_IN = LT_SCHEDULES

RETURN_CONDITIONS_IN = LT_ORDER_CONDITIONS_IN.

but the freight values are not being populated into the sales order.

can anybody please suggest me the solution.

thanks in advance,

Srikanth.

3 REPLIES 3
Read only

Former Member
0 Likes
557

Hi Srikanth,

Did you use the Bapi_Transaction_Commit after this BAPI call?

Ravi

Read only

0 Likes
557

Hi Ravi,

i am using it.

i can see the sales order(Return) created but when it comes to the Pricing it is showing differently from the referenced order.

regards,

srikanth.

Read only

Former Member
0 Likes
557

Hello,

Was there any solution to this problem?

I am facing the same issue - the return order is populated but the pricing conditions saved manually are not reflected in the return order created using bapi_customerreturn_create.

Any help?

Thanks in advance.