Get field value in a BADI

Hi everybody.
Im implementing a Badi and I would like to get the value that has been filled by the user in the original dynpro. I can´t get this value from exporting and importing structures that are received in the badi.
I know two ways to get the field:
- With the FM CALL FUNCTION 'DYNP_VALUES_READ'.
- With field symbols with the name of the program and the name of the field.
The problem is that the filed I can get its value is and object text and this two ways doesn´t work.
Neither I cant get this value with the function READ_TEXT.
How could I get this value???
Thanks a lot!!!!

Come On!!
yesterday I tried in my system and it worked.
If you put (SAPLIQS0)LTXTTAB[] in the debugger variable window you can see entries in the internal table. I think you are mistaking while reading the content of the internal table to your internal table.
And believe me you have the solution.
Now try this following code in the BADI implementation.
FIELD-SYMBOLS: <fs_ltxttab> TYPE tline_t.
ASSIGN ('(SAPLIQS0)LTXTTAB[]') TO <fs_ltxttab>.
IF sy-subrc eq 0.
ENDIF.
You will have the subject description content you maintained in the notification in <fs_ltxttab>.
Thanks,
Mainak

Similar Messages

  • Get fields value javascript sharepoint 2010

    How can i get field values in a newform.aspx without the weird id.
    Can I get by sharepoint internal field name or field name, or by title?
    Ex.
    <input name="ctl00$m$g_ac5e7c13_02a0_4407_9219_c5ed488b0821$ctl00$ctl05$ctl00$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" type="text" maxlength="255" id="ctl00_m_g_ac5e7c13_02a0_4407_9219_c5ed488b0821_ctl00_ctl05_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField"
    title="Morada Required Field" class="ms-long ms-spellcheck-true">
    javascript to get value
    var Morada = document.getElementById("ctl00_m_g_ac5e7c13_02a0_4407_9219_c5ed488b0821_ctl00_ctl05_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField").value;

    Prasath's jQuery would work.
    If you don't want to use jQuery, you can use the native JavaScript document.querySelector() or
    document.querySelectorAll(), using the same CSS selector syntax. Should run a bit faster than the jQuery equivalent.
    var Morada = document.querySelector("input[title='Morada Required Field']").value;
    CSS Selectors Reference:
    http://www.w3schools.com/cssref/css_selectors.asp

  • Get Field Values from Table using Java api

    I am using the example java code "RetrieveLimitedRecords" that can be found at :
    https://help.sap.com/javadocs/MDM71/current/API/index.html
    The code give the expected result and retrieves the record count for the main table
    Now I want to get the values of the fields for one record
    I added the lines:
    Record[] records = recordResultSet.getRecords() ;
    FieldId[] fields = records[0].getFields();
    System.out.println ("Field Length = "+fields.length);
    and the output is::
    Field Length = 0
    How can I get the fields of the record and read their values?
    Thanks
    Nicolas

    Assuming you want every field, the equivalent of "SELECT *" in SQL, you can use the RepositorySchema object to get a TableSchema, and with that get all FieldIds for the table.
    If your RepositorySchema variable is rs it would be something along the lines of:
    TableSchema mainTableSchema = rs.getTableSchema(mainTableId);
    ResultDefinition rd = new ResultDefinition(mainTableId);
    rd.setSelectFields(mainTableSchema.getFieldIds());
    Hope this helps,
    Greg

  • Not getting field value in Input field of field exit

    Hi all
       I  am using field exit for data element GWLDT in transaction code IE02. But in this field exit I am not getting the value entered in the field "Begin guarantee date(GWLDT)" in the INPUT field of field exit.How I can get the value in the INPUT field of field exit?
    Regards
    Deepak

    Use this statement in source code.
    output = input.

  • Can't get fields values of  SRM PO at R/3 PO

    Dear all.
    I am very muddle that: <b>How to</b> transport SRM web-page PO field value [such as sourcing type, tracking NO. Item category,Vendor text  at item level] to Backend R/3 PO?
    I can see these 4 fields value on web-page SRM PO. but I can't find its on R/3 PO. others fields is okay. What must I do? How to work it?
    Use BADI? Who can tell me a good way. thanks a lot.
    Alice.

    Hi,
      You need to then explicitly pass the values for these fields in the BADi "BBP_CREATE_BE_PO_NEW"(For SRM 5.0) or "BBP_CREATE_PO_BACK "(for SRM 4.0).Some of the fields i.e. Tracking no,item category are available on both the sides i.e. R/3 as well as SRM ,so cna be mapped.
    Please refer the foll link for sample code for the BADI :
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/srmBADIRepository&
    BR,
    Disha.
    Pls reward points for useful answers.

  • Could not getting field values from form

    hi,
    hellow, can you help me for solving the bellow problem
    i have form its enctype attribute of form tag is setted as multipart/form-data. when i am submiting this form, i call a request.getParameter(); in the submitting jsp file. But for any controls such as text,checkbox,select box etc could not get its corresponding value.

    Its obvious why its not picking up the change in the second action.
    Lets see...
    Here is your case I
    You get the populated form which is also put in the request with updated value from the JSP....
    (1)
    protected Forward updateGoalObjective(GoalsForm form)
    form.setGoalId(44); //int field set to 44
    return new Forward("success");
    You set one of the fields some other value....in one but how will the second action know about it???
    You try to execute the second action and the action grabs the form from the request again. This is the original form submitted by the JSP so you still see that value...
    You will have to pass in the customized or processed form for the form to be able to get it...
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    In your second case you create a new form...why would you want to do that if you have a form value being set in JSP??
    The answer is you should be doing something Like this:
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="showGoal.do"
    protected Forward updateGoalObjective(GoalsForm form)
    //other code
    form.setGoalId(44); //int field set to 44
    return new Forward("success", form);
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="Goal.jsp"
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    }

  • How to 'remember' a field value inside a BAdI?

    Hi all,
    We need to implement some code in a BAdI for Healthcare. The BAdI is active in the PBO of transaction NV2000. We need to read the value of one field and, if this field has a certain value, default another field with a certain value.
    The problem is - this BAdI reads each time another structure which you can change, but the two fields in question are in two different structures. So it's like:
      CASE i_structure_name.
        WHEN 'RNBADI_ADM'.
          MOVE c_data TO ls_rnbadi_adm.
    *here I could read the value of my controle field which can be found in ls_rnbadi_adm
        WHEN 'RNBADI_EXTDOC_ADM'.
          MOVE c_data TO ls_rnbadi_extdoc_adm.
      here I could change my other field which can be found in ls_rnbadi_extdoc_adm
      give changed data back
          c_data = ls_rnbadi_extdoc_adm.
    The problem is, in the step where structure ls_rnbadi_extdoc_adm is filled, structure ls_rnbadi_adm is empty so the value of the control field is not accessible any more. The control field is also not an interface parameter so I don't really know its value at runtime... it can be changed so selecting it from the database is not a good idea...
    I thought to declare a 'static' variable and give it the value of the control field in the step where ls_rnbadi_adm was filled, so the program would remember it in the step where ls_rnbadi_extdoc_adm was filled. But the ABAP Editor gives a syntax error 'you can't declare statics inside an instance method'.
    So any idea how to 'remember' the value of that control field?
    Thanks in advance,
    Ioana

    Hi Ioana,
    You should not change the standard SAP interface but your implementation of the interface (the BADI). Use transaction SE19, enter the name of your implementation, Hit change and go to the tab Interface. Then double click on the name of the implementing class and go to the tab Attributes.
    Regards,
    John.

  • How to get field values in ALV based on user provided input

    Hi,
    In my ALV grid, I have 2 fields:
    1. Material ID
    2. Material Description
    When user provides input to Material ID field, the material Description field should get populated immediately.
    Note: Curretly I am able to do it based on the sy-ucomm = 'Enter', i.e. when the user presses "Enter" outside the ALV grid, I retrieve Description from Mat Table and populate this in Mat_Desc in ALV grid.
    I want to do the same operation whenever tab is pressed (not when user presses enter outside the ALV grid).
    Please provide your inputs for this.
    Thanks & regards,
    Ravish

    Hi Ravish,
    Check <b>BCALV_TEST_GRID_F4_HELP</b> program for F4 help on ALV Grid.
    Thanks
    Venkat.O

  • How to get POF object's field value from query result

    hi,all:
    I want to get field value from the query result, my code is below
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
    Contact c=(Contact)iter.next();
    System.out.println ("firstame####=" + c.getFirstName());
    * but I get error*
    Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
    tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
    at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
    at com.oracle.handson.QueryExample.query(QueryExample.java:86)
    at com.oracle.handson.QueryExample.main(QueryExample.java:43)
    who can tell me how to get POF object's field value from query result

    Hi,
    If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        Map.Entry entry = iter.next();
        Contact c=(Contact)entry.getValue();
        System.out.println ("firstame####=" + c.getFirstName());
    }JK

  • Field value in page number X

    Hi everyone
    By using JavaScript, how can I get field value in page number X at runtime?
    Thanks

    I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

  • Fields[i].Field.Value in C#

    Hello all,
    I am new to Crystal and am updating an application that currently uses Crystal 8.5. I have installed Crystal 2008 and am attempting to update some methods and properties so that the upgrade will be smooth and not require much change in the application code. I am having a problem with getting the value of a field object in .NET. I need to know what the value of the field on the form is so I can use it in my code. The 8.5 implementation was Field[someField].Field.Value, but that doesn't work now. Any suggestions are welcome...
    Thanks in advance.

    Hi;
    I suggest you have a look at the following article on converting from the RDC to .NET:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/e0eb394f-931e-2b10-3b82-9413bfc3f457
    To get the field value, however, you will need to use the RAS engine. See this article:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0479adb-6b3f-2b10-1e9c-eb81a15768e8&overridelayout=true
    And the folllowing forum post:
    how to get field value from a crystal 11.5 R2 .net report
    Best Regards,
    Jonathan

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • Adobe field values not getting displayed in UWL workitem

    Hi,
    We filled a ISR Adobe form and submitted it and generated the corresponding notification number.
    On clickng the 'display and print form', the form is gettin displayed properly.
    But on checking the form at the approvers UWL, the field values are not getting properly filled.
    The form is getting properly displayed at R/3  through IQS22 and also the data values are properly attached to the notification number( checked through ISR_PROCESS_EVENT ).
    Kindly help.
    Thanks and Regards,
    Anto.

    Thanks for publishing your own solution!
    Cheers,
    Noë

  • Field value not getting updated in R/3

    Hello Experts!!
    I am facing a problem while updating a field value back in R/3.
    The Syncbo is of type U01 and the field has data type char 40.
    The meRepMeta.XML file has following description
    Field name="DESCR1" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
    <Input type="modify">false</Input>
    1) when i test the function module in R/3. The field value is gets updated.
    2) when i create a record for the sync BO from client , i can see the field value being created on the client.
    3) when i synchronize, i dont get any error or warning and get a successful message.
    S        15.07.2008 12:19:09 All updates for one TOP block were successful (seq. no.=65, TOP cntr.=0000000001)
    15.07.2008 12:19:09 Synchronizer UPLOADER completed successfully (mobile ID=0000002646, SyncBO=ZDBMSERORD)
    I am not able to locate where is the problem
    Please suggest!!
    Regards,
    Priya Ghosh

    Hi,
    please check your maping in the create handler in MEREP_SBUILDER. Perhaps the value is created on the client but not mapped to the field of the function module. Furthermore have a look into MEREP_MON and see if the data gets forwarded in there.
    At last I would dump the information received by the function module into a table without any logic. So you can see what data actually is forwarded into the funct module - if brake point i not possible.
    Hope this helps.
    Regards,
    Oliver

