Skip to Content
author's profile photo Former Member
Former Member

parameter id

hi!

I am using an ALV report.

when using the double click i need to go to transaction MM19.

When i am passing the parameters through the set parameter id and call transaction, only the matnr is being passed and the date field is not.

the code is:

set parameter id 'MAT' field xxxx

set parameter id 'STICH' field xxxx

CALL TRANSACTION 'MM19'.

what am i doing wrong?

regards

yifat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2005 at 10:13 AM

    Hi,

    The following code works, I found out from the program that the parameter id STICH is considered only under certain conditions..

    REPORT zsritest.

    PARAMETERS: p_matnr LIKE rmmg1-matnr OBLIGATORY,

    p_dline LIKE rmmg1-dline DEFAULT sy-datum.

    ****The following two are required to tell the system

    ****to accept Date

    SET PARAMETER ID 'MXX' FIELD 'BUS1001.DISPLAY'.

    SET PARAMETER ID 'CALL_TRANS_MODE' FIELD 'ECM_MAT_SHOW'.

    SET PARAMETER ID 'MAT' FIELD p_matnr.

    SET PARAMETER ID 'STICH' FIELD p_dline.

    CALL TRANSACTION 'MM19'.

    Hope this helps..

    Sri

    Message was edited by: Srikanth Pinnamaneni

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 27, 2005 at 10:04 AM

    what is the data type of the parameter you have used for the variable used with

    set parameter id 'STICH' field <b>xxxx</b>

    is it type D?

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2005 at 10:10 AM

    hi!

    I used type CC_DATUM.

    REGARDS

    YIFAT

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 27, 2005 at 10:14 AM

    I tried this code in my system.

    start-of-selection.

    set parameter id 'MAT' field 'CPB11300'.

    set parameter id 'STICH' field '11/27/2005'.

    CALL TRANSACTION 'MM19' and skip first screen.

    it's working.

    Probably you should delare a variable of length 10.

    Write the date to this field.

    write <KEY_DATE> to v_date.

    and then pass the value.

    May be you have declare the value that is being passed to date as like sy-datum.

    Try this,

    data: v_date(10) value '11/27/2005'.

    start-of-selection.

    set parameter id 'MAT' field 'CPB11300'.

    set parameter id 'STICH' field v_date.

    CALL TRANSACTION 'MM19' and skip first screen.

    Regards,

    Ravi Kanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2005 at 10:54 AM

    hi!

    thank you all for your answers.

    regards yifat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.