07-20-2010 10:32 PM
i use comand call transaction 'XXX' and skip first screen
and i want to pass data to the new screen after the skip made, how i can do it???
07-21-2010 4:52 AM
Use like this as below:
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN 'NEXT'.
MESSAGE 'Working well' TYPE 'I'.
WHEN '&IC1'.
READ TABLE i_pernr INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'PER' FIELD i_pernr-pernr.
CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
As already sugested, when ever you are using call any t-code with this statemnt, you shud pass SET PARAMETER ID..
You can find it in that transaction, Like for FB03 , if you are want to display that transaction with your document number, you need to pass PARAMETRE ID as BLN ... To get you just need to press F1 on that docment number field , then go to Technical details ...
Edited by: Lokesh Tarey on Jul 21, 2010 5:52 AM
07-21-2010 12:36 AM
Hi,
You must know the parameter ID of fields (by pressing F1 and choose technical information) on screen of transaction 'XXX'. Then pass value to those fields by
SET PARAMETER ID pid FIELD dobj.
"pid: parameter of screen on field For a SPA/GPA parameter specified
" in pid to match a name in the database table TPARA, it must be entered in upper case.
"dobj is value of field on screen
regards,
Thien
07-21-2010 10:20 AM
Sorry i did not explain myself well
after doing this
SET PARAMETER ID 'PER' FIELD i_pernr-pernr.
CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
i want to put parameters in the screen i get after SKIP FIRST SCREEN.
07-21-2010 2:04 AM
... AND SKIP FIRST SCREEN
Effect
Skips the first screen in the transaction (provided all the required fields have been assigned values by the SPA/GPA mechanism).
07-21-2010 4:52 AM
Use like this as below:
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN 'NEXT'.
MESSAGE 'Working well' TYPE 'I'.
WHEN '&IC1'.
READ TABLE i_pernr INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'PER' FIELD i_pernr-pernr.
CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
As already sugested, when ever you are using call any t-code with this statemnt, you shud pass SET PARAMETER ID..
You can find it in that transaction, Like for FB03 , if you are want to display that transaction with your document number, you need to pass PARAMETRE ID as BLN ... To get you just need to press F1 on that docment number field , then go to Technical details ...
Edited by: Lokesh Tarey on Jul 21, 2010 5:52 AM
07-21-2010 4:56 AM
Hi,
I assume that you are aware of the solution that Lokesh has provided.
Does this solve your issue?
BR,
Vishal.