F Swapping of two numbers in SAP ABAP | CodeTheta

Swapping of two numbers in SAP ABAP


Code :
REPORT ZVP_SWAPPING_PROGRAM.

DATA: TEMP TYPE CHAR10.

PARAMETERS: P_FIRST TYPE CHAR10,
            P_SECOND TYPE CHAR10.

TEMP = P_FIRST.
P_FIRST = P_SECOND.
P_SECOND = TEMP.

WRITE:/ 'FIRST', P_FIRST.
WRITE:/ 'SECOND', P_SECOND.

Output :
Selection Screen Input

Output Result


IDE Used To Test This Code : SAP ABAP Editor.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a comment