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

set parameter ID

Former Member
0 Likes
690

how to set the value for matnr field?

I used

SET PARAMETER ID 'MAT' FIELD TEMP.

CALL TRANSACTION 'MM01'.

this

can u tell me another way...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
635

Why set it if you're not going to add the "SKIP FIRST SCREEN" addition.

5 REPLIES 5
Read only

Former Member
0 Likes
636

Why set it if you're not going to add the "SKIP FIRST SCREEN" addition.

Read only

0 Likes
635

This message was moderated.

Read only

Former Member
0 Likes
635

Hi,

See this example

REPORT BOOKINGS NO STANDARD PAGE HEADING.

TABLES SBOOK.

START-OF-SELECTION.

WRITE: 'Select a booking',

/ '----


'.

SKIP.

GET SBOOK.

WRITE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

HIDE: SBOOK-CARRID, SBOOK-CONNID,

SBOOK-FLDATE, SBOOK-BOOKID.

AT LINE-SELECTION.

SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,

'CON' FIELD SBOOK-CONNID,

'DAY' FIELD SBOOK-FLDATE,

'BOK' FIELD SBOOK-BOOKID.

CALL TRANSACTION 'BOOK'.

Read only

Former Member
0 Likes
635

HAHA, maybe i´m getting it all wrong but still i had a good laugh (no offense, sry if it sounds like)

Well you code seems correct.

But you are doing a "CALL TRANSACTION 'MM01'."

MM01 is the transaction where you CREATE materials. While MATNR is THE key-field for materials it wouldnt make much sense to create more than one material with the same material number. It would not only make no sense it wouldnt even work, due to database restrictions.

So in MM01 the field matnr is most probably NOT connected to a parameter ID. it would make no sense.

Change MM01 to MM02 in your coding and i suspect all will work like you want it.

regards

Read only

0 Likes
635

Hi!

Florian's right, there is no MATNR field on the MM01 transaction, only on the MM02 and MM03 transactions...

Regards

Tamá