Read the buffer in screen fields of the report program.

Hi all,
I have 2 screen fields in a report program. I need to do some process based on the entry in the 1 st field.
But i need press 'enter' after making an entry in the 1st field. I want to read the field dynamically. I was able to find a function module to do it 'DYNP_VALUES_READ'. In this one of the import attribute is the dyname. I give the field name of the 1st field as per its defined in the selection parameter of th report program. And when exectued the function module returns invalid dyprofield. 
kindly advise on what should be the dyproname for selection parameter.
Thanks And Regards
Ravish

hi ravi,
just execute the code and try to know where u r getting error in ur code .
in this just give the input as USD(us dollar)
substitute for dynname = sy-cprog in ur code and check that .
hope this helps u out .
regards,
vikky.
tables tcurt.
DATA   DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
PARAMETERS: P_WAERS LIKE TCURT-WAERS,        "Currency
            P_LTEXT LIKE TCURT-LTEXT,        "Long Text
            P_KTEXT LIKE TCURT-KTEXT.        "Short Text
*--- Example of updating value of another field on the screen -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.
  CLEAR: DYFIELDS[], DYFIELDS.
*--- select currency
  CALL FUNCTION 'HELP_VALUES_GET'
       EXPORTING
            fieldname        =  'WAERS'
            tabname          =  'TCURT'
       IMPORTING
            SELECT_VALUE     =   P_WAERS.
*--- get long text for the selected currency
  SELECT SINGLE LTEXT FROM TCURT
    INTO DYFIELDS-FIELDVALUE
    WHERE SPRAS = SY-LANGU
    AND   WAERS = P_WAERS.
  IF SY-SUBRC <> 0.
    CLEAR DYFIELDS-FIELDVALUE.
  ENDIF.
*--- update another field
  DYFIELDS-FIELDNAME = 'P_LTEXT'.
  APPEND DYFIELDS.
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
       EXPORTING
            DYNAME               = SY-CPROG
            DYNUMB               = SY-DYNNR
       tables
            dynpfields           = DYFIELDS .
**--- Example of reading value of another field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.
*--- read another field
  CLEAR: DYFIELDS[], DYFIELDS.
  DYFIELDS-FIELDNAME = 'P_WAERS'.
  APPEND DYFIELDS.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME                   = SY-CPROG
            DYNUMB                   = SY-DYNNR
       TABLES
            DYNPFIELDS               = DYFIELDS .
  READ TABLE DYFIELDS INDEX 1.
*--- get short text and update current field
  SELECT SINGLE KTEXT FROM TCURT
    INTO P_KTEXT
    WHERE SPRAS EQ SY-LANGU
    AND   WAERS EQ DYFIELDS-FIELDVALUE.

