‎2008 Feb 12 8:00 AM
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
‎2008 Feb 12 8:07 AM
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
‎2008 Feb 12 8:02 AM
Hi,
FORM materialinfo_lesen USING lsk_matnr lsk_werks lsk_lgort
IS_ENHANCEMENT TYPE ISC_MATERIALINFO_LESEN.
Plzz reward points if it helps.
‎2008 Feb 12 8:03 AM
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.
‎2008 Feb 12 8:07 AM
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
‎2008 Feb 12 8:16 AM
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!
‎2008 Feb 12 8:20 AM
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
‎2008 Feb 12 8:20 AM
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.
‎2008 Feb 12 8:27 AM
Rachana, i don't think it would matter as Mark is using it as a dummy.
‎2008 Feb 12 8:30 AM
Hi Mark,
Infact you can declare it locally inside the form itself.
Regards,
Gaurav