2008 Jul 04 1:47 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
2008 Jul 04 1:52 PM
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
2008 Jul 04 1:52 PM
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
2008 Jul 04 1:55 PM
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
2008 Jul 04 2:08 PM
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.
2008 Jul 04 2:08 PM
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
2008 Jul 04 2:54 PM
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.
2008 Jul 04 7:36 PM
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
2008 Jul 05 7:14 AM
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.
2008 Jul 05 7:19 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |