Field symbols for fetching ME21N screen data

Hi,
I need to fetch ME21N screen data,i.e,line item data( material number),for which i have written code as below:
IF SY-TCODE = 'ME21N' OR
   SY-TCODE = 'ME22N'.
ematn = '(SAPLMEGUI)MEPO1211-EMATN'.
ENDIF.
FIELD-SYMBOLS : <fs1> TYPE ANY.
ASSIGN (ematn) TO <fs1>.
But data is not coming to <fs1>.
Can any one tell me whether any mistake in above statement.
Or alternatively whether any better method available for fetching screen data?
I need to use this data in a pricing routine.
Thanks & Regards
Seshagiri.

Hi,
The combination of both these can be used-
we can read the screnn fields using this FM-
DYNP_VALUES_READ
***TO READ VALUES
CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME                   = W_PROG
            DYNUMB                   = W_DYNP
            TRANSLATE_TO_UPPER       = 'X'
       TABLES
            DYNPFIELDS               =  T_DYNPRO.
  READ TABLE  T_DYNPRO INDEX 1 INTO FIELD_VALUE.
  W_CARRID = FIELD_VALUE-FIELDVALUE.
Paricularly for Material numbers this aslo shoud be used -
CONVERSION_EXIT_MATN1_INPUT
Thanks & Regards,
Chandralekha.

