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_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
556

hi,

in Function Builder: Display BAPI_SALESORDER_CREATEFROMDAT2 screen we have some tabs like attributes, import, export , tables,exception .........

can u pls explain me about

wht is import tab means?

wht is export tab means?

wht is changing tab means?

wht is tables tab means?

wht is exception tab means?

......

.....

as i am java programer i could not understand that meanings.

eventhough i worked with jco i do't know these simple things.

pls help me

regards

Guru

4 REPLIES 4
Read only

Former Member
0 Likes
506

1. Import ---> these will act as input to the FM

2.export-----> export parameters will be the output parameters, after some processing is done with the input parameters, the final output will be displayed as export parameters

3.changing--->these will act as both input and output, u pass some values as changing parameters, after some processing these can be changed an given as output

4. exceptions---> any errors can be raised using exceptions

Read only

0 Likes
506

hi,

Thanque very much for ur response.

in import tab we have only

SALESDOCUMENTIN

ORDER_HEADER_IN

ORDER_HEADER_INX

SENDER

BINARY_RELATIONSHIPTYPE

INT_NUMBER_ASSIGNMENT

BEHAVE_WHEN_ERROR

LOGIC_SWITCH

TESTRUN

CONVERT

as u said above are input to the FM

but ORDER_ITEMS_IN is also input to the FM but it not in import tab. it is avialble in table tab.

how can we say import tab contains only input parameters to FM??

regards

Guru

but i

Read only

0 Likes
506

yes import is used to get the input only.

tables - it acts as both input & output parameter.

u know that item is a table control there we will have number of records(materials)

so we will pass it in table. Now we can loop it & get the data from internal table.

exceptions are used to raise exceptions.

attributes tells us whether this function module is normal one or remote enabled & its basic settings

Read only

0 Likes
506

Hello Guruvulu

TABLES parameters can <b>semantically</b> be either importing, exporting or changing parameters. Based on the settings in the function module interface you cannot tell which is which.

However, in case of BAPIs there are some guidelines:

- TABLES parameter RETURN: is always an EXPORTING parameter because here the BAPI returns the collected messages

- all other TABLES parameters of BAPI_SALESORDER_CREATEFROMDAT2 are IMPORTING parameters. The parameters without X at the end contain the data, the parameters with an X at the end are "change indicators" telling the BAPI which of the imported data should be changed. In case of the CREATE BAPI they need not to be filled.

Regards

Uwe