Maybe you are looking for

  • Is It Possible To Restrict Home Sharing Certain Content ?

    Hi - Just bought apple TV and works great.  However I am a little dissapointed that there doesn't seem a way to limit or exclude certain conetent from being home shared.  I have some podcasts that have either excplicit language used in them, and the

  • Cannot download apps to iPad since iOS 5.1 update.  Get error message "An unexpected error has occurred"

    cannot download apps to iPad since iOS 5.1 update.  Get error message "An unexpected error has occurred"

  • Problem on HP Pavilion dv7-6c90el with Windows 8 Pro x64 on Video Card

    good evening, I just finished installing Windows 8 x64 from Win7 Pro, I was able to find all drivers for my notebook, but I have problems with the video card settings. My laptop is a HP Pavilion dv7-6c90el with two video cards, one run by the process

  • Bouncycastle in wtk2.2

    hi everybody, when i try to build a midlet which imports from bouncycastle (import org.bouncycastle.crypto.CryptoException; for example) i get an error message: package org.bouncycastle.crypto does not exist i tried placing the java and org folders o

  • First Mac

    Hi I am going to buy a Mac with my own money, although I know my parents will help me if the price gets to high. I am going to be using some photo editing and video editing programs and iWork. I also want to be able to play minecraft and portal 2 fla