Similar Messages

  • Field symbols for fetching ME51N screen data

    Hi,
    I need to fetch ME51N or ME52N screen data.
    In old Transaction (ME51,ME52) there is this code that work:
    data:wa_eban like eban.
    data:wa_rm06b like rm06b.
    data:va_epstp like rm06b-epstp.
    data:va_knttp like eban-knttp.
    field-symbols <va_eban> structure eban default  wa_eban.
    field-symbols <va_rm06b> structure rm06b default wa_rm06b.
    assign ('(SAPMM06B)EBAN') to <va_eban>.
    assign ('(SAPMM06B)RM06B')  to <va_rm06b>.
    move <va_rm06b>-epstp to va_epstp.
    move <va_eban>-knttp to va_knttp.
    if not <va_eban>-loekz  is initial.
          exit.
    endif.
    This code is used in a FIELD EXIT for compare Data in some Fields.
    In the New Transaction i can't use this code because EBAN and RM06B is empty and return null.
    Can any one tell me if there are Program/Structure combination that return EBAN and RM06B Data?
    Or alternatively whether any better method available for fetching screen data?
    Thanks & Regards
    Angelo

    For more Info see this thread, similar problem is solved, but in ME52N change some things.
    Re: Field symbols for fetching ME21N screen data
    Thanks & Regards
    Angelo

  • Need Help in Field Symbol for Dynamically passing  table field value

    Hi All,
    In my internal table I am having data.
    I am dynamically forming table field name and substitute for the another table field name to pass DATA.
    but I am getting the Variable name insted of Value ie Data.
    I am using Field Symbol for this.
    data:
    Field-symbols <TS> type any.
    field1 type string.
    LOOP AT TABLEFIELDS INTO WA_TABLEFIELDS.
                READ TABLE  TEST  WITH KEY NAME = WA_TABLEFIELDS-FIELDNAME.
                IF SY-SUBRC = 0.
                  CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO  Field1.
                  Assign Field1 to <TS>.
                    ALL_VAL-VALUE = <TS>
    "After substituting the <TS>  into ALL_VAL-VALUE  field I need a DATA to be passed but the variable name is appending"*    
             APPEND ALL_VAL.
                ENDIF.
              ENDLOOP.
    kindly how to pass the value into the table.
    Thanks in advance.
    San

    Hi,
    pls assign a break point in
    CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.
    Assign Field1 to <TS>.
    ALL_VAL-VALUE = <TS>
       " Put a break point here and check for the value in <TS>.
    if <TS> contains value then create a work area for ALL_VAL AND PASS the Field-Symbol to that and then  append thw wa into the table...
    Hope this works out!!
    thanks

  • Field symbols for tables used under tables tabstrip in bapi

    Hi all,
    I am created a bapi and under tables tabstrip i have given  3 tables,
    Inside the bapi , i have written a perform statement which returns these 3 tables .
    PERFORM bapi_sales TABLES it_valid it_error it_errorc USING testrun.
    how can we create field symbols for these tables ?
    Regards
    Nagarah

    hi,
    goto: system-utilities- debug system
    A.
    Message was edited by: Andreas Mann

  • Using Field symbol to fetch data from another program

    I have a requirement where i need to fetch value  of a field from one of the function pool so i have written a sample progam to check the logic but its doest seems to work its giving dump.
    Basically i want to know how to use <programname><fieldname> with fieldsymbol.
    REPORT ztest1.
    DATA test(25) VALUE 'ggg'.
    submit ztest.
    report ztest.
    constants: lv_memory(25) type c value '(ZTEST1)TEST'.
    field-symbols: <fs2> type char25 .
    assign (lv_memory) to <fs2>.
    write : <fs2>.
    I am getting same field symbol assignment dump

    Hi Rahul,
    You can use this concept in between the FUNCTION MODULES where both are
    under same FUNCTION GROUP ( as both the FM's have same global memory area ).
    And also if you are calling an FM or method from your program  ,you can have the data of the calling program in that called FM or METHOD.
    Hope this may help you.
    Regards,
    Smart Varghese

  • Define Field Selection for Move-In Contract Data

    In Move-In customization, in IMG activity u201CDefine Field Selection for Move-In Contract Datau201D when you go for u201CField Selection u2013 Modifiable Fieldsu201D Screen (Transaction is EQ07), I am seeing four buttons as follows.
    u2022     Modified
    u2022     Influencing
    u2022     Screen Groups
    u2022     Influences
    I would like to know the applications of that buttons.
    Also, if I click the u201CModifiedu201D button, it takes me to another screen in which I am seeing seven buttons as follows.
    u2022     New Values
    u2022     Delete Value
    u2022     Influencing
    u2022     Modifiable
    u2022     Screen Groups
    u2022     Influences
    u2022     View
    It would be really great if someone explain me about this.
    Thanks,
    Meenakshi Sharma

    hi meenakshi
      here are some data 4 u
    modified---if u  click that  u  will come to  know whther  any  field is modifies  or not previosuly
    influence--after u  make a modification the effect  or the change is shown  in  influences
    screen  gpr os nothing  but  all the main  and sub screens involved for a particular  transaction
    influencing field is something  like u   have some connection  witht that  field,for example click  screen  grp and screen  modification in  contract and  then  click infuencing u  can  see the  2 fields whch  are set  as influeincg  fields for contract
    u  can  change the selection  fro  i/p  to  diaply and save it  and see the changes or details showed  by  clicking  each  button..hope u  willl finds a lot urself
    kr
    raj

  • Field symbol for order type

    Hi all.
    i have a condition on which i need to use the field symbol in which depending on the condition,my subscreen should be displayed.
    i have SAPLMEGUI as a main standard program and MEPO_TOPLINE-BSART is a field which is attached to this std program.
    Also,if this BSARt becomes UB(order type in purchase orders) then only it should go to subscreen.i tried doing it like below,but not getting solution.
    please help.
    data: GV_OKCODE_FIELD type char35 VALUE '(SAPLMEGUI)MEPO_TOPLINE-BSART'
    FIELD-SYMBOLS <MEPO_TOPLINE-BSART> TYPE ANY.
    ASSIGN GV_OKCODE_FIELD TO <MEPO_TOPLINE-BSART>.
    IF <MEPO_TOPLINE-BSART> = 'UB'.
    endif.

    Hello,
    You can try something like this:
    FIELD-SYMBOLS: <FS> TYPE BSART.
    ASSIGN COMPONENT BSART OF STRUCTURE MEPO_TOPLINE TO <FS>.
    IF <FS> = 'UB'.
    " Your Code
    ENDIF.
    BR,
    Suhas

  • Passing value from field symbol / variable type ref to data to variable

    hey ,
    DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE
    .* Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_WEIGHT).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
    how can i pass RT_CARRID or <FS_CARRID> to a varible with type vbap-netgrw ( net weight ) ?
    thanks
    ASA

    >
    ASA MOKED wrote:
    > hey ,
    >
    >
    > DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
    >   DATA: RT_CARRID TYPE REF TO DATA.
    >   FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE

    > .* Retrieve the data from the select option
    >   RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_WEIGHT).
    > * Assign it to a field symbol
    >   ASSIGN RT_CARRID->* TO <FS_CARRID>.
    create a work area of type <FS_CARRID>.
    field-symbol: <fs_wa> type line of <FS_CARRID>.
    loop at <FS_CARRID> into <fs_wa>.
    lv_netgr = <fs_wa>-netgr.

  • Add fields in PO header ME21n Org data tab

    I want to add 3 new fields in the ME21n transaction in the Org. Data tab. Program SAPLMEGUI Screen 1221.
    Please help in detail how to proceed with exit/Badi name, changes in database table to add fields and required Code to write.

    Hi
    You Cannot add the custom fields directly in the standard Tab, You can add it only in the custom tab. Generally SAP allows to add the custome fields in the separate tab in the standard screen like 'Customer data tab in case of ME21N transaction'. So if  you want to add the custom fields you can add them under this tab only.
    For Header.
    The tab name is : Customer Data.
    The Exit Function Modules are: 1.EXIT_SAPMM06E_006
                                                      2.EXIT_SAPMM06E_007
                                                      3.EXIT_SAPMM06E_008.
    The CI Includes are : CI_EKKODB.
    For Item
    The tab name  is : Customer Data.
    The Exit Function Modules are: 1.EXIT_SAPMM06E_016
                                                      2.EXIT_SAPMM06E_017
                                                      3.EXIT_SAPMM06E_018.
    The CI Includes are : CI_EKPODB.
    Regards,
    Praveen kumar.

  • Table and field name for the goods receipt date in SAP CRM

    Hi,
    can some one provide me The TABLE-FIELD from SAP CRM system for GOODS RECIPT DATE.
    It is the same as Received material date in DIsplay:Return and replacemnt screen in CRM.
    Thanks,
    Chetan

    Few more tables:
    BUT0BANK         Business Partner: Bank Data                                 
    BUT0BK           BP: Bank details                                            
    BUT0CC           BP: Payment Cards                                           
    BUT0ID           BP: ID Numbers                                              
    BUT0ID_BIP_NOHIT Business Information Provider: Logging of non identified BP 
    BUT0IS           BP: Industries                                              
    BUT0VP           BP: Business Partner Assignment and Links                   
    BUT100           BP: Roles                                                   
    BUT150           BP relationship: Attribute table (test different.type TBUKR) 
    CRMM_BUT_BUHI_1  R/3 Customer Sales Area CRM BP Hierarchy Group Mapping      
    CRMM_BUT_BUHI_2  R/3 Leaf Customer Sales Area CRM BP Hierarchy Group Mapping 
    CRMM_BUT_CONTNO  Mapping Table Business Partner Relationship – Contact Person
    CRMM_BUT_CRMOBJ  Buffer: Which BPs are in Which Systems                      
    CRMM_BUT_CUSTNO  Mapping Table Business Partner – Customer                   
    CRMM_BUT_FRG0040 Business Partner Sales Classification List                  
    CRMM_BUT_FRG0041 Business Partner Sales Classification                       
    CRMM_BUT_FRG0042 Business Partner Sales Classification List Order Blocks     
    CRMM_BUT_FRG0050 Business Partner – Status                                   
    CRMM_BUT_FRG0060 Business Partner – Business Hours                           
    CRMM_BUT_FRG0061 Business Partner – Business Hours Interval                  
    CRMM_BUT_FRG0070 Business Partner Excluded Partner Functions List            
    CRMM_BUT_FRG0071 Business Partner Excluded Partner Functions                 
    CRMM_BUT_FRG0080 Business Partner – Sales Area – Partner Function List       
    CRMM_BUT_FRG0081 Business Partner – Sales Area – Partner Function            
    CRMM_BUT_FRG0100 CRM Business Partner: Status                                
    CRMM_BUT_KOR0040 Business Partner Korea                                      
    CRMM_BUT_KOR0041 Business Partner Korea History                              
    CRMM_BUT_LNK0010 Business Partner – Sales Rule List                          
    CRMM_BUT_LNK0011 Business Partner – Sales Rule                               
    CRMM_BUT_LNK0020 Business Partner – Shipping Rule List                       
    CRMM_BUT_LNK0021 Business Partner – Shipping Rule                            
    CRMM_BUT_LNK0030 Business Partner – Billing Rule List                        
    CRMM_BUT_LNK0031 Business Partner – Billing Rule                             
    CRMM_BUT_LNK0140 Business Partner Organization Rule List                     
    CRMM_BUT_LNK0141 Business Partner Organization Rule                          
    CRMM_BUT_MIGRATE Migration Table: Fields Changed In CDB                      
    CRMM_BUT_SEMPL00 Sales Employee for Contact Person Relationship: Admin. Tech.
    CRMM_BUT_SEMPL01 Sales Employee to Contact Person Rel.: Data Table           
    CRMM_BUT_SET0010 Business Partner – Sales Rule Period                        
    CRMM_BUT_SET0020 Business Partner – Shipping Rule Period                     
    CRMM_BUT_SET0030 Business Partner – Billing Rule Period                      
    CRMM_BUT_SET0140 Business Partner Organization Rule Period                   
    CRMM_BUT_TDAR010 Business Partner – Time-Dependent Appointment Rules         
    CRMM_BUT_TDAR011 Business Partner – Time-Dependent Appointment Rule Intervals
    CRMM_BUT_TDAR012 Business Partner – Time-Dependent Appt Rule Single Intervals 
    BUT_DNC          BP: Telephone Numbers of the “Do Not Call” List           
    BUT_DNC_OLD      BP: Telephone Numbers of the “Do Not Call” List           
    BUT_FRG0010      Business Partner: Tax Classification                      
    BUT_FRG0011      Business Partner: Tax Classification                      
    BUT_HIER_NODE    Business Partner Hierarchy Group                          
    BUT_HIER_NODE_BP Business Partner Hierarchy Group – Bus. Partner Assignment
    BUT_HIER_NODE_D  Business Partner Hierarchy Group – Description            
    BUT_HIER_STRUCT  Business Partner Hierarchy Group – Hierarchy Relationship 
    BUT_HIER_TREE    Business Partner Group Hierarchy                          
    BUT_HIER_TREE_D  Business Partner Group Hierarchy – Description            
    BUT_HIER_TYPE    Business Partner Group Hierarchy Category (GUID)
    CRMD_ACTIVITY_H Activity Header table
    CRMD_ACTIVITY_I Activity Reporting: Activity Line Item Extension
    CRMD_TM_ACTIVITY Activity reference
    CRMD_LEAD_H Lead Header table
    CRMD_OPPORT_H Opportunity Header table
    CRMC_T077D : customer account groups
    BUT_HIER_TREE Business Partner Group Hierarchy
    CDBC_T_PRODUCTID Mapping: Product Id
    CDBD_ORGMAN Business transaction – organizational unit -set
    COMC_PRODUCT General Product Settings
    COMC_R3_FIELDS Assignment of R/3 material master fields to CFOP
    COMM_CATEGORY Category
    COMM_CFGMAT Basic Data for Materials
    COMM_HIERARCHY Category Hierarchy
    COMP_TYPES Hierarchy Tool: Comparison Type Check Table
    CRMC_CPRICPROC Customer Pricing Procedures
    SMOKVBEZ15 Assignment employees to positions
    CRMMLSGUID: GUID entry (should match GUID in CRMPRLS)
    CRMM_BUT_CUSTNO : Also GUID table (GUID here should match GUID in R/3 table CRMKUNNR)
    SMOFSUBTAB : Mapping & Parameters
    SMOFDSTAT : Download Monitor (R4AM1)
    SMOFFILTAB : Filters (Should match filters in R3AC1 & R/3 Table CRMFILTAB)
    SMOFOBJECT Definition of Objects for Download
    SMOFOBJPAR Parent Objects of an Object in Table
    SMOFPARSFA Middleware Parameter
    SMOFQFIND Queue Finder Table for MW-Queue finder
    SMOFTABLES Definition of Tables for Download
    CRMD_ORDERADM_H = Document Header Table
    CRMD_ORDERADM_I = Document Line item Table
    COMM_PR_FRG_ROD: Product Sales Set - Product – Assignment
    CRMV_PR_SALESA: Product - Sales Order Set

  • How to make some fields mandatory for a custom screen we have added

    Hi All,
    Please let me know how can I make some fields mandatory through coding in PBO for only some fields of a screen.
    Say if I have 4 fields in my screen(module pool not selection screen) i want to make mandatory 2 fields based on some conditions how to do this? I tried using screen-group but this will make mandatory all the fields of that screen mandatory.
    I want only specific fields based on condition in run time.
    Regards
    Mahesh

    Hi Mahesh,
             Try this ..
      Assign the same group to those fields , say GRP
           in  PAI
             IF <CONDITION>
                Loop at screen.
                   if screen-group1 = 'GRP'.
                      screen-required = '1'.
                      modify screen.
                   endif.
                 endloop.
              ENDIF.

  • To select the field dynamically while fetching th e data

    Hi Experts,
    We have fields like TKG001, TKG002, TKG003 etc in COST table...
    My requirement is that we want the value present in the field TKG0** where ** is the month of system data.
    Do we have any method to extract the field dynamically from the table.
    Please suggest me how can i achieve the requirement.
    Thank you,
    Regards,
    Kavya

    Hello
    You can use dynamic field specification
    Check this :
    REPORT x.
    DATA :
          BEGIN OF lw_field,
            field(20),
          END OF lw_field,
          lt_field LIKE STANDARD TABLE OF lw_field.
    START-OF-SELECTION.
      lw_field-field = 'BUKRS'.
      APPEND lw_field TO lt_field.
      lw_field-field = 'GJAHR'.
      APPEND lw_field TO lt_field.
      SELECT (lt_field)   "<-- Internal table contains your dynamically specified in parenthesis
      FROM bkpf
      INTO TABLE itab.
      BREAK-POINT.

  • How to skip the mandatory field validation for clearing the screen fields

    Hi Friends,
      I have created a module pool screen, and made some fields mandatory. after entering some fields, if i try to clear the fields, am unable to clear. Its throwing the error "Enter all required fields"., since some mandatory fields are there. But i could able to navigate through other screen. Both the "CLEAR" and "NEXT" command are given in the at-exit command only. Next is working but clear is not working.
    Please  provide me the solution.
    Thanks
    Karthikeyan.L

    Hi,
    To avoid automatic input checks you have to assing function type - E to appropriate screen field, which is not to be checked.
    These function codes don't trigger PAI processing, instead they go directly to
    MODULE mod AT EXIT-COMMAND.
    ..placed in PAI of the screen. In this way you can ommit automatic checks performed by system on mandatory fields. Please ensure you have assing E type to next and clear functions in GUI status.
    Regards
    Marcin

  • Field Status for cost center master data!

    Hi friends,
    can anyone please tell me,
    Where do we define, which field is mandatory in cost center master data
    regards

    Good afternoon Rohan,
    To do that :
    IMG or transaction KM1V.
    Create a variante with attributes.
    You can also define time based fields in transaction OKEG
    Valérie
    Message was edited by: valerie secondy

  • Need a Function Module for fetching the prior date-Urgent!!

    Hi All,
         I need a function module which will give the prior date with respect to the no: of days days that are entered as input.
    Can anyone please help me to fing one function module which acts as the above.
    Required very urgently!!!
    Thanks and Regards,
        Neethu

    Hi Neethu,
    Please run the report 'ZRECTIFY_FM_DOCUMENTS' in your system.
    Before running the report, create the following selection texts for the parameters/select-options as given below:
    P_BUKRS:  Company code
    S_GJAHR:  Fiscal year
    S_BELNR:  FI document no.
    P_TEST:   Test run
    For More information please refer <b>SAP Note: 309619</b>
    Best Regards,
    Johnny.

Maybe you are looking for

  • Error: Thrown when the IP address of a host cannot be determined

    hi, While i install oracle 10g on Windows XP SP2, i got the error "Thrown when the IP address of a host cannot be determined". I am not connected to any network and my host file contains the loopback IP address (127.0.0.1). I don't know why did i get

  • BADI for Address Check in PA30 in ECC6.0

    Hi Friends, Is there any BADI for Address Check in PA30 in ECC6.0 similar to what we have in BP transaction in ECC6.0. Thanks, Pradeep

  • E-mail address for server

    After trusting the promise of Apple that installing and running a Mavericks Server is easy as pie, I bought and installed the server, i.e. just managed to install a folder named "Locker" in adherence to the instructions. Everything else seems "foolpr

  • Trouble compiling code

    I'm trying to write a rock, paper, scissors program but am having trouble converting an integer to its appropriate string. Here is the code I have: // Rock.java // Play Rock, Paper, Scissors with the user import java.util.Scanner; import java.util.Ra

  • Need help bad. Installed new HD and I dont want to lose my music on ipod

    Can someone please help I had a HD crash and had to install a new HD. but when I plug my ipod into my computer it is telling me I have to reformat. I have allot of songs I purchsed and I dont want to lose them. Is there a way to transfer playlists an