2009 May 21 3:45 PM
Hi Friends,
I have used CALL TRANSACTION 'CJ8G' in my report. When I execute it, the screen comes up. How do I code to automatically click the execute button in that screen (CJ8G) ? I've been stuck with this for quite sometime now.
Please help.
Thanks in advance.
Regards,
Dikshitha
2009 May 22 6:30 AM
Hi,
In the transaction 'CJ8G' controlling area is the input field which is mandatory, so for this field
you find the Parameter ID , then call the transaction by skipping the first screen.
see the below example:
SET Parameter ID 'KOK'. " KOK is the Paramter ID for controlling area field.
CALL TRANSACTION CJ8G AND SKIP FIRST SCREEN.
Regards
Satish Suri
Hi,
In the transaction 'CJ8G' controlling area is the input field which is mandatory, so for this field
you find the Parameter ID , then call the transaction by skipping the first screen.
see the below example:
SET Parameter ID 'KOK'. " KOK is the Paramter ID for controlling area field.
CALL TRANSACTION CJ8G AND SKIP FIRST SCREEN.
Regards
Satish Suri
2009 May 21 3:54 PM
Hi,
CALL TRANSACTION <tcode>AND SKIP FIRST SCREEN.
Before calling this statement you need to set the parameter using the SET PARAMETER ID <ID>.
2009 May 22 6:30 AM
Hi,
In the transaction 'CJ8G' controlling area is the input field which is mandatory, so for this field
you find the Parameter ID , then call the transaction by skipping the first screen.
see the below example:
SET Parameter ID 'KOK'. " KOK is the Paramter ID for controlling area field.
CALL TRANSACTION CJ8G AND SKIP FIRST SCREEN.
Regards
Satish Suri
2009 May 22 7:50 AM
I've done the SET PARAMETER for all the mandatory fields in CJ8G. When I execute the program its taking me to the screen with all the values in place.
My question is how do I execute CJ8G from my program after filling all the values in the respective fields.
Please help.
Regards,
Dikshitha
2009 May 22 8:00 AM
Try this way....
Record the transcation which u want to execute & fill the BDCDATA structure & pass it while calling the transcation. Refer below code .
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: WA_BDCDATA TYPE BDCDATA.
DATA: TEMP(12) TYPE C.
WA_BDCDATA-PROGRAM = 'ZQMPNK_FLASH_REP_ENT_NEW'.
WA_BDCDATA-DYNPRO = '0050'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'GRREJ'.
WA_BDCDATA-FVAL = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-PROGRAM = 'ZQMPNK_FLASH_REP_ENT_NEW'.
WA_BDCDATA-DYNPRO = '0100'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
EXPORT TEMP FROM NEW_INSPLOT-PRUEFLOS TO MEMORY ID 'LOT'.
CALL TRANSACTION 'ZQM_01_NEW' USING BDCDATA MODE 'E'.Hope this solves your problem.
2009 May 22 8:02 AM
Hi ,
select the excute button also while doing the Recordiing and populate all the fields which are mandatory.
Then the transction will excute automatically..
regards..
gowri
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |