Function Module to Lock a Variant or see variant values in Disabled mode?

Hi,
I have a requirement in which I create some jobs which takes some variant as one of the input.
My Problem is once i have executed the job successfully in SM37, I need to see the variant values. I know there is a function Module RS_VARIANT_CHANGE with which we can see the values of variant.
But i dont want the user to modify those values since the job has already been executed. I just want to see them.
Can anyone tell me is there any FM to see just the variant values in disabled mode or the the variant is locked so that the user cant modify it?

Hi,
I'm not sure if you really want to create a program to see the variant values?
Because you can see the values by simply going to SM37, select the job, display list of steps, position cursor and use menu Goto -> Variant
Moreover, (I don't know if it may answer your requirement) when you schedule a job with a report which outputs an ABAP list, you may define in the print parameters the option "Selection cover sheet" to print the values of selection screen parameters/select-options.
Sandra

Similar Messages

  • Remote enabled function module to copy a variant

    Hi
    Kindly let me know whether there is any remote enable function module to copy a variant  and save a  variant.
    Thanks and Regards
    neeta

    HI,
    Use the Function moduels
    <b>RS_VARIANT_CLIENTCOPY 
    RS_VARIANT_COPY   </b>    
    Regards
    Sudheer

  • Regarding Function Module for Locking ( enque)

    Hi,
    I am facing a Problem that is when iam running Call transaction one popup is coming because some other user currently editing that Tcode at that time i need to lock tcode using enque specially for table . If suppose some other user editing at that time it will shoe that popup and it will exit from their with out doing any other process For that i need Function module for Lock and Delock.
    thanks in advance,
    murali krishna.

    So in this example, I am doing a loop and check for a lock, if I don't get one, I wait for 5 seconds, this loop continues untill 30 seconds, no lock then it quits and gives message.
    report zrich_0001.
    data: counter type i.
    parameters: p_equnr type equi-equnr.
    start-of-selection.
      clear counter.
      do.
    Exhausted,  no luch in getting a lock, get of of DO loop.
        if counter > 6.
          sy-subrc = 1.
          exit.
        endif.
    Try for lock
        call function 'ENQUEUE_EIEQUI'
          exporting
            mode_equi            = 'E'
            mandt                = sy-mandt
            equnr                = p_equnr
       _wait                = 'X'
          exceptions
            foreign_lock         = 1
            system_failure       = 2
            others               = 3.
    Got a lock, get out of DO loop.
       if sy-subrc  = 0.
          exit.
        endif.
    Still here?  Then wait another 5 seconds
        wait up to 5 seconds.
        counter = counter  + 1.
      enddo.
    Report status
      case sy-subrc.
        when  0.
          message s001(00) with 'Lock could not be established'.
        when  1.
          message i001(00) with 'Lock could not be established'.
      endcase.
    Regards,
    rewards point

  • Function Module for creation of variant in BADI

    I need to create a variant to store shipment no's which are coming in BADI. And variant need to be passed to a report which has to be run  Background. can anyone help me out how to do it. Can anyone know the function module for this.

    Hi Anirban,
    Use the bapi BAPI_BUSPROCESSND_CREATEMULTI to achieve the same.
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Is there any function module to lock t024 table

    is there lock object for t024 table?otherwise any fm for locking t024 table?

    Hi Naren,
    <b>Good ... check out the following documentation
    Lock objects are used to lock the database table while making the modifications on the database table.
    you can create your own lock objects using SE11.
    if you create lock objects on any table system will create two function modules.
    1.ENQUEUE....
    2.DEQUEUE.....
    first one is used to lock the table
    second one used to removing lock on the table.
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    check this link :
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    _SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.
    _SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    _SCOPE = 3: The lock
    Re: lock objects
    Managingin lock entries
    http://help.sap.com/saphelp_nw04/helpdata/en/37/a2e3ae344411d3acb00000e83539c3/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm</b>
    Good Luck and thanks
    AK

  • Need of a function module to give a pop up of certain values

    Hi Experts,
    I am need of an function module to give a pop up of values present in an internal table, just like an F4 help. Please advise.
    Thanks in advance,
    Vivenchandar R

    hi Viven,
    check the program <b>BALV_POPUP_TO_SELECT</b> to see how the function module <b>REUSE_ALV_POPUP_TO_SELECT</b> can be used for your requirement.
    Hope this helps,
    Sajan Joseph.

  • Function Modules for Format Date, Month Name and Quarter value.

    Hi All,
    1. I am getting the date field from the Flatfile, so i need to format the date to YYYYMMDD. Is there any Function module for that in BW.
    2. Based on the above Formated Date i have to find out the Name of the Month like JANUARY, FEBUARY etc.
    3. Based on the same above Formated Date i need to find out the Quarter like 1, 2 etc.
    Could you please let me know if any function modules are there for the above questions in BW not in ABAP, why i mention is some Function modules are there in ABAP but not in BW.
    Thanks in advance.
    Regards,
    srinivas

    Hi ,
    1.If your input date format is MMDDYYYY then Use SDATE as conversion routine in trans strucutre to convert into YYYYMMDD.
    2.By passing year as input parameter for the following FM you would get all the months with text.Using READ statement in routine you can get month name
    MONTH_NAMES_GET
    3.For Quarters you can use the following FM:
    TSTR_PERIODS_QUARTERS
    hope it helps...
    regards,
    Raju

  • Function module to lock mulitple objects in a single transport request.

    Hello,
    I have a query regarding one of the requirments in my project. The requirment goes like this:
    ' On executing a transaciton lets say the user gets a list of data elements then the user selects say five data elemetns ( check boxes are there in the list display showing data elements ) and he sets that the documentations of each element as 'Self - Expalanatory' then the requirement is that all these data elements must get locked in a single transport request.
    Is there a standarad API which takes object ID , Object type as input in form of table and checks if there are any existing transports in which the data element is locked if yes locks it under it, if not creates a new one and locks all the other objects in that request.
    Atleast a FM which takes a table of object ids as input and locks them under a single transport request will also be helpful.
    Some place where I can look for it.
    Warm Regards,
    Naveen M

    If the objects are available in an existing request then they will be already locked.
    If they are not available in request you can assign all of them in one request using
    SE03 transaction.
    In SE03 transaction,select include objects in request and execute.
    there click selected objects radiobutton, give your objects and execute.
    save them in a request and they will be locked and you can transport them later.

  • Client copy Locked function module

    HI,
    I'm trying to make a client from client 400 to 420.
    The problem is that the function module is locked by the current user (the same running the client copy); Then when It can't deletes the FM it states that it already exists:
    "G_GLDB_POSTING_A already exists (include LGIVAU01)"
    Afterwards the job gets cancelled due to a system exception ERROR_MESSAGE
    The weird part is that it just happens for this client 420. There is also a copy from 400 to 410 and it works without a problem.
    Any help would be greatly appreciated.

    Hi,
    You can check the client copy lock from SCC4 also, but it really matters if your client copy finished or not.
    If you still see the client copy lock there then it seems your client copy is not finished properly. Try to login your new client 420 and start deletion using SCC5 and after that you can start/schedule new client copy during weekends.
    Regards,
    Manish

  • Lock a ztable using function module or memory id

    hello experts,
    i am facing a problem in ALV grid output (editable) - when user editing and saving data into the ztable - other user should not able to save the data and error msg to be displayed.
    i am using the function modules for locking the whole table - enqueue_eztable and dequeue_eztable. i can see the table as locked in sm12, but i can also do the updating and save data.
    is there anyother function module to work with?
    another way i am doing is -
    DATA: text4 TYPE c,
            text5 TYPE c.
      IMPORT text4 TO text5 FROM MEMORY ID 'Y222'.
      IF sy-subrc = 0.
        IF text5 = 'X'.
          MESSAGE e000(z1) WITH 'SOME USER IS ACCESSING THE PROGRAM'.
        ENDIF.
      ELSE.
        EXPORT text4 = 'X' TO MEMORY ID 'Y222'.
        PERFORM update_dbase.
        FREE MEMORY ID 'Y222'.
      ENDIF.
    this method also not working.
    plz help me, how to avoid other user accessing the data when another user is working on it?
    thanks.

    Hi,
    Create lock object for the table and use below method
      Lock Table ZWMDASHBOARD
        CALL FUNCTION 'ENQUEUE_EZWMDASHBOARD'
          EXPORTING
            mode_zwmdashboard = 'E'
            mandt             = sy-mandt
          EXCEPTIONS
            foreign_lock      = 1
            system_failure    = 2
            OTHERS            = 3.
        IF sy-subrc <> 0.
          RAISE unable_to_lock.     " Exception
        ELSE.
        Modify Table ZWMDASHBOARD.
          MODIFY zwmdashboard FROM TABLE t_zwmdashboard[].
          IF sy-subrc <> 0.
          Do Nothing
          ENDIF.
        Unlock table ZWMDASHBOARD.
          CALL FUNCTION 'DEQUEUE_EZWMDASHBOARD'
            EXPORTING
              mode_zwmdashboard = 'E'
              mandt             = sy-mandt.
        ENDIF.
    Hope this helps..

  • Function Module to extract char values for a matl variant

    Experts,
    Looking for a Function Module with which I can extract the Char value for a specific characteristic on my material variant. So, the class type is 300 & I would like to pass this material (variant) as an input in order to retrieve the value for the specific characteristic (which will be unique to this variant)
    Any one, an idea?
    thanks

    Ok, I found what I needed. For everyone's benefit, herez what I found:
    1. every application/object in the SAP side which uses the configuration has a unique Internal Object #. For material variants, Sales Documents, Prodn Ord headers & components, so on so forth.
    2. In the system the fields CUOBF, CUOBJ carry these Internal Obj #'s. For the sake of getting the material variant char & values I found the func module VC_I_GET_CONFIGURATION, where the input could be the Int Obj # from the MARA or the one from VBAP, based on the need.
    Thanks

  • Function Module Lock

    Hello,
           Is it possible to lock a function module similar to that of locking a table.
    Please let me know.
    Thanks in advance.
    Regards,
    Siva.

    u can set locks for function modules also.  check the below links for better understanding..
    help.sap.com/saphelp_nw04s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm
    help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm
    Function Modules for Lock Requests
    Activating a lock object in the ABAP Dictionary automatically creates function modules for setting (ENQUEUE_
    DDENQ_LIKE-XPARFLAG
    _WAIT
    DDENQ_LIKE-WAITFLAG
    _SCOPE
    DDENQ_LIKE-SCOPE
    _SYNCHRON
    DDENQ_LIKE-SYNCHRON
    Message was edited by:
            Ramesh Babu Chirumamilla

  • Function module "Z_XSI_ACTIVE" not found

    Dear all,
    I m getting an error
    Runtime Errors CALL_FUNCTION_NOT_FOUND
    Except. CX_SY_DYN_CALL_ILLEGAL_FUNC
    Date and Time 18.07.2008 16:02:20
    Short dump has not been completely stored (too big)
    Short text
    Function module "Z_XSI_ACTIVE" not found.
    Pls see details
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was
    not caught in
    procedure "XSI_ACTIVE_DELV" "(FUNCTION)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The program "SAPLVVTR" contains the CALL FUNCTION statement.
    The name of the function module to be called is "Z_XSI_ACTIVE".
    No function module exists with the name "Z_XSI_ACTIVE".
    All function modules are listed in the Function Library (SE37).
    Possible reasons:
    a) Wrong name specified. Pay particular attention to
    upper/lower case and underscores ("_").
    or
    b) Transport error
    c) In the case of an enqueue/dequeue module,
    the lock object may not have been activated
    (ABAP/4 Dictionary).
    Pls view Function Module "XSI_ACTIVE_DELV" and tell me about function "Z_XSI_ACTIVE".
    I think it has problem with user exit.

    In the IMG (tx SPRO) you have Logistics Execution->Shipping->Basic Shipping Functions->Configure Global Shipping Data.  If you execute that, you have the choice for field ExpDlvCo to have
    Inactive
    Active
    Active depending on function module XSI_ACTIVE
    Active depending on function module XSI_ACTIVE with changes
    Help on this field says:
    Express Delivery Company Active
        This indicator dictates whether the express-delivery-company interface
        is active and may contain the following values:
           "X": clients active
           " " (blank): clients inactive
        Special processing:
        The values of "S" and "U" call up the "XSI_ACTIVE" customer function
        module. "S" indicates that the data is read-only, whereas "U" means that
        data can be changed. The interface for this function module must be
        identical to the one in the function module "XSI_ACTIVE_SAMPLE".
    I.e., if you set the ExpDlvCo field to be  "Active depending on function module XSI_ACTIVE" or "Active depending on function module XSI_ACTIVE with changes", then you have to create a function module Z_XSI_ACTIVE, with the same interface as XSI_ACTIVE_SAMPLE.
    matt

  • How to block particular function module for user or users

    Hi,
       Can anyone let me know that if I want to prevent users for certain function module or modules.Is it possible to do so.Please let me know.
    Have a great day ahead.

    Please take note that there are hundreds of thousands of function modules in any one SAP system (see table TFDIR) and a large number of them can do very very powerfull and even dangerous things when executed on their own in the test mode.
    It shounds as if you are only worried about only one (probably some famous one...) and want to range around it's name. This is not a good idea and will not work anyway.
    Cheers,
    Julius

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

