Problem trying to create FIELD SYMBOLS in BADI.

Hi guys!
I'm trying to create a Field Symbol in method CHECK of BADI me_process_req_cust (well, I'm working on a Z implementation).
The problem is that I'm trying to create a FIELD SYMBOL and when I check the syntaxsis, I receive the next error:
Clase ZCL_IM_MM_PURREQ_UPDATE,Método IF_EX_ME_PROCESS_REQ_CUST~CHECK
Names may only consist of the characters "A-Z", "0-9" and "_". In
addition, they may not begin with a number.
This is the code:
        FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
Any idea????
Thanks in advance!
Bet

Hi Silveria,
The problem lies in
FIELD-SYMBOLS: <sy-mereq> TYPE mereq3328-afnam.
instead of that it should be something like this
FIELD-SYMBOLS: <sy_mereq> TYPE mereq3328-afnam.
With your code you will be getting a syntax error saying sy-mereq is not defined,as it will be looking for the mereq in the system fields.
Regards
Abhinab Mishra

Similar Messages

  • Field Symbols in BADI

    Hi Experts,
    we had a change parameter in BADI Method which is TYPE ANY.
    Now i want to change one valune in this parameter.
    Actually this contains a row of data of some structure.
    I need to change a particular field of that structure.
    how to do this...
    thanks,
    chandra.
    Edited by: Chandra Sekhar on Jun 15, 2009 12:17 PM

    Hi,
    From the BADI details i find that you are referrinn to the parameter SCREEN_STRUCTURE.
    Declare a field-symbols of type any.
    Assign SCREEN_STRUCTURE to <fs>.
    To access the particular field of SCREEN_STRUCTURE you should know either the fieldname or the field position.
    Then use ASSIGN COMPONENT (fieldname or field postion) OF STRUCTURE <FS> TO <FS1>.
    Here <FS1> is one more field-symbol of type any.
    Hope you get teh concept.
    Regards,
    Ankur Parab

  • HI. Problem in concatenating a field symbol

    Hi,
    I used the following code... for downloading the file in application server..
           OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE
                                ENCODING DEFAULT.
          IF SY-SUBRC EQ 0.
            LOOP AT <FS_ITAB> ASSIGNING <FS_TAB>.
              DO.
              To Assign the Field Symbol
                ASSIGN COMPONENT SY-INDEX OF STRUCTURE
                                  <FS_TAB> TO <FS_LINE> .
                IF SY-SUBRC <> 0.
                  EXIT.
                ENDIF.
              To Type Cast the retrieved data.
                CONCATENATE L_R_FILE <FS_LINE>INTO L_R_FILE
                  SEPARATED BY
                     CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
              ENDDO.
              TRANSFER L_R_FILE TO P_FILE.
              CLEAR: L_R_FILE.
            ENDLOOP.
            CLOSE DATASET P_FILE.
            IF SY-SUBRC <> 0.
             Unable to close the file in application server
               Message e057.
            ELSE.
              WRITE:/(30) V_FILE,
                     (30) 'Generated successfully'(M02).
            ENDIF.               "IF SY-SUBRC <> 0.
          ENDIF.                 "if not rb_pres is initial.
        ENDIF.                    " IF NOT RB_PRES IS INITIAL.
      ENDIF.                     " if not <fs_tab> is initial.
    It Gave a dump saying the conversion to standard type not possible. (like C,N,T..)..
    So I changed the following part as
                L_V_FILE = <FS_LINE>.
                CONCATENATE L_R_FILE L_V_FILE INTO L_R_FILE
                  SEPARATED BY
                     CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    Now the Problem is when the File is downloaded.. there is an #(Space/Tab) in the first column..
    Can Any one help me in soliving this issue..
    Thanks In Advance..
    Guhapriyan Subrahmanyam..

    Hi,
    Can you try the same with <b>SPACE_STR</b> instead of HORIZONTAL_TAB?
    Also,
    If only the tab(#) in the first column is the only problem..then, after the DO..ENDO... truncate the first # and then proceed further...
    Regards,
    Raj
    Message was edited by: Rajasekhar Dinavahi

  • Problems trying to create scrollable text in InDesign CC

    I'm making an interactive presentation in InDesign. Im trying to create some scrollable text. i didn't know how to do that in CC, so I looked up some videos over the web and learned I needed to use the "Folio Builder" or the "Overlay panel". i never was able to find the latter and the Folio Builder gives me this message: "A software update is required to use Digital Publishing Suite. Please go to the Help menu and select Updates to get the required software." My software is already up-to-date (at least that's what the Adobe Application Manager tells me). Is this happening because I'm using a trial version? I'm planning to buy the Creative Cloud package but first I need to know it's worthy. Thanks for your help!

    You are most likely looking at some very old videos. As it happens my DPS
    course was just released on lynda.com:
    http://boblevine.us/my-first-lynda-com-title-adobe-digital-publishing-suite-
    essential-training-is-live/
    There's a link to a one week trial there if you don't have a subscription.

  • Re: Problems trying to create jrepository file

    Leonardo,
    Why do you need to create a new repository file ?
    Can't you just make a copy of the example one that comes with Jolt (/tuxedo/udataobj/jolt/jrepository)
    Joe
    "Leonardo Pedrosa" <[email protected]> wrote:
    >
    Hi, I´m trying to create Jolt repository and I am receiving the following
    exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion
    failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet
    and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problems trying to create jrepository file

    Hi, I´m trying to create Jolt repository and I am receiving the following exception:
    Exception in thread "main" bea.jolt.ServiceException: Data conversion failed;
    check log file
    at bea.jolt.JoltRemoteService.decodeCALL(JoltRemoteService.java:400)
    at bea.jolt.JoltRemoteService.call(JoltRemoteService.java:307)
    at bea.joltadm.JSvcPkgTbl.initTable(jbld.java:776)
    at bea.joltadm.JSvcPkgTbl.<init>(jbld.java:748)
    at bea.joltadm.JBldDefRec.<init>(jbld.java:111)
    at bea.joltadm.jbld.main(jbld.java:703)
    O got this exception by the two ways, creating jrepository through juliet and
    even so through bea.joltadm.jbld class.
    Does anyone could help me?
    thankful.
    Leonardo

    The reason for creating a new repository file is to incorporate all the new services which are included in multiple servers which comprise the application.

  • Problem trying to create graphic style...

    I'm trying to create a nave menu and in doing so, create a single graphic style that can achieve my end goal. I can get what I want by using a seperate shape, but that defeats the purpose of the single graphic style. I thought I could achieve the look using an effect under
    Effect>Pathfinder
    But that doesn't get the result I expected. Below you can see both what the graphic style currently looks like, and what I want to add to it (the gloss) hopefully within the same graphic style. Is this possible?

    Try this:
    https://dl.dropboxusercontent.com/u/3910250/button.ai

  • Problem trying to create and manage external tables

    Hello guys,
    I am having problems having created my external tables trying to select from them. I created the table thus:
    create table job_ext
    (job_id number(3),
    FUNCTION varchar2(30) )
    organization external (type oracle_datapump default directory test_dir
    access parameters (records delimited by newline fields delimited by "~" (job_id number(3) ,
    FUNCTION varchar2(30) ) )
    location ('testdump.lst')
    but on running select * from job_ext, I get the error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "logfile, nologfile, version" etc..
    KUP-01008: the bad identifier was: records
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    ORA-06512: at line 1
    what am I not doing right.
    Secondly, I wish to ask if an directory object is created, will it be visible on the OS file system?? I am using Oracle 10g complete reference for study but it does not throw light on this.
    thanks

    Hi,
    It looks like you may need to grant permissions to the target directory.
    The ORA-29913 error can also happen in external tables when you don't grant read and write permissions to the directory:
    CREATE OR REPLACE DIRECTORY extdir AS '/u01/app/oracle./extdir';
    GRANT READ ON DIRECTORY extdir TO myowner;
    GRANT WRITE ON DIRECTORY extdir TO myowner;
    Also, see BUG 5172459 (MetaLink Note:373168.1)
    The problem is that the message file for external tables oin not the English version. These steps will address the issue:
    1. cd $ORACLE_HOME/rdbms/mesg
    2. cp KUP<lang>.msb KUP<lang>.msb.BAK
    3. cp kupus.msb KUP<lang>.msb
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm

  • Swc / accordion problem, trying to create a 3-level dynamic nav

    Hi!
    First time poster, long-time troller. I've been working on a
    CMS system and having a little trouble creating a three level
    navigation, that's uses the functionality of the accordion
    component, but styled with dynamically loaded fonts.
    I'm using the "flexlibs" swc (and was playing with degrafa,
    but think it's a little much for what I'm trying to do). What I'm
    doing is:
    - pulling the three level navigation (1st level - brand, 2nd
    - campaign, 3rd - job),
    - a VBOX holds the entire nav, the first level is an
    accordion with:
    -- a header (that somehow draws the data (this is my first
    question) to put in a swc I created, in a Header.mxml component.);
    and a
    -- repeater that does the same thing for "campaign" (2nd
    level): vbox, vaccordion (header + repeater), that holds:
    -- a swc component, called "JobComp" (I've been playing
    swapping it with a flash-made swc but can't seem to figure out how
    to pass initialization variables in the constructor)
    I used "swc"'s for the nav components, because the fonts are
    "AGBuchBQ-Bold" and I thought it'd be easier this way.
    I guess my question(s) are:
    1. How do I pass a variable in the constructor of a swc
    Component?
    2. Am I doing this right? Or should I construct the
    navigation ALL in flash, export as a swc, and just pass in the xml
    to the flash component (which means I need to understand #1...)
    3. Is there a way to load / set font in the accordion / list
    components that are not the basic fonts? If I can style it all in
    the .css, that'd be really really helpful, I think, since it's 90%
    there.
    Thanks again, for any input,
    Dom

    My bad i didn't see that you want to create a swc.
    Well, as i said earlier, for me, the only way to pass
    parameter to a constructor (i suppose you mean like new Label("my
    title")) is using actionscript.
    What you can do if you want to create an MXML file is
    creating public parameters (or getters) in the script tag and use
    the [bindable]. As far as i understood Flex, properties in an MXML
    will have no action on your component if you don't use this tag.
    You can as well create a method that will apply these
    parameter after its creation, example :
    You create a MyComponent class which has different properties
    like displaySubComponent and maximumValue. In your class, you
    create a method called "applyParameters" which will do something to
    initialize it.
    Then you call use it like this:
    <c:MyComponent id="a_component" displaySubComponent=[ A,
    B, D] maximumValue=5
    onCreationComplete={a_component.applyParameters()} />
    And yes, i thought
    "dataProvider="{repeatCampaign.currentItem..job }" was strange but
    it's good to know that we can do that ;)
    Hope, i was understandable ^^"

  • Problem trying to create a list of JTrees

    Hi,
    my problem is that I am attempting to create a Jlist of JTrees. I am not sure if Swing supports this or not - I am at the stage where the JList of JTrees is rendering fine. The problem is that I cannot select the other trees in the list.
    I tried to add a mouse listener to my JList to work around this but this does not seem to work:
    addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    int index = locationToIndex(e.getPoint());
    if (index != -1) {
    JTree tree = (JTree) getModel().getElementAt(index);
    TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
    tree.setSelectionPath(selPath);
    repaint();
    The tree is detected by the mouse listener no problem, but I can't seem to set the selected node (variable selPath in code above returns null)
    Any ideas on this greatly appreciated - even to say if this is possible or not!
    Regards, Joe.

    You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

  • Problem trying to create an itunes account

    Hello. i recently downloaded itunes for my pc and i wanted to create an itunes account so i got on itunes and when i clicked on create account i got a message saying "We could not complete your itunes store request. The requested resource was not found" i've noticed other users are having the same problem. i didn't see any soultions though and the ones i heard i tried. i have norton internet security on my pc but i turned it off thinking maybe that could stop itunes from working but after i did that it is still not working. i tried configuring windows firewall to see if it was blocking itunes but it is on the allow list so i'm not sure what else to do. does anyone know what i could to fix this?

    idk what happened but now it's fine lol sorry

  • Problem trying to create user in iManager

    Hello all, When I try to create a user in iManager, I do not have the
    context of user in my tree. Going from the examples in the training doc, do
    I need to create this context from scratch ?
    Peter

    Pwmerritt,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem trying to create a connection to Weblogic

    Hello,
    I desperately try to create a connection to a weblogic 6.1sp2 server in JDeveloper.
    The Weblogic server is located on my computer. I just try to connect to the defaultserver running on my PC.
    Each time I get a message when I try to test the connection :
    "Cannot instanciate Webloci.jndi.WLinitialcontextfactory"
    Any help or suggestionn is welcome...
    Thank!
    Roland

    You have to copy the weblogic.jar to jdev_home\jdev\lib\ext and restart jdev. You also have to point the connection to the weblogic.jar in the \bea\wlserver6.1\lib directory. That worked for me. Good luck.

  • Assign field symbols in infotype 0021 BADI implementation (HRPAD00INFTY )

    Hi there,
    In PA30 infotype 0021, i have to change the value of T_VIEW_REPID by implementing BADI HRPAD00INFTY [Program MP002100->screen 2000->MODULE BEFORE_OUTPUT->PERFORM badi_before_output(sapfp50m)]. I'm trying to use field symbols (as below) to change the value of T_VIEW_REPID and getting SY-SUBRC = 4 after the Assign (LV_WA) To <FS_REPID>. Can somebody please help.
    method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
      Data: LV_WA(20) Type C Value '(MPPDAT02)VIEW_REPID'.
      Types: T_VIEW_REPID Type T582V-REPID.
      Field-Symbols: <FS_REPID> Type T_VIEW_REPID.
      Assign (LV_WA) To <FS_REPID>.
    endmethod.
    Thanks.

    Try like this
    method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
      Data: LV_WA(20) Type C Value '(MP002100)VIEW_REPID'.
    Types: T_VIEW_REPID Type T582V-REPID.
      Field-Symbols: <FS_REPID> Type T_VIEW_REPID.
      Assign (LV_WA) To <FS_REPID>.
    endmethod.

  • Assigning value to Field - Symbol ( which is type of internal table field )

    Hi All,
      I am facing problem to assign the value to a field symbol. My requirement is creating a dynamic internal table and populate values into that internal table, so that i can display the values .
      I am having a structure with fields like status , Plant1 name , Plant2 name.....Plant n .
      So i declared an internal table it_tab with this structure.
      I am having one more table which having number of records for Plant1 ,Plant 2 ,....Plant n based on some condition.
      I need to count the number of records for Plant1 and i need to put in the internal table it_tab.
      For this i created field-symbol .
    Here, t_deployment table will have the plants 1,2,3...and
         t_devobject will have some records for these plants.
    LOOP AT T_DEPLOYMENT. 
    clear w_count.
    LOOP AT T_DEVOBJECT WHERE ZDEPLOYMENT = T_DEPLOYMENT-DOMVALUE_L AND
                              ZADSTATUS = '10'.
    w_count = w_count + 1.
    ENDLOOP.
    concatenate 'it_tab-' t_deployment-domvalue_l into var_bet_name.
    assign var_bet_name to <bet_var_name>.
    now my internal table field i.e. it_tab-plant1 came into <bet_var_name> . But i want to assign a value for it.
    at last what i need is it_tab-plant1 = w_count.
    whaterver the w_count has value that needs to assign to it_tab-plant1. But i don't want to assign directly it it_tab-plant1. I want to assign dynamically. Because tommorrow some more plants added to t_deployments , i don't want to make changes to my program. It should take care....w/o changing the program.
    I tried the following statement.
    (<bet_var_name>) = w_count. But its not working.
    Please let me know how i can get this.
    Thanks in Advance.
    Pavan.

    Hi pavan,
    As ur requirement is creating a dynamic internal table,
    try the following way,
    remember the fieldcat should be of type LVC not SLIS.
    BUILD LT_LVCFIELDCAT in a way that, the value from the internal table becomes the fieldname
    ex:-
    loop at it_models INTO WA_MODELS.
        LS_LVCFIELDCAT-FIELDNAME = WA_models-MODEL.
        LS_LVCFIELDCAT-SELTEXT = WA_models-MODEL.
    append ls_lvcfieldcat to lt_lvcfieldcat.
    endloop.
    DATA: DREF TYPE REF TO DATA,WA_REF TYPE REF TO DATA.
    FIELD-SYMBOLS: <TEMP_TAB> TYPE TABLE, <TEMP_WA> TYPE ANY.
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = LT_LVCFIELDCAT
        IMPORTING
          EP_TABLE        = DREF.
      ASSIGN dref->*  TO <TEMP_TAB>.
    now basing on the fieldcatalog <temp_tab> is build.
    NOW FILL <TEMP_TAB>.
    WHILE FILLING, ASSIGN COMPONENT IDX/NAME.....
    this statement will be very usefull.
    i hope this will be help full.
    pls reward the points if it helps u.
    regards
    Hyma

Maybe you are looking for