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

syucomm VALUE ''

Hello experts,

I am working on program in which there are some constants defined as below:

CONSTANTS: c_add_product TYPE syucomm VALUE 'ADD_PRODUCT',

c_edit_product TYPE syucomm VALUE 'EDIT_PRODUCT',

c_del_product TYPE syucomm VALUE 'DEL_PRODUCT',

Can anybody know generally where 'ADD_PRODUCT', 'EDIT_PRODUCT' etc. are defined in the program? I have to define VALUE 'ADD_CHILD' in

c_add_child TYPE syucomm VALUE 'ADD_CHILD',


If anybody have any idea please share it with me.



Thanks,


Avadhut Mulay.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Feb 18, 2014 at 03:59 PM

    Hi Avadhut,

    Try to look if your program has a dynpro. In that case you should look at the STATUS of your dynpro becuase it might have buttoms for those purposes.

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Also, because they are constants, I'd expect that they are used in conditional statements.

      such as

      if sy-ucomm = c_add_product.

      do something.

      endif.

      So look for where those constants are used.

      Neal

  • Posted on Feb 18, 2014 at 04:12 PM

    Hello,

    Go to Se41 and create a new status for your program.

    Declare you status like SET PF-STATUS 'XYZ' in your program.

    Now double click into it. It will look like below.

    In the above ICON you can double click and assign your user command sy-ucomm here.

    Thanks & Regards,

    Abhijit


    pfstat.jpg (124.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2014 at 04:15 PM

    normally, the constants will be defined in a TOP include or an include residing in the TOP include of the Module Pool program.

    Go to SE80 and look at the program and the includes. Also, you can search the source code for the constant you are after in the program whilst in SE80.


    search_mod_pool.jpg (131.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2014 at 04:43 PM

    Hello experts,

    thanks for reply. I searched them every where in Menu painter, dynpro etc. but not able to find the definitions.

    Thanks

    Avadhut

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 18, 2014 at 05:26 PM

    Hello Avadhut,

    Try to do a global search using the binocular icon, during search select "In main program".

    Since all constants are related to Function code, it might be used somewhere in the conditional statements like IF or CASE.

    Regards,

    Thanga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2014 at 06:28 PM

    Hi,

    As you mentioned,

    I have to define VALUE 'ADD_CHILD' in

    c_add_child TYPE syucomm VALUE 'ADD_CHILD',

    I do believe this will be related to old constants.

    If you share us what exactly you are trying to achieve , will help us to crack the hidden constants 😊

    Thanks & Regards,

    aRUN

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2014 at 07:07 AM

    Hello experts,

    Its module pool program with dynpro as well as ALV is also used in it to display hierarchy. What exactly code does is to retrieve data from tables and display it on screen as hierarchy, additionally what we can do is Add, Delete, Edit components in hierarchy. Basically the constants are the FCODE's. I think ADD_ PRODUCT, EDIT_PRODUCT, DEL_PRODUCT are the procedures for hierarchy operations. What i want to do is to Add subproduct below product and write code for its context menu and so on. First I have used ADD_PRODUCT to create subproduct its seems fine but addition in hierarchy takes place at PRODUCT level. Thus i want to write new procedure to create subproduct. FYI, i am attaching code with this post.

    Thanks

    Avadhut


    Code.txt.zip (6.4 kB)
    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.