2007 Jun 22 8:49 AM
Hi All,
I want to maintain return parameter in RFC.
Means i fetch some data using select statment.
i need add a return parameter subrc to retun the value 0 when successfully retrieved the records and 4 no records found.
how to do it.
Please let me know its urgemt.
Thanks,
Subbu.
2007 Jun 22 8:52 AM
Hi,
You need to maintain the Exporting parameter in the Function module so it will become importing parameter while running this function module, this Paramnter is like SUBRC like SY-SUBRC. and pass the Return paramer of the select statment to this SUBRC field then this field will be avilable in the RFC
Regards
Sudheer
Hi,
You need to maintain the Exporting parameter in the Function module so it will become importing parameter while running this function module, this Paramnter is like SUBRC like SY-SUBRC. and pass the Return paramer of the select statment to this SUBRC field then this field will be avilable in the RFC
Regards
Sudheer
2007 Jun 22 8:52 AM
Hi,
You need to maintain the Exporting parameter in the Function module so it will become importing parameter while running this function module, this Paramnter is like SUBRC like SY-SUBRC. and pass the Return paramer of the select statment to this SUBRC field then this field will be avilable in the RFC
Regards
Sudheer
2007 Jun 22 11:44 AM
HI Sudheer,
Thanks for your help.
What i was done. I created one export parameters with name SUBRC like SY-SUBRC.
I send sy-subrc value to this parameter like below.
After select statment.
IF SY-SUBRC = 0.
SUBRC = 0.
ELSE.
SUBRC = 4.
ENDIF.
Please correct me if i am wrong.
Thanks,
Subbu.
2007 Jun 22 8:54 AM
Hi,
Ad one exporting paramter ex_subrc of type sy-subrc.
also
You need to have an export paramter RETURN of TYPE BAIPRET2 to retun any messages.
You can use this FM to fill the return strucutre.
BALW_BAPIRETURN_GET2.
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |