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

return code

Former Member
0 Likes
563

tell me the solutons for this pls

1.how to find return code of ABAP Program stetement

2.What is currency filtering technique

3 REPLIES 3
Read only

Former Member
0 Likes
532

Hi,

The return code is always stored in the field sy-subrc.

After any program statement just use : WRITE : sy-subrc.

this will display the return code of the statement.

Read only

Former Member
0 Likes
532

1) YOu can use the system field sy-subrc to find the return code for any abap statement

select * from mara where...

if sy-subrc = 0.

  • Succesfull

else.

  • Not successfull

endif.

Read only

Former Member
0 Likes
532

Hai Pandu,

<b>CURRENCY FACTORING TECHNIQUES</b>

The amount value(defined as currency) will be dependent on currency key. that's why currency field should have a reference field of type currency key.

Based on the currency key value the no of decimals values will be determined. Please refer TCURC table to get infomation about currency key.

To do currency translations, we are using many function modules.Some of the important function modules are:

BAPI_CURRENCY_CONV_TO_EXTERNAL : Conversion of Currency Amounts into External Data Format

BAPI_CURRENCY_CONV_TO_INTERNAL :Conversion of Currency Amounts into Internal Data Format

<b>Check These links :</b>

http://help.sap.com/saphelp_46c/helpdata/en/eb/1373a343c411d1896f0000e8322d00/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/04/c3dc097a35d111950d0060b03c6b76/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/eb/13736a43c411d1896f0000e8322d00/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/12/08594d470311d1894a0000e8323352/frameset.htm

<b>About Return:</b>

By default the <b>control will return to the calling prog</b>ram if you have used any submit..

You don't need to specify anything.

Hope this helps you.

<b>Reward points if it helps you.</b>

Regds,

Rama chary.Pammi