Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem while setting parameter ID 'QMR' (Notification type) in TCode: IW21

Former Member
0 Likes
1,679

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,168

Hi,

Check this thread. It might be useful.

[;

Thansk,

Archana

Read only

Former Member
0 Likes
1,168

Check this thread :

Read only

Former Member
0 Likes
1,168

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

Read only

0 Likes
1,168

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

Read only

0 Likes
1,168

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.

Read only

0 Likes
1,168

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

Read only

0 Likes
1,168

Dear Vinod,

Thanks a lot for the reply..:)

And thanks to others as well..:)

Regards

s@k