Field catalog parameters for getting Domain values

Hi all,
Please tell me the field catalog parameter to be set to fetch the domain text values.
Thank you.

Hello,
If u give the table name it will ge the field names with description
  CALL FUNCTION 'DDIF_FIELDINFO_GET'
    EXPORTING
      tabname        = y_v_tabname
      langu          = sy-langu
    TABLES
      dfies_tab      = y_i_dfiestab
    EXCEPTIONS
      not_found      = 1
      internal_error = 2
      OTHERS         = 3.

Similar Messages

  • "File Browse" type item: at what point the fields mime_type, file_name, last_update_date get their values?

    Hi there,
    I have an issue with "File Browse" type item, my question is: at what point the fields mime_type, file_name, last_update_date get their values? I want to add them to the collection but if I try to do it in Process "On Submit - After Computations and Validations" the values in those fields are still null (that's for the insert, and for the update they have old values). Also I don't seem to be able to add blob to the collection ("File Browse" type item (which has the source as blob database column) can't be assigned as parameter p_blob001 of APEX_COLLECTION.ADD_MEMBER, error is: PLS-00306: wrong number or types of arguments in call to 'ADD_MEMBER').
    What I am trying to do is this: I have parent table (TABLE1), and child table (TABLE2).  In TABLE2 I store documents. I have a main page that is form on TABLE1, and on it I have button "Add documents" that opens popup window with form on TABLE2. On submit of popup page I want to avoid inserting document into TABLE2, instead I want to send data to the main page (using collection) and insert in only once the main page is submitted.
    I would appreciate any advice on this...
    Thanks,
    Tanya

    Hello Tanya,
    Can you post your PL/SQL code which you are trying?
    Regards,
    Hari

  • Get domain value range dynamically

    Hi all,
    I need to create a dynamic method that retrieves the value range (key-value) of a domain.
    It is pretty simple to get fixed values using FM DD_DOMVALUES_GET, but how do I manage a value table?
    For example:
    Field XFELD has fixed values so use DD_DOMVALUES_GET
    Fields BUKRS and SPRAS have value tables.
    I can get the value table name using FM DDIF_FIELDINFO_GET and retrieve the data from that table. Unfortunately, I can be sure to get the right key field, but I can't be sure to get the right value field, it depends on the value table definition.
    BUKRS has T001 that stores the text in field BUTXT of the same instead SPRAS has T002 that stores the text in text table T002T in field SPTXT.
    Is there any standard function module that does the trick?
    In this thread Gregor Wolf managed it manually using a case statement, but I would avoid it, too many case statements...
    Thanks
    Ivan

    What I am doing is not quite the same but similar - I am dynamically getting the text description when I have a data element and the value of the variable that references that data element.
    I was pointed to CL_TEXT_IDENTIFIER which when you pass in the domain and the value magicaly brings back the text description, despite the fact that, as far as I can see, SAP has set up almost every text table slightly differently - sometimes in the main table like T001W or lFA1, sometimes which just the language and the value as a key, sometimes with extra key fields (e.g. MAKT) and sometimes with added organisational key fields e.g. the same GL account have different text descriptions in different chart of accounts.
    I think at some stage CASE statements or subclasses are going to have to come into the equation, due to the utter lack of consistency in SAP table defintions.
    Cheersy Cheers
    Paul

  • Any FM avaliable for reading domain value range

    Hi experts,
    Is there any FM avaliable to read values from value range of a domain.
    I need to fetch short  descriptions for corresponding fixed values in value range.
    Please help.
    Thanks in advance,
    Neelima

    Hi,
    Is there any FM avaliable to read values from value range of a domain?
    Yes. Of course, you can try using the following.
    Let me assume that there is a domain called ZGENDER and it has the following fixed values:
    Value  Description
    M        Male
    F         Female
    U         Unknown.
    Then do the following code:
    DATA: l_t_gender TYPE TABLE OF dd07v.
    To get the possible list of Genders
      CALL FUNCTION 'GET_DOMAIN_VALUES'
        EXPORTING
          domname         = 'ZGENDER'
        TABLES
          values_tab      = l_t_gender
        EXCEPTIONS
          no_values_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    I need to fetch short descriptions for corresponding fixed values in value range.
    Yes. After calling the function module, l_t_gender-ddtext will have the short descriptions.
    Please revert back for any clarifications.
    Best Regards,
    Suresh

  • Which table field is used for getting Release quantity

    Hi friends,
    please tell me which table and field used to get "Release Quantity" also i want "Cumulative GR by release" table and field please do reply if u know.
    Thanks
    Yogesh

    Hi,
    RSEVENTCHAIN       Event
    Chain Processing Event Table
    RSEVENTHEAD        Header
    for the event chain
    RSEVENTHEADT        Header
    for the event chain
    RSPCCHAIN     Process
    chain details
    RSPCCHAINATTR      
    Attributes for a Process Chain
    RSPCCHAINEVENTS      Multiple
    Events with Process Chains
    RSPCCHAINT      Texts
    for Chain
    RSPCCOMMANDLOG     System
    Command Execution Logs (Process Chains)
    RSPCLOGCHAIN      
    Cross-Table Log ID / Chain ID
    RSPCLOGS
    Application Logs for the Process Chains
    RSPCPROCESSLOG     Logs for
    the Chain Runs
    RSPCRUNVARIABLES      
    Variables for Process Chains for Runtime
    RSPC_MONITOR     Monitor
    individual process chains
    Regards
    Ashwin

  • Get Domain Values

    Hi,
    I am working on a report in BW. I have the following queries:
    Can any of you tell me what Function Module should be used in BW to populate the values
    of domain into the internal table and to get F4 Help.
    Also what function Module should be used in BW to convert the file to .CSV format.

    Please search.  These are FREQUENTLY asked questions.

  • Create Window with Textbox and Button For getting Input Value

    Hi All,
    I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
    please may i get solution...

    Or if that's all you need to do, just use JavaScript or a form.

  • Getting the value of a dynpro field in an exit for a standard search help.

    Hallo Experts!
    I need to modify the selected data displayed in standard sap search help: H_T357
    What I've done is create an exit for the search help.
    Then, when CALLCONTROL-STEP = 'DISP' I use the function module F4UT_PARAMETER_VALUE_GET and I get the value of the parameter 'WERKS' correctly. I think that this function module can only obtain values from the parameters of the search help. Well, here is the problem, I would like to get the values of dynpro fields
    'ILOA-STORT' and 'VIQMEL-QMART' (warning type) in transaction IW21.
    I prefer not to add these fields as parameters to the standard search help: H_T357.
    Any ideas for getting the value of these fields? I've seen functions modules: F4UT_GET_ENVIRONMENT and F4UT_SH_SIC_GET_FIELDS. But I don't know if I can use them  for my porpuses.
    Thanks a lot in advance.

    Hello again,
    I have already solved the problem using function module 'DYNP_VALUES_READ'.
    Thanks, David.

  • Exist Optional parameter for field catalog ?

    Hi,
            Can I pass the optional parameter for field catalog. I mean I use only one field catalog setting for many grids. I don't want to fill SPACE for blank field for the last parameter.
            Please tell me ABAP has a function like I said which exist in Ms.Visual Studio.
            Thank you very much.
    Regards,
    TRA

    Hello Ravi,
                    Thanks for your quick reply.
                    I don't mean no output in output screen.
                   We need to write all parameter value when calling field catalog setting form. But I don't want to write last 2 parameter.
                    for example:
                    Add_FieldCat form has 5 things.(REF_TABLE, FIELDNAME,COL_POS,KEY,EDIT)
                   I called this form for 2 alv grid.
                  for 1st Grid,
                                  All 5 parameters is passed to the Add_FieldCat Form.
                   for 2nd Grid,
                                 Only first 3 parameters is passed to the Add_FieldCat Form.
    In Visual Basic,
                  We use "optional" keyword for this kind of parameter passing. Thus, in ABAP, can I use lke that for parameter passing.
    Regards,
    TRA

  • Domain Value Lookup for EMPLOYMENT CATEGORY CODE in the W_EMPLOYMENT_D

    Hello friends,
    When I query the EBS with following code to put the data in the configuration file
    SELECT DISTINCT SYSTEM_PERSON_TYPE, USER_PERSON_TYPE
    FROM PER_PERSON_TYPES
    WHERE SYSTEM_PERSON_TYPE IN ('EMP','CWK','OTHER','EMP_APL','EX_EMP','EX_EMP_
    APL','RETIREE','PRTN')
    ORDER BY 1,2
    I get output as follows
    CWK     Contingent Worker
    EMP     Employee
    EMP_APL     Employee and Applicant
    EX_EMP     Ex-employee
    OTHER     Candidate
    OTHER     Contact
    OTHER     External
    PRTN     Participant
    RETIREE     Retiree
    So, I want to put the data in the configuration file, what about other columns.
    USER_PERSON_TYPE     SYS_PERSON_TYPE     W_EMPLOYEE_CATEGORY_CODE     W_EMPLOYEE_CATEGORY_DESC     W_EMPLOYEE_SUB_CAT_CODE     W_EMPLOYEE_SUB_CAT_DESC
    How should I fill the columns marked with bold.
    Please help

    I have the same problem. I currently have an open service request on this so will post any response I get from the oracle product manager. In the meantime here is a bit more detail on the issue...
    This is step
    Oracle® Business Intelligence Applications
    Configuration Guide for Informatica PowerCenter Users
    Version 7.9.6.1 E14844-01
    7 Configuring Oracle Human Resources Analytics
    7.2.2 Configuration Steps for Oracle HR Analytics for Oracle EBS
    7.2.2.3 How to Configure the domainValues_Employment_Cat_ora.csv
    http://download.oracle.com/docs/cd/E14847_01/bia.796/e14844.pdf
    The task is to map the 2 source dependent values (left hand side) to the 4 source independent domain (W_) values (right hand side). Unlike other similar steps in this case the set of possible domain values is ambiguous.
    On my system the source dependent values - the left hand side of the csv spreasdsheet are
    Agency Contractor,EMP
    Employee,EMP
    Ltd Company Contractor,EMP
    PAYE Contractor,EMP
    Employee and Applicant,EMP_APL
    Ex-Agency Contractor,EX_EMP
    Ex-employee,EX_EMP
    Ex-Ltd Company Contractor,EX_EMP
    Ex-PAYE Contractor,EX_EMP
    Ex-employee and Applicant,EX_EMP_APL
    Contingent Worker,CWK
    External,OTHER
    Candidate,OTHER
    Contact,OTHER
    Participant,PRTN
    Retiree,RETIREE
    the configuration document says
    "When editing CSV files, make sure that you: Do not add new values, other than the values present in the CSV file, to the columns with the name format W_ columns. In other words, if you add new rows to the spreadsheet, then the columns with the name format W_ values must map to those in the default spreadsheet. If you add new columns with the name format W_ values, then you must customize the affected mappings."
    The reason you should not change the domain values is because these values tend to be "hard coded" in the ETL/RRD/requests to provide the various metrics. "Incorrect mappings may result in inaccurate calculations of Oracle Business Intelligence metrics. Some sessions may fail if these procedures are not compiled in the database before running the workflows."
    the default out of the box lookup file
    domainValues_Employment_Cat_ora11i.csv
    has 7 mappings
    USER_PERSON_TYPE,SYS_PERSON_TYPE,W_EMPLOYEE_CATEGORY_CODE,W_EMPLOYEE_CATEGORY_DESC,W_EMPLOYEE_SUB_CAT_CODE,W_EMPLOYEE_SUB_CAT_DESC
    Employee,EMP,EMPLOYEE,Employee,EMP_REGULAR,Regular Employee
    Expatriate,EMP,EMPLOYEE,Employee,EMP_EXPATRIATE,Expatriate
    Temporary,CWK,CONTINGENT,Contingent Worker,CONTINGENT_TEMP,Agency/Temp
    Contingent Worker,CWK,CONTINGENT,Contingent Worker,CONTINGENT_CONTINGENT,Contractor
    Contractor,EMP,CONTINGENT,Contingent Worker,CONTINGENT_CONTRACTOR,Contractor
    Student,CWK,CONTINGENT,Contingent Worker,CONTINGENT_INTERN,Intern
    Trainee,CWK,CONTINGENT,Contingent Worker,CONTINGENT_TRAINEE,Trainee
    that gives 2 employment categories
    EMPLOYEE or CONTINGENT
    with 6 possible combinations with sub category
    EMPLOYEE,Employee,EMP_REGULAR,Regular Employee
    EMPLOYEE,Employee,EMP_EXPATRIATE,Expatriate
    CONTINGENT,Contingent Worker,CONTINGENT_TEMP,Agency/Temp
    CONTINGENT,Contingent Worker,CONTINGENT_CONTINGENT,Contractor
    CONTINGENT,Contingent Worker,CONTINGENT_INTERN,Intern
    CONTINGENT.Contingent Worker,CONTINGENT_TRAINEE,Trainee
    Normally the source independent W_* domain values, that is, the right hand side of the csv spreadsheet that you map your source values to, are listed in the Data Model Reference.
    My Oracle Support Document ID 819373.1 BIAPPSDMR796_RevA.pdf
    Oracle Business Analytics Warehouse Data Model Reference Version 7.9.6
    In this case - the domain values listed in the data model reference are ...
    Table 3–6 lists the values for the Employee Category domain value for W_EMPLOYMENT_D.
    //"W_EMPLOYEE_CAT_CODE","W_EMPLOYEE_CAT_DESC", "Source"
    "CONTRACTOR", "CONTRACTOR", "Oracle EBS, PeopleSoft"
    "DIRECT", "DIRECT", "Oracle EBS, PeopleSoft"
    "INDIRECT", "INDIRECT", "Oracle EBS, PeopleSoft"
    "OTHER", "OTHER", "Oracle EBS, PeopleSoft"
    "REGULAR", "REGULAR", "Oracle EBS, PeopleSoft"
    "TEMPORARY", "TEMPORARY", "Oracle EBS, PeopleSoft"
    This is confusing because
    i) the category values are differnet to those in default file (EMPLOYEE or CONTINGENT)
    ii) the DMR document has no listing of the possible sub categories
    So the question is - what do you map your source values to? The instructions are not clear! The only way I can think to find out for sure is to do an impact analysis of the ETL's / RPD / requests to find instances of hard coded values for the domain values.

  • Field Catalog Add/Change for Inbound Delivery.

    Hello
          I did try to add a field "ZZZ" into field catalog of Inbound delivery. I did add the same in KOMKBE1 & KOMB for output determination during Inbound Delivery.
    Still, i couldn't get the field for creating condition table in Output Determination of Inbound Del.
    Any suggestions?
    Thanks

    Add your new field to field catalogue. Path: SPRO - > LE -> Shipping->Basic shipping functions -> output control ->Output determination -> Maintain Output determination for outbound delivery -> Maintain cond table ->Field catalog: Output for deliveries
    Then you can see your field to add in cond table

  • Field catalog run time error

    When I use Field catalog merge I get an error
    i Get a runtime error where it says the internal table passes to field catalog marge has a different fields than I_INTERNAL_TABNAME  . What could be the problem.
    Thank you

    Are you passing the internal table name and field name as the same or different and also check the data type of the fieldcatalog internal table that you are passing to this FM
    Check this code for ur reference.
    REPORT ZMK_SHIPMENT_ALV
             no standard page heading
             line-size 105
             line-count 50(5)
             message-id zz.
           TABLES                  *
    tables : vttk, "Shipment Header
             vttp, " Shipment Item
             lips. " Delivary Item
    ***TYPE-POOLS                    *
    type-pools : slis.
    *WORK AREAS                      *
    Work area for field catalog table
    data : wa_fldcat type slis_fieldcat_alv.
    Work area for Events table
    data : wa_events type slis_alv_event.
    Work area for layout.
    data : wa_layout type slis_layout_alv.
    *INTERNAL TABLES                  *
    Shimpment Details
    data : begin of itab occurs 0,
           tknum like vttk-tknum,
           shtyp like vttk-shtyp,
           tpnum like vttp-tpnum,
           vbeln like vttp-vbeln,
           end of itab.
    data : begin of itab1 occurs 0,
           vbeln like lips-vbeln,
           posnr like lips-posnr,
           matnr like lips-matnr,
           lfimg like lips-lfimg,
           meins like lips-meins,
           end of itab1.
    For field catalog table
    data : it_fldcats type slis_t_fieldcat_alv.
    For Events table
    data : it_event type slis_t_event.
    For layout.
    data : it_layout type slis_layout_alv.
    For field catalog table
    data : it_fldcats1 type slis_t_fieldcat_alv.
    For Events table
    data : it_event1 type slis_t_event.
    data : v_repid like sy-repid.
    *Data Declaration
    data: v_index type sy-index,
          v_vbeln like lips-vbeln.
    *SELECT-OPTIONS
    selection-screen begin of block b with frame title text-001.
              select-options : s_tknum for vttk-tknum .
    selection-screen end of block b.
    *INITIALIZATION
    initialization.
    v_repid = sy-repid.
    *START-OF-SELCTION
    start-of-selection.
      perform populate-data.
      sort itab by tknum.
    top-of-page.
    write : 'Shipment wise Delivary Report'.
    end-of-selection.
      perform build-fieldcatalog.
      perform modify-fieldcatalog.
      perform build-events.
      perform modify-events.
      perform set-layout.
    perform set-pfstatus.
      perform list-display.
    *&      Form  populate-data
        Retrives the Shipment data depending on the selection criteria   *
    FORM populate-data.
    select vttk~tknum
           vttk~shtyp
           vttp~tpnum
           vttp~vbeln
           into table itab
           from vttk
           join vttp
           on vttptknum = vttktknum
           where vttk~tknum  in s_tknum.
       if sy-subrc <> 0.
        message e999 with 'NO DATA FOUND'.
        exit.
      endif.
    ENDFORM.                    " populate-data
    *&      Form  build-fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    form build-fieldcatalog.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
        i_program_name               = v_repid
        i_internal_tabname           = 'ITAB'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
        i_inclname                   = v_repid
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      changing
        ct_fieldcat                  = it_fldcats
      exceptions
        inconsistent_interface       = 1
        program_error                = 2
        others                       = 3
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " BUILD-FIELDCATALOG
    *&      Form  build-events
          text
    -->  p1        text
    <--  p2        text
    FORM build-events.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = it_event
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " build-events
    *&      Form  set-layout
          text
    -->  p1        text
    <--  p2        text
    FORM set-layout.
      wa_layout-zebra          = 'X'.
      wa_layout-colwidth_optimize = 'X'.
      wa_layout-no_colhead = space.
      wa_layout-no_vline = space.
    ENDFORM.                    " set-layout
    *&      Form  list-display
          text
    -->  p1        text
    <--  p2        text
    FORM list-display.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = v_repid
      I_CALLBACK_PF_STATUS_SET       = ' '
       I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
      I_STRUCTURE_NAME               =
       IS_LAYOUT                      = wa_layout
       IT_FIELDCAT                    = it_fldcats
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       IT_EVENTS                      = it_event
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = itab
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " list-display
    *&      Form  modify-fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM modify-fieldcatalog.
    loop at it_fldcats into wa_fldcat.
        case wa_fldcat-fieldname.
          when 'TKNUM'.
            wa_fldcat-seltext_l = 'Ship No.'.
            wa_fldcat-col_pos = 1.
            wa_fldcat-ddictxt = 'L'.
            when 'SHTYP'.
            wa_fldcat-seltext_l = 'Ship Type'.
            wa_fldcat-col_pos = 2.
            wa_fldcat-ddictxt = 'L'.
         when 'TPNUM'.
            wa_fldcat-seltext_l = 'Item No.'.
            wa_fldcat-col_pos = 3.
            wa_fldcat-ddictxt = 'L'.
         when 'VBELN'.
            wa_fldcat-seltext_l = 'Delivary No.'.
            wa_fldcat-hotspot = 'X'.
            wa_fldcat-col_pos = 4.
            wa_fldcat-ddictxt = 'L'.
        endcase.
       modify it_fldcats from wa_fldcat.
       endloop.
    ENDFORM.                    " modify-fieldcatalog
    *&      Form  modify-events
          text
    -->  p1        text
    <--  p2        text
    form modify-events.
        read table it_event with key name =
    slis_ev_top_of_page into wa_events.
       if sy-subrc = 0.
        wa_events-form = 'HEADER-OF-REPORT'.
        modify it_event from wa_events index sy-tabix.
        clear wa_events.
       endif.
       read table it_event with key name =
    slis_ev_end_of_page into wa_events.
       if sy-subrc = 0.
        wa_events-form = 'FOOTER-OF-REPORT'.
        modify it_event from wa_events index sy-tabix.
        clear wa_events.
      endif.
    endform.                    " modify-events
    *&      Form  HEADER-OF-REPORT
          text
    -->  p1        text
    <--  p2        text
    FORM HEADER-OF-REPORT.
    write : 'Shipment Wise Delivary Report'.
    ENDFORM.                    " HEADER-OF-REPORT
    *&      Form  FOOTER-OF-REPORT
          text
    -->  p1        text
    <--  p2        text
    FORM FOOTER-OF-REPORT.
    write : 'End of Report'.
    ENDFORM.                    " FOOTER-OF-REPORT
    *&      Form  USER_COMMAND
          User command for Calling Transaction VT03N, Execute and Refresh
    FORM user_command USING    p_ucomm    LIKE sy-ucomm
                             p_selfield TYPE slis_selfield.
      V_INDEX = P_SELFIELD-TABINDEX.      " holds the selected table index
      CASE p_ucomm.
        WHEN '&IC1'.
         IF p_selfield-fieldname eq 'VBELN'.
          perform secondary_list.
         ENDIF.
      ENDCASE.
    ENDFORM.                    " USER_COMMAND
    *&      Form  secondary_list
          text
    -->  p1        text
    <--  p2        text
    FORM secondary_list.
    perform get_data1.
    perform build-fieldcatalog1.
      perform modify-fieldcatalog1.
      perform build-events1.
      perform modify-events1.
    perform set-layout.
    perform set-pfstatus.
      perform list-display1.
    ENDFORM.                    " secondary_list
    *&      Form  build-fieldcatalog1
          text
    -->  p1        text
    <--  p2        text
    FORM build-fieldcatalog1.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    exporting
        i_program_name               = v_repid
        i_internal_tabname           = 'ITAB1'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
        i_inclname                   = v_repid
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      changing
        ct_fieldcat                  = it_fldcats1
      exceptions
        inconsistent_interface       = 1
        program_error                = 2
        others                       = 3
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    ENDFORM.                    " build-fieldcatalog1
    *&      Form  modify-fieldcatalog1
          text
    -->  p1        text
    <--  p2        text
    FORM modify-fieldcatalog1.
    loop at it_fldcats into wa_fldcat.
        case wa_fldcat-fieldname.
          when 'VBELN'.
            wa_fldcat-seltext_l = 'Delivary No.'.
            wa_fldcat-col_pos = 1.
            wa_fldcat-ddictxt = 'L'.
            when 'POSNR'.
            wa_fldcat-seltext_l = 'Item No'.
            wa_fldcat-col_pos = 2.
            wa_fldcat-ddictxt = 'L'.
         when 'MATNR'.
            wa_fldcat-seltext_l = 'Material'.
            wa_fldcat-col_pos = 3.
            wa_fldcat-ddictxt = 'L'.
         when 'LFIMG'.
            wa_fldcat-seltext_l = 'Quantity'.
            wa_fldcat-col_pos = 4.
            wa_fldcat-ddictxt = 'L'.
         when 'MEINS'.
            wa_fldcat-seltext_l = 'Unit of Measure'.
            wa_fldcat-col_pos = 5.
            wa_fldcat-ddictxt = 'L'.
        endcase.
       modify it_fldcats from wa_fldcat.
       endloop.
    ENDFORM.                    " modify-fieldcatalog1
    *&      Form  build-events1
          text
    -->  p1        text
    <--  p2        text
    FORM build-events1.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = it_event1
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " build-events1
    *&      Form  modify-events1
          text
    -->  p1        text
    <--  p2        text
    FORM modify-events1.
    read table it_event1 with key name =
    slis_ev_top_of_page into wa_events.
       if sy-subrc = 0.
        wa_events-form = 'HEADER_OF_REPORT_2'.
        modify it_event1 from wa_events index sy-tabix.
        clear wa_events.
       endif.
    ENDFORM.                    " modify-events1
    *&      Form  list-display1
          text
    -->  p1        text
    <--  p2        text
    FORM list-display1.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = v_repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
      I_STRUCTURE_NAME               =
       IS_LAYOUT                      = wa_layout
       IT_FIELDCAT                    = it_fldcats1
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       IT_EVENTS                      = it_event1
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = itab1
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " list-display1
    *&      Form  get_data1
          text
    -->  p1        text
    <--  p2        text
    FORM get_data1.
    READ TABLE itab INDEX V_INDEX.
    v_vbeln = itab-vbeln.
    select vbeln
            posnr
            matnr
            lfimg
            meins
            from lips
            into table itab1
            where vbeln eq v_vbeln.
    ENDFORM.                    " get_data1
    *&      Form  header_of_report_2
          text
    -->  p1        text
    <--  p2        text
    FORM header_of_report_2.
    write: 'Delivary item list'.
    ENDFORM.                    " header_of_report_2
    *-- callling a transaction code by passing the initial screen value.
    *&      Form  USER_COMMAND
    form user_command using    p_ucomm    like sy-ucomm
                             p_selfield type slis_selfield.
      data : l_index like sy-index,
             l_refbn like cooi-refbn.
      l_index = p_selfield-tabindex.       " holds the selected table index
      clear l_refbn.
      case p_ucomm.
        when '&IC1'.
          clear l_refbn.
          read table it_outtab index l_index.
          if sy-subrc eq 0.
            l_refbn = it_outtab-refbn.
            if not l_refbn is initial.
              set parameter id 'BES' field l_refbn.
              call transaction 'ME23' and skip first screen.
            endif.
          else.
            message e999 with text-014.
          endif.
      endcase.
    endif.

  • How to get the values from fileds

    Dear All,
    Good Afternoon,
    I want to set the 0 value to the fields at the time of page loading.
    For this,
    i tried the following ways
    pageContext.putParameter("fieldid",0);
    and
    OAMessageTextInputBean bean1=(OAMessageTextInputBean) webBean.findChildRecurssive("fieldid");
    bean1.setValue(pageContext,0)
    for getting the values i used
    String id=pageContext.getParameter("fieldid");
    but i returns null values only while it has 0 value.
    how can get the 0 value from that field

    Hi,
    In order to set values you should use:
    OAMessageTextInputBean bean1=(OAMessageTextInputBean) webBean.findChildRecurssive("fieldid");
    if(bean1!=null)
    bean1.setText("0");
    and in order to grab the values from the fields
    String id=(String)pageContext.getParameter("fieldid");
    Thanks,
    Gaurav

  • How to Get the value in a new created view.

    Hi Experts,
    I have create a view along with the fields: Street No. , Street name, apt no,
    how should i capture these values . in a current situation i entering the value but when i check in the debugging mode : in a collection_wrapper (context node class) i am not able the see the value which i have entered. please help me out. it is  very urgent.
    Rohit

    Hi Ashish,
    Thanks for replying. i have already create the context node and in the using the request from field method ,i am getting the value in my work area but how to store the value in the custom fields of that particular order  as well as store the value in the crmd_customer_i table...
    Regards,
    Rohit

  • Table or Function Module to get Condition Values of Quotation

    Hi MM Gurus
    I created RFQ. Then I maintained Quotation for few Vendors. In the Quotation, I used tax code relevant to taxes in India (TAXINN procedure). I am asked to develop a Z report with the help of ABAPer to compare the quotations with Gross price, discounts, freight along with taxes like Excise Duty, VAT etc. When I had put this Quotation number in EKKO table, I am not getting the condition document number KNUMV. For other purchasing documents, this field is getting generated. Without this field, I can not get Condition values using KONV table as we need to link EKKO-KNUMV with KONV-KNUMV. Do you have any idea how we get the condition values of taxes for Quotation? Is there any function module to get it?
    I really appreciate the quick answer.
    Thanks
    Ravi

    Hi
    Try ME_GET_PRICE_CONDITION
    Regards
    Antony

Maybe you are looking for