‎2008 Mar 13 5:28 AM
From the featuer QUOMO i need to call a cust ABAP Program to make a decison and return the value for QUOMO.
i'm confised that how i would imort the parameters from the efature QUOMO i.e., the personal number and after making the decision how the value of QUOMO could be exported back.
through some other postings i found that the program i'd create should be of type "Subroutine pool".
but i'm still not able to determine how the import and export of variables will take place.
‎2008 Mar 13 12:39 PM
To call a program from feature Quomo you need to add a form named ext_call_f. The form must use the following parameters:
FORM EXT_CALL_F USING NAMEN BACK STATUS PME87 STRUCTURE PME87.
IF PME87-PERNR = '1234'.
BACK = '1'.
ELSE.
IF PME87-PERNR = '4567' .
BACK = '2'.
ENDIF.
ENDIF.
STATUS = 0.
ENDFORM.
Feature Quomo passes the structure to your program and reads the return value BACK. Depending on the value of pernr you can set the value of BACK in the program.
You can call the program from the feature like this:
&QUOMO(Z_MY_PROGRAM)
‎2008 Mar 13 12:39 PM
To call a program from feature Quomo you need to add a form named ext_call_f. The form must use the following parameters:
FORM EXT_CALL_F USING NAMEN BACK STATUS PME87 STRUCTURE PME87.
IF PME87-PERNR = '1234'.
BACK = '1'.
ELSE.
IF PME87-PERNR = '4567' .
BACK = '2'.
ENDIF.
ENDIF.
STATUS = 0.
ENDFORM.
Feature Quomo passes the structure to your program and reads the return value BACK. Depending on the value of pernr you can set the value of BACK in the program.
You can call the program from the feature like this:
&QUOMO(Z_MY_PROGRAM)