‎2010 Jan 13 4:31 AM
Hi,
I am trying to set the Parameter ID: QMR in tCode IW21.
The code snippet:
DATA:
lv_qmart TYPE qmart VALUE 'PZ'.
SET PARAMETER ID 'QMR' FIELD lv_qmart.
CALL TRANSACTION 'IW21' AND SKIP FIRST SCREEN.
The issue is that the field is not being populated with the passed value and the system prompts an error that the required field has no value.
I have also used SUBMIT but in vain..:(
Kindly suggest.
Regards
s@k
‎2010 Jan 13 4:46 AM
‎2010 Jan 13 4:56 AM
‎2010 Jan 14 9:07 AM
Hi,
I am currently using the data trasfer through the BDC and able to skip the first screen.
In the second screen of the tCode IW21, i want the 'Equipment' field to be populated and for that I am passing the value also but the field is not getting filled.
Code:
DATA:
i_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-program = 'SAPLIQS0'.
wa_bdcdata-dynpro = '0100'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RIWO00-QMART'.
wa_bdcdata-fval = 'PZ'. "Your value can pass dynamic through variable.
APPEND wa_bdcdata TO i_bdcdata.
for populating the equipment
CLEAR wa_bdcdata.
wa_bdcdata-program = 'SAPLIWO1'.
wa_bdcdata-dynpro = '0130'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RIWO1-EQUNR'.
wa_bdcdata-fval = '300000000'. " Equipment Number
APPEND wa_bdcdata TO i_bdcdata.
CALL TRANSACTION 'IW21' USING i_bdcdata MODE 'E'.
Can anybody please suggest what is missing.
Regards
s@k
‎2010 Jan 14 9:14 AM
Hi,
Did you check in debugging mode whether BDCDATA table is getting populated correctly??
Also, Check if BDC is successful or not. I think there must be some error encountered in backgroung execution of BDC.
Thansk,
Archana
‎2010 Jan 14 9:26 AM
Hi,
Small correction in your BDC.
DATA:
i_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-program = 'SAPLIQS0'.
wa_bdcdata-dynpro = '0100'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RIWO00-QMART'.
wa_bdcdata-fval = 'PZ'. "Your value can pass dynamic through variable.
APPEND wa_bdcdata TO i_bdcdata.
*** for populating the equipment
CLEAR wa_bdcdata.
wa_bdcdata-program = 'SAPLIWO1'. "Not correct
wa_bdcdata-dynpro = '0130'. "Not correct
wa_bdcdata-program = 'SAPLIQS0'. "Correct
wa_bdcdata-dynpro = '7200'. "Correct
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RIWO1-EQUNR'.
wa_bdcdata-fval = '300000000'. " Equipment Number
APPEND wa_bdcdata TO i_bdcdata.
CALL TRANSACTION 'IW21' USING i_bdcdata MODE 'E'.
Thanks,
Vinod.
‎2010 Jan 14 9:26 AM
Dear Archana,
I have checked in the debugging mode and found that the values are being populated correctly.
I am reaching to the next screen as well but the field is not being pouplated.
Kindly suggest.
Regards
s@k
‎2010 Jan 14 10:11 AM
Dear Vinod,
Thanks a lot for the reply..:)
And thanks to others as well..:)
Regards
s@k