Application Development 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: 

program RGGBS000 subroutine

Former Member
0 Kudos

Hello All,

For my requirement i need to copy the program RGGBS000 into a zRGGBS000 and then declare a specific exit till this part i have done!!!

Problem is how do i create a subroutine here ?

I guess the other subroutine are been called dynamically

how do i call my subroutine say example form u201 using var.

Please let me know about ths .

regards

bhanu

3 REPLIES 3

former_member480923
Active Contributor
0 Kudos

U have to use the transaction: OB28, GGB0, GGB1, GGVZ and other group of transactions for doing the checks this checks will put the code in the same exit program automatically.

Hope That Helps

Anirban M.

Former Member
0 Kudos

Hi,

In your program you will have an option to write the FORM ENDFORM statements but it is not here that the subroutines can be called. For example you have stated U201.

Only FORM U201

ENDFORM statement can be written here.

To run this form you need to have an entry in either substitution or validation in transactions like

OBBH, OB28 etc..

Hope this helps,

Regards,

Pramod

former_member377111
Participant
0 Kudos

Hi Bhanu,

Copy the programe call your new perfor in the GET_EXIT_TITLES form.

Eg: exits-name = 'U997'.

exits-param = c_exit_param_none .

exits-title = text-102. "Cons. transaction type

APPEND exits. "from xref1/2

After this insert your perform within the programe

eg:

FORM U997." using lv_MAKTX." bseg-matnr changing bseg-zuonr.

data:LV_maktx like makt-maktx.

clear:LV_maktx.

select single maktx from MAKT into lv_maktx where matnr = bseg-matnr.

if sy-subrc eq 0.

bseg-zuonr = LV_maktx.

move lv_maktx to bseg-zuonr.

modify bseg.

endif.

ENDFORM.

please refer the note 842318 for more clarity.

Hope this will help you

Regard

N