‎2006 Dec 30 5:38 AM
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
‎2006 Dec 30 5:48 AM
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
‎2006 Dec 30 6:09 AM
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
‎2006 Dec 30 6:51 AM
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
‎2006 Dec 30 6:56 AM
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