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

Calling a Program from Quomo Feature

Former Member
0 Likes
780

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

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)

1 REPLY 1
Read only

Former Member
0 Likes
484

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)