‎2006 Sep 25 11:55 AM
hi all,
i have a 'ztcode' with obligatory fields. i want to call 'ztcode' from another program using the following:
call transaction 'ztcode' and skip first screen.is there a way to avoid error since obligatory fields will not be filled up if above code is executed?
thanks,
sid
‎2006 Sep 25 11:57 AM
use <b>submit report</b> via selection scree.
for syntex of submit just click f1 on submit.
‎2006 Sep 25 11:57 AM
use <b>submit report</b> via selection scree.
for syntex of submit just click f1 on submit.
‎2006 Sep 25 11:58 AM
ONE way is by using SET AND GET PARAMETER IDS.
in the calling program use
SET PARAMETER ID (See help on this)
and that value will be populated automatically to this field.but this field should have an PARAMETER ID.
to assign a parameter id,go to that field data element there you have to assign a parameter id.
and then in the calling program use SET parameter ID 'z1' value <VALUE>.
or
you can use SUBMIT with that program name.
Regards
srikanth
Message was edited by: Srikanth Kidambi
‎2006 Sep 25 11:58 AM
‎2006 Sep 25 11:59 AM
Hi
u have to fill the mandatory flds
by using 'set parameter id '
‎2006 Sep 25 12:01 PM
Hi Sid,
U can use SET AND GET PARAMETER IDS.
write like this.
SET PARAMETER ID value field-value.
call transaction 'ZTCODE' and skip first screen.
U need to create a parameter id for this field.
Regards,
Nagaraj
‎2006 Sep 25 12:16 PM
Hi Sid,
As others have said, you can use the SUBMIT statement via selection-screen and fill up the obligatory fields. Sorry I'm at home so I cannot give specific examples.
Hope this helps...
P.S. Please award points for useful answers.
‎2006 Sep 26 3:41 AM
hi all,
thanks 4 d reply. submit is ok. right now im trying to learn the set parameters statement. can u tell me exactly how it works by example. i can't seem follow the sap help documents. in my report program 'ZTCODE' i put this:
parameters p_maktx like makt-maktx memory id pmakt
obligatory.and then at another program, 'ZCALLER', i called 'ZTCODE' which points to my program, as follows:
set parameter id 'pmaktx' field 'REM'.
call transaction 'ZTCODE'
and skip first screen.i ran the 'ZCALLER' and as soon as it called 'ZTCODE' the program stops with the message 'make an entry in all required fields'. can u tell me what i missed?
thanks,
sid
‎2006 Sep 26 3:43 AM
Hi Sid,
parameters p_maktx like makt-maktx memory id pmakt
obligatory.
set parameter id <b>'P_MAKTX'</b> field 'REM'.
call transaction 'ZTCODE'
and skip first screen.
or
set parameter id <b>'PMAKT'</b> field 'REM'.
call transaction 'ZTCODE'
and skip first screen.
Best regards,
Prashant
Message was edited by: Prashant Patil