Page 1 of 1

Return Value from BAPI

Posted: Thu Mar 02, 2006 3:23 pm
by lkganta
HI,
I am using BAPI stage to write a record(Col1,Col2,Col3,Col4) into a BAPI,But the BAPI also returning a table structure(col_new1,col_new2,col_new13) as a return value after each record insertion.

I have successfully inserted a record into the BAPI table,but how could I get the return value immediately and write it into a file.

Logic will be as follows:

|Sequential stage| ---> |Transformer| ---> |BAPI Stage| ---> |Transformer| ---> |Sequential Stage|

Please correct me , If there are any mismatches.

Thanks
Ganta.

Posted: Thu Mar 02, 2006 11:08 pm
by ameyvaidya
Hi,
Please refer to this Link:
<a href="http://dsxchange.com/viewtopic.php?t=93 ... 114f39fa6a"> LINK</a>

Basically If the BAPI is being used for Input the return table parameter(which is usually an output parameter) is treated by DataStage as an Input table parameter.

This can be checked out in the table parameters section in the BAPI Stage.

IHTH