‎2011 Jun 15 5:32 AM
Hi
I want to call transaction 'CC04' with material number as default, i used below code but it is not woking i.e even if i pass material number to the field material , the value is not defaulted in the screen.
SET PARAMETER ID 'MAT' FIELD material.
CALL TRANSACTION 'CC04'.
can any one tell me why?
‎2011 Jun 15 6:06 AM
Hi,
maybe the reason is, that on subscreen SAPLCPDMOBJECTBROWSER 0300 the set / get parameter flags are not set for field MARA-MATNR.
Regards,
Klaus
‎2011 Jun 15 6:06 AM
Hi,
maybe the reason is, that on subscreen SAPLCPDMOBJECTBROWSER 0300 the set / get parameter flags are not set for field MARA-MATNR.
Regards,
Klaus
‎2011 Jun 15 6:20 AM
Hi Klaus,
I noticed it, in my analysis also, but i am not sure if that is the reason because in sales order tcode VA03 screen number is 102 for which those flags are not set, even then parameter id works fine there.
is there any other way to set my material number as default value in such cases?
‎2011 Jun 15 6:52 AM
That is right.
I checked wit MM03.There the set parameter was checked,
Ideally it needs to be checked for using it.
‎2011 Jun 15 7:33 AM
Hi,
in MM03 field isn't set automatically by SET/GET parameter from screen, but in fm 'EINSTIEGS_DATEN_VORSCHLAGEN', which is called at PBO of screen 0060 in module "INITIALISIERUNG':
*---- Vorbesetzen Materialnummer
IF AKTYP NE AKTYPH.
GET PARAMETER ID 'MAT' FIELD MATERIAL.Regards,
Klaus
‎2011 Jun 15 6:11 AM
HI ,
As Klaus mentioned if you goto screen 300 , you will see for MATNR the checkboxes for set and get parameter are not checked.
So you cant use it for this particular transaction.
‎2011 Jun 15 7:22 AM
Hi Reddy,
As others told, the PARAMETER ID MAT will not set the parameter in the screen 300.
You have to debugg the screen 100/300, and you can see some other parameter ID for that particular field.
Put the debugger from the screen 100, from module MODULE modify_screen_0100.
Regards
HM
‎2011 Jun 15 7:50 AM
Also you can try by searching MARA-MATNR in the main program.
So that you can see the variables that are passed to tthis field.
Please check the Subroutine "display_stack_objects", in the main program.
Regards
HM
‎2011 Jun 15 8:15 AM
Thanks every one,
instead of wasting more time on this.
I wrote the below code to default the value on my screen.
START-OF-SELECTION.
CLEAR JTAB.
JTAB-PROGRAM = 'SAPLCPDMOBJECTBROWSER'.
JTAB-DYNPRO = '0100'.
JTAB-DYNBEGIN = 'X'.
APPEND JTAB.
CLEAR JTAB.
JTAB-FNAM = 'BDC_CURSOR'.
JTAB-FVAL = 'MARA-MATNR'.
APPEND JTAB.
CLEAR JTAB.
JTAB-FNAM = 'MARA-MATNR'.
JTAB-FVAL = '00000099900032'.
APPEND JTAB.
CALL TRANSACTION 'CC04' USING jtab MODE 'A'.
‎2011 Jun 15 8:16 AM