How to Read the Screen Fields after a Transaction ?

Hi all,
I am working on the Transaction 'O4K_LICENSE'. After the transaction is run, it generates an Internal License number which is displayed on the screen. I tried using 'GET PARAMETER', but as the CALL TRANSACTION is called within a loop, the SAP Global memory is not getting refreshed and iam getting the same value for every loop for the Internal License Number.
Is there any function Module other than DYNP_VALUES_READ to get the screen field values? I tried using the above function module, but in vain and it is not getting any values.
Warm Regards,
Vijay.

Well .... let me explain this very clearly.
The table OIHL has a composite primary key which is the combination of "External License Number" and "Internal License Number". The latter is generated after running the O4K_LICENSE transaction.
Moreover, iam attaching every record with a record generated in the program. Now, the same User(ERNAM) can create records having the same External License Number.
For example:
If i created a record yesterday with an external License Number 123, then say an internal lic no of 3 is assigned to it.
If i Create another record today with the same external lic no of 123, and an internal no of say 20 is attached to it, then i donot have any criterion to select the one which i have created today, as it fetches both the records.
To add to the worst, there is no timestamp field also.
Message was edited by: Vijay Sai

Similar Messages

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How to deactivate the screen fields dynamically in Module Pool Program?

    Hi guys,
         How to <b>activate & deactivate the screen fields</b> of a <b>module pool program</b>
    <b>dynamically</b> through program. Like Change mode and display mode in a single
    screen.

    Hi,
    Make use of a Variable,say gv_flag, for both Activate and Deactivate functionalities. As many times you hit the same button, change this variable value. For example, let us say first time you hit this button, assign value 'X' to this variable. Second time you hit this button, assign value ' ' to this variable. In PBO based the variable value  you have to Activate and Deactivate.
    PBO.
      if gv_flag = 'X'.  " Activate
        loop at screen.
          if screen-fname = 'ITAB1-MATNR'.
             screen-input = '1'.
             modify screen.
          endif.
        endloop.
      elseif gv_flag = ' '.   " Deactivate
          if screen-fname = 'ITAB1-MATNR'.
             screen-input = '0'.
             modify screen.
          endif.
        endloop.
      endif.
    PAI.
      case sy-ucomm.
         when 'ACDC'.   " Activate/Deactivate
             if gv_flag = 'X'.
               gv_flag = ' '.
             else.
               gv_flag = 'X'.
             endif.
      endcase.
    thanks,
    sksingh

  • HOW TO READ THE EDITABLE FIELD IN ALV

    CAN ANYONE HELP ME IN READING THE EDITABLE FIELD IN ALV.
    I AM DOING THE FOLLOWING.
    BUT STILL THE EDITABLE FIELD IN NOT READ.
    WHEN 'EXE' OR 'EXEC'.
      LOOP AT I_RB1 INTO L_WA_STRU.
      L_WA_STRU-LIFSK = L_WA_STRU-LIFSK1.
      MODIFY I_RB1 FROM L_WA_STRU.
      CLEAR L_WA_STRU.
      ENDLOOP.
    I_RB1 IS MY TABLE WHICH I PASSED IN TABLES OF REUSE_ALV_GRID_DISPLAY.LIFSK1 IS MY EDITABLE FIELD.
    AND LIFSK IS THE FIELD WHERE THE DATA SHOULD GET TRANSFERRED WHEN I HIT EXECUTE BUTTON.

    DATA: lt_display LIKE TABLE OF gt_display.
      REFRESH lt_display.
      CLEAR lt_display.
      lt_display[] = gt_display[].
      CLEAR ref_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
      IF lt_display[] NE gt_display[].
        gv_tosave = 'X'.
      ENDIF.
    Check this program. It will help you. 
    awrd points if helpful
    Bhupal

  • How to read the comment field of the Leave of absence Workflow.

    Hi,
    I have attached a custom Workflow template  to the
    Standard class "CL_HRASR00_WF_PROCESS_OBJECT" and  event "TRIGGERED" for my Personal leave of absence approval.
    During the Workflow step, once the approval goes to the final approval step and it is there in the Benifit Administrator's inbox (Portal) for approval, the Benift Admin is having an option of Withdrawing the process(Withdraw Process button). After filling the comments field, once he clicks this withdraw button the standard class "CL_HRASR00_WF_PROCESS_OBJECT" event "WITHDRAWN" gets triggered and it calls a separate workflow.
    I need to capture this comment in the new Workflow but not able to do the same.
    Can anyone let me know how can I do this. The event container does have any parameter to pass this value to the workflow container. And since the Step_Object GUID also changes I am unable to read it in the second workflow.
    Looking for some real help as this has become critical for the project.
    Thanks is andvace.

    Hi All,
    Thanks for your reply Trevor, but I guess you misunderstood my question. What I am not looking for is not the absence data. Basically I need to capture the comments put in by the Benifit administrator in the Leave of absence application form (Personal or Maternity/child care ), incase when he goes for withdrawing the Application submitted by the Employee.
    To elaborate it functionality step by step...
    1. An employee logs on to portal and submits a LOA application with a few mandatory field ( Commencing date,Returning Date, Reason).
      This kicks of a Workflow say WF1 attached to
    ABAP Class- CL_HRASR00_WF_PROCESS_OBJECT,  Event- TRIGGERED.
    2. Then after executing a few tasks to retrive data it goes to the Manager for approval. Once the manager appoves it goes to the Benifit Administrator.
    3. The Benifit Administrator can approve the application or has an option of withdrawing it.
    4. In case the Benifit Administrator goes for Withdrawal, after putting some comments in the form, it triggers the Event-WITHDRAWN of ABAP Class-CL_HRASR00_WF_PROCESS_OBJECT.
    5. This event in turn starts a new Workflow WF2.
    6. In this Workflow WF2 I need to pull in the comments put in by the Benifit Admin.
    How can I pull this comment?

  • How to bring the screen editable after errror message

    Hi All,
    I made a little validation in screen in me56 on a fixed vendor in item level.
    After which I issued an error message.
    I got the error message but the screen remains non-ediatble.
    I need to atleast open the field FIXED VENDOR for input for the user to change the value.
    Please provide me valuable inputs and this is needed very urgently.
    I used the exit EXIT_SAPLMEREQ_008 / Include: zxm02u08.
    Thanks in advance.
    Krithika

    Hi Krithika,
    Whenever an error message is being displayed set a flag.
    Next time just check if the flag is set before performing any other validation.
    If the flag is set then skip the error message and clear the flag, and if the flag is not set then emit the error message.
    But the flag should be declared in the global data of the Function POOL.
    You can also check if the Function Exit EXIT_SAPLMEREQ_010 suits your requirement. In this there is a parameter called EX_MESSAGES. If you populate the error messages in this parameter the system will automatically handle the change/display mode when an error message is displayed.
    Hope this helps in solving your problem.
    Regards,
    Abhisek.

  • How to remain the screen data after poping up the message.?

    Hi Experts,
    Case:
    Whe User is creating a sales order, suppose in the screen he had given the sales organization, divison, channel etc.
    Now i have to modify the exit to validate some condition by taking all the data. For ex. loading date, divison etc.
    If that valdiation failed i have to popup a message to user and
    when user clcik the ok, he should be at that screen and  be able to modify the things to validate again.
    Now problem i am facing is, when i am displaying a popup
    message and after clicking ok from user, control of the  is not going back to the last screen with all the data input by the user.
    Please help.

    Hi,
    Suppose you are using a screen 1000 for intaking all these inputs.
    In its PAI put the fields you require within CHAIN....ENDCHAIN.
    Example:
    CHAIN.
    field salesorder module check_salesorder ON INPUT.
    ENDCHAIN.
    Within the module check_salesorder call a subroutine check_salesorder.
    Within subroutine check_salesorder, call the standard SAP function Module POPUP_TO_CONFIRM_STEP.
    This way you can have a popup and stay in the same screen.
    Reward if Helpful.

  • How to read tables and fields from a transaction screen.

    hi all,
    i am having problem in reading fields and tables from a screen, could any one help me in mapping tables from a structure as well.
    it will be very help full if u had any documentation.
    Thanking u
    kiran

    Hi,
    In classical debug mode from CALL STACK tab try to find out the structures holding the screen values .
    Capture the values from transaction using FIELD SYMBOLS .
    See the below code.
    DATA : l_prog_val(50) TYPE c VALUE '(SAPLCTMS)WI[]'.
    **To get the (SAPLCTMS)WI value in this program from call stack.
      FIELD-SYMBOLS: <wi> TYPE ANY.
    *Assign the structure (SAPLCTMS)WI to field symbol
      ASSIGN  (l_prog_val) TO <wi>.
      IF sy-subrc NE 0.
        EXIT.
    *Assign the structure (SAPLCTMS)WI to internal table
      ELSE.
        it_wi[] = <wi>.
      ENDIF.
    Sastry.

  • How to read the "Name" field from document library in workflow?

    Hi,
    The task I'm trying to accomplish looks pertty simple: I need to read a value of the item's "Name" field inside the workflow. I try to do it using LookupSPListItem and GetDynamicValueProperties activities. I can get value of the "Title"
    field, also I created custom field and can read it too.
    But the "Name" field always comes empty.
    I guess I need to use some tricky syntax or this field has some different "internal name"?
    The workflow is designed in VS 2013.

    Thank you. Looks correct, since when I enter this path (FileLeafRef) into GetDynamicValueProperties
    and change Entity Type to list of documents it changes to Name
    automatically.
    But somehow it doesn't work too. (:
    I also tried LinkFilenameNoMenu and LinkFilename
    - same result.
    EDIT: Solved. :)
    Looks like FileLeafRef is not loaded by default by LookupSPListItem, so you have to pass this property name via
    Properties collection. The bad news is that in this case other properties won't be loaded if you didn't add them to this collection.
    Anyway, it works. :)

  • How to change the screen field text in runtime

    Hi ,
      I want to change the screen button text in runtime IN ABAP dynpro screens. if anybody know this please post some helpful answer
    Regards,
    Anil kumar G

    Hi Anil..
    We can change the Text of a Pushbutton dynamically.
    For this:
    1. Declare a Global variable with the Same name as the Button in TOP include
      Eg:   Data: Button1(30).
    2. In the PBO module of the Screen assign the Text to this variable:
       Eg:
        Module set_text OUTPUT.
            Button1 = 'This is the text'.
        ENDMODULE.
    <b>REWARD IF HELPFUL.</b>

  • How to read the input field value into ABAP variable?

    Hi All,
    i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
    lstring = request->get_form_field('myFlag').
    here 'myFlag' is the input field name,but this is not returning me any value into lstring.
    I have gone through the SDN and tried to do this.
    could you please help me out to resolve this issue.
    Thanks in Advance,
    Praveena

    Dear Praveena
    In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
    Regards
    Vijay.M

  • How to restrict the screen field TASK in SWI2_FREQ tcode

    Hi All,
    The user who ever has authorization for this transaction code is able to access all the task types irrespective of SAP modules from back end.
    The concern is that the task type of any module should not be visible for un-authorized people.
    In the front end only the authorized people can see work flow items (mail's) and it's according to business requirement.
    Is there any solution?
    If Yes, Pls let me know .
    Thanks
    Heena.

    Hi Heena
    I'm afraid that you won't find any standard SAP Authorization object that can help you here,
    You might how ever be able to solve it with HR Structural authorization, but be carefull here, if you activate the structural authorization check you migh be looking at a large SAP Security Project.
    I would usually not recommend that you give access to this transaction to other than your workflow administrators. But if you need to you might be able to create transaction-variants with fixed tasks, and the assign thoose to a t-codes, to which you grant access
    Regards
    Morten Nielsen

  • BDC-How to get the value of the screen field

    Hi All,
    I am facing a problem while writing the BDC code for the XK02 transaction.
    Recording:
    We have recorded like this :after giving the values in the initial screen(vendor no and purchase group and selecting the purchasing data check box) and enter into the second screen and then click on alternative data icon.There we ll have set of plants we have to check auto ordering (by selecting the plant and click purchasing icon)for the plants which are in the given file.
    Problem:
    Suppose there are five plants(like 1,2,3,4,5) for a particular vendor but we are having only three plants in the file for which auto ordering check has to be done.The problem is that its doing auto ordering check for the first three plants(1,2,3) in the transaction.But  in the file we are having Plants like (1,3,5).How to get the screen field value directly or is there any other way to resolve the problem?

    Dear Raja,
    You cannot get hold of screen values while running through the BDC Operation.
    Only way you can get the value --> populating an Internal Table from the Database Table.
    Regards,
    Abir
    Don't forget to award Points *

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • How to enable the screen after triggering the error message

    Hi All,
    we have a tcode IW31, in that one field(WBS element -PROID) is not mandatory. so we have written the following code to make it mandatory in a user exit EXIT_SAPLCOIH_010.It's triggering the error message, but it is going into disable mode. Please sugget me how to enable the screen after getting the error message triggering.
    if not caufvd_imp-proid is initial.
      select single * from t350 into wa_t350
              where  auart    = caufvd_imp-auart
                and  imord    = 'X'.
      if sy-subrc is initial.
        pspel = caufvd_imp-proid.
      else.
        call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
             exporting
                  input  = caufvd_imp-proid
             importing
                  output = l_posid.
        concatenate text-t10 l_posid text-t11
                    into l_textline1 separated by space.
        message i208(00) with l_textline1.
      endif.
    else.
      message e208(00) with 'Please maintain WBS element in Location Tab'.
    endif.
    Thanks

    Hi,
    Instead of error message use status message like
    message s208(00) with 'Please maintain WBS element in Location Tab'.
    Leave to screen sy-synnr.
    This will allow to move to the screen and have in enable mode.
    WIth Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Feb 13, 2009 7:46 AM

Maybe you are looking for

  • What do I need to connect to the internet

    I have a mac book OSX 105.3 Leopard, which i purchased in the USA. Since arrivng in the Uk I have been ubable to connect to the internet. I was under the impression that once connected to a modem I would have the interenet. I tried connecting it to t

  • HT3529 Can someone help me understand why my iMessage no longer works on my iPad

    Can someone help me understand why my iMessage no longer works on my iPad

  • IPad mini retina as a phone

    I am thinking of buying a new iPad mini Retina. I saw the option to buy a 32GB model that is WiFi and cellular, so that means it will work as a phone, correct? Can I use my iPhone number on the mini as well? How do you set that up?

  • Oracle ApEx bug?

    My environment: Windows 7 32 bit Oracle 11g XE R2 GlassFish Server Open Source Edition 3.1.2.2 (build 5) ApEx Listener 2.0.0.354.17.05 (deployed as an application in the above web server) ApEx 4.2.1 My Problem: 1. Define a RESTful Resource Service Mo

  • Move a table to right or left when in the drop down tab menu

    How do you move a table to right or left when you have many tabs and the tabl you want to move is  in the drop down tab menu at the right....?