2010 Jul 22 12:50 PM
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...
2010 Jul 22 1:05 PM
Why set it if you're not going to add the "SKIP FIRST SCREEN" addition.
2010 Jul 22 1:05 PM
Why set it if you're not going to add the "SKIP FIRST SCREEN" addition.
2010 Jul 22 1:10 PM
2010 Jul 22 1:15 PM
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'.
2010 Jul 22 1:22 PM
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
2010 Jul 22 1:32 PM
Hi!
Florian's right, there is no MATNR field on the MM01 transaction, only on the MM02 and MM03 transactions...
Regards
Tamá