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

conversion???

Is there a conversion routine to convert mara-matnr to cdhdr-OBJECTID.??

I have to use a FM u201CCHANGEDOCUMENT_READu201D for which require CDHDR-OBJECTID , to get the changes done to a material.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 06:33 AM

    Try using FM: "CONVERSION_EXIT_MATN1_INPUT"

    Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 07:02 AM

    Use CONVERSION_EXIT_ALPHA_INPUT

    or

    CONVERSION_EXIT_MATN1_INPUT

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 07:26 AM

    Hi,

    Use the conversion exit and below example piece of code may help you:

    data: lo_matnr type CDHDR-OBJECTID,

    lv_matnr type matnr.

    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'

    EXPORTING

    input = lv_matnr

    IMPORTING

    OUTPUT = lo_matnr

    EXCEPTIONS

    LENGTH_ERROR = 1

    OTHERS = 2

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    else.

    CALL FUNCTION 'CHANGEDOCUMENT_READ'

    EXPORTING

    • ARCHIVE_HANDLE = 0

    • CHANGENUMBER = ' '

    • DATE_OF_CHANGE = '00000000'

    objectclass = 'ADRESSE'

    OBJECTID = lo_matnr...

    Regards

    Salini.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 07:39 AM

    You can use the conversion routine,

    CONVERSION_EXIT_MATN1_INPUT

    Import parameters Value

    INPUT 9500014

    Export parameters Value

    OUTPUT 000000000009500014

    000000000009500014 can be used in CDHDR-OBJECTID.

    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.