Application Development 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: 

Parameter ID for MSC1N <Urgent>

Former Member
0 Kudos

Hi, experts

I am using

SET PARAMETER ID 'CHA' FIELD ITAB-BATCH.

and it works in "MSC1" when calling it through module pool using call transaction.

I got batch no in the field of MSC1N batch.

BUT

I don't get , when I use MSC1N. while parameter id for batch is same <CHA>.

Waiting for Reply

with warm Regards

Rajiv singh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Rajiv

The reason:

MSC1N : Program/Screen : SAPLCHRG/1401 - Go to screen painter -

Check field DFBATCH-CHARG, <b>the GET parameter is not ticked</b>, while it is ticked for Material and Plant.

Also -> MSC3N uses screen 1501 for which GET and SET are both ticked.. which explains why it would be possible to display in MSC3N..

At the same time if you check for MSC1 both SET and GET would be ticked.

This could be the reason why your code will not work.

For possible solutions check SAP notes... I think that this would not be possible because logically speaking MSC1N is for creating a batch hence ideally there is no need for this sort of a functionality

Regards,

Arun

Message was edited by:

Arun Nair

6 REPLIES 6

Former Member
0 Kudos

Hi

Better use parameter id 's for MATERIAL,PLANT and BATCH and see instead of using only for BATCH field

Regards

Anji

0 Kudos

I am doing same as you said. I am getting material and werks but not batch.

Please help me in this regards.

0 Kudos

Hi Rajiv,

Can you paste your code.

Regards,

Atish

0 Kudos

here is the code:

SET PARAMETER ID 'MAT' FIELD '10000001'.

SET PARAMETER ID 'CHA' FIELD 'TESTR909'.

SET PARAMETER ID 'WRK' FIELD '1003'.

CALL TRANSACTION 'MSC1N'.

0 Kudos

Hi Rajiv,

I think

SET PARAMETER ID 'CHA' FIELD 'TESTR909'.

will not work with MSC1N as it is refreshing the parameter ID in the program obly for this transaction. If you see for MSC2N or MSC3N it will work fine.

Don't know why SAP is doing this. may be some thing functional in clearing it..

Regards,

Atish

Former Member
0 Kudos

Hello Rajiv

The reason:

MSC1N : Program/Screen : SAPLCHRG/1401 - Go to screen painter -

Check field DFBATCH-CHARG, <b>the GET parameter is not ticked</b>, while it is ticked for Material and Plant.

Also -> MSC3N uses screen 1501 for which GET and SET are both ticked.. which explains why it would be possible to display in MSC3N..

At the same time if you check for MSC1 both SET and GET would be ticked.

This could be the reason why your code will not work.

For possible solutions check SAP notes... I think that this would not be possible because logically speaking MSC1N is for creating a batch hence ideally there is no need for this sort of a functionality

Regards,

Arun

Message was edited by:

Arun Nair