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

reg:BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,091

Hi ,

I had used BAPI_SALESORDER_CREATEFROMDAT2 to create a seles order.But i need the to pass the header contion recor. for a particular condition pricing i need to pass the condition rate(header discount) in the header level.In

BAPI_SALESORDER_CREATEFROMDAT2 , the structure BAPISDHD1 does'nt contain any field for condtion type and condtion value.could any one help me out in this regard.

Thanks & Regards,

Satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,026

bapicond contains conditiontype , is that answering you're question ?

hmmm I will check first if someone else already gave the answer in the time I looked into the problem . pfff it goes quick here

Message was edited by:

A. de Smidt

8 REPLIES 8
Read only

Former Member
0 Likes
1,026

Hi

you should check the tables parameter

BAPICOND,it has condition type and condition value.

Thanks

Read only

0 Likes
1,026

Hi sreeram

you can also use this fm BAPI_SALESORDER_CREATEFROMDAT1

Here BAPISDHEAD(import parameter).

it has condition value and type.

Check this

Thanks

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,026

Hi

You should check the BAPICONDt ables parameter

whether it has condition type and condition value.

Regards,

Sree

Read only

Former Member
0 Likes
1,027

bapicond contains conditiontype , is that answering you're question ?

hmmm I will check first if someone else already gave the answer in the time I looked into the problem . pfff it goes quick here

Message was edited by:

A. de Smidt

Read only

0 Likes
1,026

Hi ,

bapicond contains the condtion type & condition rate at item level,but not header level.

Thanks& Regard

Satish

Read only

0 Likes
1,026

Hi

check my before post.

Why dont you another Fm

BAPI_SALESORDER_CREATEFROMDAT1.

Thanks

Read only

0 Likes
1,026

Hi,

iam using 4.6c version it is absolute to use BAPI_SALESORDER_CREATEFROMDAT1.

Thanks & Regards,

Satish

Read only

dev_parbutteea
Active Contributor
0 Likes
1,026

HI,

call function 'BAPI_SALESORDER_CREATEFROMDAT2'

exporting

  • SALESDOCUMENTIN =

<b> order_header_in = ls_order_header_in

order_header_inx = ls_order_header_inx</b>

  • SENDER =

  • BINARY_RELATIONSHIPTYPE =

int_number_assignment = ld_int_number_assignment

  • BEHAVE_WHEN_ERROR =

  • LOGIC_SWITCH =

  • TESTRUN =

  • CONVERT = ' '

importing

salesdocument = ld_salesdocument

tables

return = it_salesorder_return

order_items_in = it_order_items_in

order_items_inx = it_order_items_inx

order_partners = it_order_partners

order_schedules_in = it_order_schedules_in

order_schedules_inx = it_order_schedules_inx

<b> order_conditions_in = it_order_conditions_in

order_conditions_inx = it_order_conditions_inx</b>

use order_header_in and order_header_inx for header details

use order_conditions_in and order_conditions_inx for cond_type and cond_value

Regards,

Sonesss