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

Issue with call transaction

senthil_kumar29
Participant
0 Likes
1,780

Hi,

I am calling transaction IW21 using call transaction statement.

I set the parameter order type (QMR) with value.

But still the transaction stops at the initial screen and the order type field is empty.

I also tried "and skip first screen" option, still its not working..

Any suggestions..

Cheers

Senthil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,445

Hi Senthil,

First you need to get the parameter-id of the order type,QMR and set the value using set parameter-id.

Now you use call transaction with skip first screen.

Check this link for SET and GET Parameter-id:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm

Hope this helps you.

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Jul 4, 2008 2:53 PM

Hi,

I am calling transaction IW21 using call transaction statement.

I set the parameter order type (QMR) with value.

But still the transaction stops at the initial screen and the order type field is empty.

I also tried "and skip first screen" option, still its not working..

Any suggestions..

Cheers

Senthil

8 REPLIES 8
Read only

Former Member
0 Likes
1,446

Hi Senthil,

First you need to get the parameter-id of the order type,QMR and set the value using set parameter-id.

Now you use call transaction with skip first screen.

Check this link for SET and GET Parameter-id:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm

Hope this helps you.

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Jul 4, 2008 2:53 PM

Read only

Former Member
0 Likes
1,445

hi,

This is happening because the default value of order type is not SPACE. SKIP first Screen is only working with screen whose fields have a default value of SPACE. Which is not in ur case.

Fill the value of the field and then use SKIP FIRST SCREEN.

Hope this will Help.

Reward if helpful.

Sumit Agarwal

Read only

Former Member
0 Likes
1,445

HI,

declare parameter with type QMART and memory id QMR.


PARAMETER:
      p_qmart type QMART memory id QMR.


Start-of-selection.
call transaction IW21.

In the above case the transaction is called after you specify value in selection screen as it has been stated inside the start-of-selection.

There is another way.... Through BDC programming concept... you can send the value through a table and the table type is BDCDATA.

If you want to more about BDC program can go with the below link..

http://www.sap-img.com/bdc.htm

Hope this would solve your problem.

Regards

Narin Nandivada.

Read only

Former Member
0 Likes
1,445

Hi Senthil

first Set the parameter id QMR .

call transaction 'IW21' and skip first screen.

Note... check your transaction code if it is in capitals or not. and also set the parameter id before you call the transaction

regards

padma

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,445

Hi Senthil,

I wonder when i try it in my system that SET parameter

is not working in this case!!!. Any way work around would be doing BDC. Paste below code. It will solve ur problem. But let us update if u find any thing new about this strange problem.


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 = 'BDC_OKCODE'.
wa_bdcdata-fval = '/00'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.

wa_bdcdata-fnam = 'RIWO00-QMART'.
wa_bdcdata-fval = 'M1'.           "Your value can pass dynamic through variable.
APPEND wa_bdcdata TO i_bdcdata.

CALL TRANSACTION 'IW21' USING i_bdcdata MODE 'E'.

Thanks,

Vinod.

Read only

0 Likes
1,445

Hi,

Thanx for Ur answer. Its working.

But now its not taking parameter value for Functional Location. I set it before changes. it was fine..

If I give this value through BDC now.. its accepting it.. but get error message at the message bar..

"Enter all required fields"..

Even though user going to enter other values manually in this transaction.. error message don't looks good..

Cheers

Senthil

Read only

0 Likes
1,445

Hi Senthil,

There are totally 3 fields in initial screen if IW21 outof which one is mandatory.(Notification type). Notification and reference notification are not mandatory fields.

In whch version of SAP u r? i am in 4.6C. When i try below BDC it is going to second screen and not getting any messages. Try executing below code in one sample report and get back in case of any issues. Also let me kow in which screen u r getting error message.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,445

use this line of code


set parameter id 'QMR' field 'value'.
call transaction 'xxxx' and skip first screen.

this will work only if QMR field is the only mandatory field in

the screen.

Regards

Prakash Varun