Similar Messages

  • Auto selection of a value on selection screen field of a report program

    Dear Gurus,
    I have encountered a case in a report program, if i select a vendor code in selection screen, simultaneously the region code of that vendor should come automatically to the next parameter(ie region code). Is it possible..if then how?
    Thanks in Advance
    Saif

    Hi Saifur,
      write the code in the at selection-screen output.
    Try this logic.
    TABLES :
      SCARR ,
      SPFLI ,
      SFLIGHT ,
      SBOOK .
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
    PARAMETERS :
      P_FLIGHT RADIOBUTTON GROUP R1 ,
      P_BOOK RADIOBUTTON GROUP R1 .
    SELECTION-SCREEN END OF BLOCK B1 .
    SELECT-OPTIONS S_FLDATE FOR SFLIGHT-FLDATE DEFAULT '20090101' TO
    '20090131'.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME .
    PARAMETERS :
      P_TEMP1 RADIOBUTTON GROUP R2 MODIF ID SC1 ,
      P_TEMP2 RADIOBUTTON GROUP R2 MODIF ID SC1 .
    SELECT-OPTIONS S_CARRID FOR SCARR-CARRID MODIF ID SC1 .
    SELECTION-SCREEN END OF BLOCK B2 .
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
    PARAMETERS :
      P_TEMP01 RADIOBUTTON GROUP R3 MODIF ID SC2 ,
      P_TEMP02 RADIOBUTTON GROUP R3 MODIF ID SC2 .
    SELECT-OPTIONS S_BOOKID FOR SBOOK-BOOKID MODIF ID SC2 .
    SELECTION-SCREEN END OF BLOCK B3 .
    AT SELECTION-SCREEN OUTPUT .
    IF P_FLIGHT = 'X' .
    FL_FLAG = 1 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC2' .
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ELSEIF P_BOOK = 'X' .
    FL_FLAG = 2 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC1'.
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF .
    On pressing Enter use sy-ucomm value onli to do that and then write the above logic for another select-option.
    Much Regards,
    Amuktha.
    Edited by: Amuktha Naraparaju on Mar 12, 2009 1:24 PM

  • Selection screen fields order in report painter report..

    hi experts,
    i have a  problem with selection screen fields order in report painter report.
    Actually in report painter report selection screen order is different compare to report writer report selection screen.
    how should i get the same selection screen fields order For  Report painter  report compare to Report Writer report ?
    For example, Report Writer selection screen order is:
      ledger:
      company code:
      period:
      current fiscal year:
      previous fiscal yer:
      previous quarter end period:
    where as Report Painter selection screen order is:
      ledger:
      previous fis year:
      current fis year:
      company code:
      period:
      previous quarter end period:
    please help me regarding with this.
    Thanks and Regards,
      NAGARJUNA.

    hi nagarjun,
    Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
    Ex:
    Selection fields No
    Exclude Cancelled Lots 5
    Material number 1
    Plant 2
    Material type 3
    Inspection Lot Origin 4
    Regards,
    Lokesh

  • Changing the Label of the LDB - PNP Screen Field(Date field)

    Hi,
    I got a req. to change the label of the field "Data Selection Period".  This field is from PNP LDB.
    Pls let me know, is there any FM or any other process?

    you can customize the PNP selection screen by creating a report class. you will find the button in the report attributes.
    or you can define your own selection view via SE80 an maintaining table T599C.
    but I dont't think you will be able to rename the field lable.

  • Is it possible to add new screen fields to the transaction /dsd/sl_cockpit

    HI experts,
          Would like to know if it is possible to add new screen fields to the cloned version of /dsd/sl_cockpit.
          I cloned the original transaction /dsd/sl_cockpit into a diff. name, now I want to know how I can include/ add those new fields to this transaction.  It looks like the screen is dynamically built using Standard ABAP classes. Need help.
    Thanks in advance

    it is not possible to add new fields via badi on /dsd/sl_cockpit.

  • Holding the value in screen-field

    Dear All,
    I m facing the problem ,while i m putting the value in screen-field and then pressing enter,
    value in that screen-field is becoming null automatically.
    wht shld i do for holding the value even after PAI.
    Thanks in advance.

    Hi,
    You should define a corresponding variable for that screen field in your program.
    data: my_input_field type ... "same name and type as the one used in screen for field
    so when you enter data to that field and press ENTER, the data will be transported to that variable and in PAI you have its value there.
    Regards
    Marcin

  • How to change the attributes of screen fields dynamically

    <b></b>
    well i have created a table by name empmaster_data with following fields.
    *emp_id.
    *emp_fname.
    *emp_lname
    *dob.
    *doj.
    *dept.
    *desig.
    now using a single screen i want to create,change and display the information.even i am using save and exit button.
    now i want to change the attributes of screen fields dynamically like active,input,output,invisible.

    Hi,
    Have Different Radio Buttons for the purposes what you have and use AT Selection Screen Output, Under the event Use loop at screen and with continue with your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • Custom screen field in the SRM portal screen for Business Partner Bidder

    I need to add a custom screen field in the SRM portal screen for Business Partner. I have added this custom field in the include structure: CI_EEW_BUT000 and activated it.
    I was expecting to see the enhanced field available in the SRM portal screen when I create the bidder. But is not available.
    The new field are available if I edit an Business partner only.

    Hi,
    Please look into the following OSS Notes:
    Note 675800 - Business partner enhancement SRM on maintenance screen
    Note 672960 - User-defined fields 2
    Thanks,
    Pradeep

  • Need to enhace tcode FD32 to add new screen fields on the initial screen

    Hi All,
    I am supposed to add two new screen fields on the initial screen of TCODE FD32,
    I am unable to find any screen exit for that. Is there any screen exit present for that or is there any way to do this.
    Kindly help me, solutions will be greatly rewarded.
    Thanks in advance,
    Nagaraju.

    check below
    Transaction Code - FD32                     Change Customer Credit Management                                                                               
    Exit Name           Description                                                                               
    RFDRRANZ            User exits: Accounts Receivable Information System                                                                               
    No of Exits:          1                                                                               
    Rewards if useful...............
    Minal

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to coordinate the height of a field in 9i reporter

    hi all,
    I can coordinate the width of a field through the wizard ,how can i set the height of the field ? now i do this just through dragging by hand.
    please help .
    thanks in advance .

    hi,Denis Segard,
    thanks for your help,but i have another question now.
    when the height of the field is expanded, how can i let the content of the field is centered the vertical direction ? you know in the horizontal aspect, the centered property works well, but in the vertical direction how to center the content of the field?
    hope for your reply.
    shawn ding
    you can do the following :
    1) select the field
    2) Menu: Layout / Size objects ...
    3) set the Width and Height of the field.

  • I have set the presence to screen only but the checkbox still prints adobe livecycle

    I have set the presence to screen only but the checkbox still prints. I am using adobe LiveCycle design 9 and it is a dynamic form
    This check box is part of an action, where when clicked, it copy's the data from one row and puts it in another. It is also in a row that can be added and removed.
    But basically I want the check box to appear on the screen but not print (including when the form is converted to a PDF when its completed)

    Intel-based Macs: Resetting the System Management Controller (SMC)
    Power
    The computer sleeps or shuts down unexpectedly.

  • Adding the G/L description field in the report FAGLL03

    Dear all
    I would like to add the G/L description field in the report FAGLL03. Can you tell me how this can be done.
    Many thanks
    PG

    Hi Peter,
    You can do the changes as per Moeze suggestion.
    What we have did is that we have writeen a exit in substitution rule for the offsetting G/L code (assumptioning that you want the description for offsetting g/l code).
    We have added the offsetting g/l code in special feild and accordingly the system displays the corresponding description of the offsetting g/l code.
    Try it,it will work.
    If not do revert for the needful.
    Take Crae
    Regards,

  • Who can add users to the Term Store Administrators field in the termstoremanager.aspx

    In the Term Store management tool (_layouts/15/termstoremanager.aspx) what permissions does a user need to have to be able to add/change/remove accounts and groups listed in the Term Store Administrators field.
    I am guessing that they need to be Administrators of the Managed Metadata Service Application?
    I ask because I have a user who is Admin of the MM Service App and is listed in the Term Store Admin field but cannot add or remove users in the Term Store Admins field in the Term Store management tool
    Thanks
    J

    Hi,
    To be able to add users to the Term Store Administrators in SharePoint sites, the user needs to be
    both a member of the Administrators group on the computer running the SharePoint Central Administration Web site, and a member of the Farm Administrators group.
    More references:
    https://technet.microsoft.com/en-us/library/ee424400(v=office.14).aspx
    https://support.office.com/en-za/article/Manage-permissions-and-roles-for-term-sets-48d24117-de33-400e-ad67-3136a6c62022
    Thanks,
    Victoria Xia
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Change the name of a field in the forms

    Hello, experts:
    As I can change the name of a field in the forms?
    When you change the name of a field on the form, the field name in the database also changes?
    Joan

    Hello Joan:
    If you mean the label of the form you can do with CTR + Double Click.
    Remember not to change the integrity of the database. Is only allowed to user fields
    make changes at the level of views, stored procedures, among others, which do not compromise the integrity of
    data.
    Remember, even if they change the label, has changed the field name in the database, only the presentation
    the form.
    Edwin Mauricio Nieto Leó

Maybe you are looking for