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

function modules

Hi Gurus,

Can anyone help to pass the values in change and tables of a function module.

Thanks in advance,

Krishna.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 03:15 AM

    Hi Kris,

    You need to provide more details in order for us to help you. Can you give us an overview of what you are trying to accomplish please? For example, can you tell us what information are you trying to pass and what function module would you be pass it to? It will really help if you can tell us the high level process as well.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 09:10 AM

    Hi Emmanuel,

    Thanks for replying.

    the function module is /SAPAPO/CTM_MSEL_GENERATE.

    The values given are

    product: hyb000012

    Loc: 1342

    mselid: test1 so these are the values given.

    Regds,

    krishna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 05:52 AM

    Thanks for reply.

    It is ' /SAPAPO/CTM_MSEL_GENERATE'

    and the values passed shoud be for model,material,mselid,matloc.

    model is in import parameters,matid,loc,mselid are in tables parameters.

    I dont no how to pass values into tables parameters fields.

    when i pass values in change parameters it is giving short dump.

    so, Passing values into change parameters is wrong or not i dont no. but the requirement is to pass values into the internal tables of tables parameters.

    That is what i am not sure how to pass values and also are there any other fields required to pass values.

    Please let me know.

    Regards,

    Krishna.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kris,

      Even I'm not able to find out ur function module '/SAPAPO/CTM_MSEL_GENERATE' in my system. Can u tell us which version of SCM u r using? If you say us know the DUMP message we can try to give u a solution.

      Regards,

      Siva.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 09:42 AM

    I am using SAP APO5.0.

    '/SAPAPO/CTM_MDATSEL_GENERATE'. this fn. module is also used in the /SAPAPO/CTM_MSEL_GENERATE.

    It is under the group of /SAPAPO/CTM_MSEL.

    If i pass values 'Runtime Errors GETWA_NOT_ASSIGNED', this dump is coming.

    If i dont giv values in parameters this dump is coming.

    Runtime Errors CALL_FUNCTION_CONFLICT_TAB_TYP

    Except. CX_SY_DYN_CALL_ILLEGAL_TYPE

    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE'

    Message was edited by:

    kris b

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kris,

      you should define structures for the tables you want to fill using "like line of". After that you can fill the necessary fields of the structure and append them to the table.

      Example:

      data:

      ls_matloc type /SAPAPO/CTM_MDAT_MATLOC,

      lt_matloc type /SAPAPO/CTM_MDAT_MATLOC_TAB.

      ls_matloc-matid = lv_matid. (<- your product has to be a GUID)

      append ls_matloc to lt_matloc.

      -


      Hope this gives you an idea...

      Regards,

      Niko

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.