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

Subroutine

Former Member
0 Likes
1,043

Hey guys,

I want to perform the subroutin below:

FORM materialinfo_lesen USING lsk_matnr lsk_werks lsk_lgort

CHANGING IS_ENHANCEMENT TYPE ISC_MATERIALINFO_LESEN.

I want the changing parameter to be just a dummy variable.

How am i going to declare my perform statement? Thanks a lot

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,016

Hi

Declare the a variable of type ISC_MATERIALINFO_LESEN same as changing parameters in ur main program.

then in the changing parameters in perform pass that variable.

e.g.

Data v_dummy type ISC_MATERIALINFO_LESEN.

perform materialinfo_lesen USING lsk_matnr

lsk_werks

lsk_lgort

CHANGING v_dummy

Regards,

Gaurav

8 REPLIES 8
Read only

Former Member
0 Likes
1,016

Hi,

FORM materialinfo_lesen USING lsk_matnr lsk_werks lsk_lgort

IS_ENHANCEMENT TYPE ISC_MATERIALINFO_LESEN.

Plzz reward points if it helps.

Read only

Former Member
0 Likes
1,016

Hi Mark Rennel Barrios,

You could not able to call that form with out passing changing variables also afcoure it is dummy variable , just diclare a variable with similar type and pass it.

See this.

DATA IS_ENHANCEMENT TYPE ISC_MATERIALINFO_LESEN.

PERFORM materialinfo_lesen USING lsk_matnr lsk_werks lsk_lgort

CHANGING IS_ENHANCEMENT .

Plzz reward if it is useful,

Mahi.

Read only

Former Member
0 Likes
1,017

Hi

Declare the a variable of type ISC_MATERIALINFO_LESEN same as changing parameters in ur main program.

then in the changing parameters in perform pass that variable.

e.g.

Data v_dummy type ISC_MATERIALINFO_LESEN.

perform materialinfo_lesen USING lsk_matnr

lsk_werks

lsk_lgort

CHANGING v_dummy

Regards,

Gaurav

Read only

0 Likes
1,016

Hi Gaurav,

Thanks a lot for that!

I have one question though, that perform is within my another FORm statement, where am i going to declare the dummy variable? just within my FORM as local or i can declare it as a global dummy? Thanks!

Read only

0 Likes
1,016

Mark,

Since v_dummy is a dummy variable, you can declare it as a local within your FORM.

Thanks

Edited by: Vimal Vidyadharan on Feb 12, 2008 9:20 AM

Read only

0 Likes
1,016

If the use of IS_ENHANCEMENT is local.. just within the form then you can declare it within the form.

If you are going to use IS_ENCHANCEMENT outside t his form then declare it Globally.

Read only

0 Likes
1,016

Rachana, i don't think it would matter as Mark is using it as a dummy.

Read only

Former Member
0 Likes
1,016

Hi Mark,

Infact you can declare it locally inside the form itself.

Regards,

Gaurav