Maybe you are looking for

  • Process Order Cost Analysis Target and Actual Quantity Missing

    This is related to Process order costing . Issue : Before activating  Material Update field in Costing view 1 of Material master , we have created few process orders and Delivered . Hence cost analysis shows Actual and target cost fields  Empty in CO

  • I have a number of cds that have bonus videos attached on an audio cd.  How do i play these videos on my Macbook pro, early 2011.

    Hi: I have a number of newer and older music cds that came with bonus dvds attached to the audio cd.  How do i get the video to play on my macbook pro (early 2011) w/ Mountain Lion?  Thanks! j.

  • Issue in Billing doc CST

    Hi Gurus, At the time of billing CST is calculated item wise for all 3 materials but when we see accounting doc it shows only one cst line item with collected total of all three materials, I analysis the same & found out that the system takes that am

  • Messaging services with ldap replication

    using JES2004_q2 Every single component is working fine. Now I am trying to establish the replication with other LDAP for user data. To achieve this I deleted the current ou=People and ou=Groups under my default domain o=xyz.com. And created and init

  • RoboHelp 7 Help Desperately Needs Help

    I can't believe how drastically Adobe has RUINED RoboHelp's help system. I'm new to version 7 and have permanently lost view of my Table of Contents. It's not on the View menu. It's not on the Pod menu. It's not on a right-click menu, it's no where t