Extract a field from screen

i went to know please how  can i extract a content of field from screen and display it in my specific program? My specific program is for displaying a form and the field (DKOBR-EMPGE) is in pool functions(SAPLKOBS)
Thanks a lot,

hi,
declare a variable field in the program with the same name as that of the screen field name.
In the PAI module u can use the variable so that it will display the content of the screen field.

Similar Messages

  • How to extract a field from Binary object

    Hi Guys,
    I have a Binary object in custom aggregator and I would like to extract a field from the Binary object without de-serializing the Binary object. I know this can be done but figure out how.. Appreciate your help.
    Have tried this
    PofValue value = PofValueParser.parse(Binary, (PofContext) BinaryEntry.getSerializer());
    PofValue child = value.getChild(1);
    Object value = child1.getValue();
    but no luck.
    Thanks
    D

    Hi JK,
    Thanks..  I have Binary  and tried
    PofValue pofValue = PofValueParser.parse(binary, pofContext);
    PofNavigator path = new SimplePofPath(1);
    PofValue target = path.navigate(pofValue);
    Object value = target != null ? target.getValue() : null;
    but no luck.. I must be missing something.
    Basically, am trying to do cache joins using aggregator and data affinity. Sample code snippet
    @Override
      public Object aggregate(Set values) {
      List extractedValues = new ArrayList();
      for (Map.Entry entry : (Set<Map.Entry>)values) { 
       try {
        //these are BinaryEntries in TESTCACHE1
        BinaryEntry binaryEntry = (BinaryEntry)entry;  
        Long compId = (Long)binaryEntry.extract(new KeyExtractor("getComponentId")); 
        Long contId = (Long)binaryEntry.extract(new KeyExtractor("getPartyId"));
        BackingMapContext backingMapContext = binaryEntry.getContext().getBackingMapContext("TESTCACHE2");  
        ObservableMap backingMap = backingMapContext.getBackingMap();
        MapIndex mapIndex = backingMapContext.getIndexMap().get(new KeyExtractor("getComponentId"));   
        com.tangosol.util.InflatableSet keySet = (com.tangosol.util.InflatableSet) mapIndex.getIndexContents().get(compId);
        Binary object = null;
        for(Object key : keySet ) { 
         object = (Binary)backingMap.get(key);    
        PofNavigator  path  = new SimplePofPath(2);
        PofValue value = PofValueParser.parse(object,  (PofContext) binaryEntry.getSerializer());
        PofValue  target = path.navigate(value);  
        Object extractedValue = target != null ? target.getValue(): null;
        extractedValues.add(extractedValue);
       } catch (Throwable t) {
        log.error("Exception in aggregate method ", t);
        throw new RuntimeException("Exception in aggregate method", t);
      return extractedValues;

  • How to delete invisible fields from screen painter SE51?

    Dear all,
    How to delete/remove invisible fields from screen painter SE51?
    Thanks.

    HI,
    just go to screen painter-->layout in change mode.
    the invisible fields will be looking faded
    click on that and press the DEL button.
    that will be deleted.
    <b><REMOVED BY MODERATOR></b>
    vivekanand
    Message was edited by:
            Alvaro Tejada Galindo

  • How to Extract particular field from a string ( Mapping)

    how to exteract the particular field from the given string:
    ProcessEmp this element has a below string subfields.
    <ProcessEmp>&lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt;
    &lt;Employee PersonnelNumber="11111" FirstName="String" MiddleName="String" LastName="String" Department="String" Group="" SapUserID="10flname" EmailAddress="[email protected]" DefaultPassword="*" Status="Success" /&gt;</ProcessEmp>
    how to extract only PersonalNumber, department, EmailAddress from above ProcessEmp into 3 diff fields.
    Thanks
    dhanush.

    Hi,
    You are receiving XML message within a field. To access a particular field from that XML message, you could create a User Defined Function, as suggested by many already.
    You could write UDF using some of the String operation functions. This could include following:
    1. If you need to access field Employee PersonnelNumber, you could get last index of that within string using function lastIndexOf(String str). Pass string "Employee PersonnelNumber="" for this function.
    2. This function would return an index of rightmost occurance of this string.
    3. after this you could get the index of next occurance of ", as the value of field is within quotes. You could use function indexOf(int ch, int fromIndex) for getting the same. You would pass Character as " and index as the one received by previous function.
    4. Now you have index for starting and ending point of value string for desired field.
    5. After this you could use substring(int beginIndex, int endIndex) function by passing first and second index values to retrieve the needed string, which contains value of field.
    Hope this would be helful.
    Thanks,
    Bhavish
    Reward points if comments found helpful:-)

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • Distribution of fields from screen into different tabs in tabstrip.

    Hi All,
    I am having a screen 400 in program 'SAPLMR1M' which is the main program for MIRO transaction.
    The screen is having some 15 fields into it.
    When I run the MIRO transaction, I can see some of those fields appearing in the different tabs.
    My question is if a screen has 10 fields. Can I get the fields from one single screen distributed in different tabs in a tabstrip.
    Eg. 2 fields in tab1.
          4 fields in tab2.
          4 fields in tab3.
    Thanks in advance.
    Regards,
    Gaurav.

    Hi,
    Yes. It is possible.
    If you consider any transaction then it contains various tables for updation.
    Suppose if a screen contains 10 fields . Then 2 situations arises:
    1) If all that 10 fields belong to the same table then we can get directly based on the key value into any number of tab strips.
    2) Incase if we have field from more than 1 table then we have to create separate internal tables for each tabstrip and based on primary key we have to fetch the data using JOINS or FOR ALL ENTRIES and you can display in the tabstrips or table controls.
    Reward points if helpful;.
    Thanks and regards.

  • Fields from screen are not known by program.

    Hi All.
    I have this problem since I started using Dialog programming.
    Since I didn't attended any course I might be doing something wrong.
    When you define a field in a Dialog screen and you want to refer to it in the program that calls that screen you get a compilation error that there is no such field.
    If you define the field as at TABLE-FIELD you can work around this compilation issue by defining the TABLE using "tables: TABLE" statement, but now I have a problem since I don't want to use the TABLE-FIELD definition for my field and thus I'm stuck Shocked
    Any help will be appreciated.
    Ayal.

    Hai,
    If suppose, if you define a field in the screen, it is not mandatory to declare same variable in program level.  If we take the same name, after completion of PBO the data automatically transferred to the screen field. If u don't take the same name then you need to pass value of the variable to the screen field in the PBO.
    Example :
    If suppose, you have a I/O field in the screen with name TEXT.
    In the program
    data : text(10) type C.
    if that is 100 screen.
    Process before output.
    module display_100.
    with in this module
    text = 'SRIKANTH'.
    this will directly display on the screen.

  • How to load date field from a remote Oracle DB with DB Connect

    Hi,
    Does any one have experience extracting Date field from a remote Oracle database through DB Connect to BW?  I am experiencing data format issue.  The extracted data shows '04-Oct-0' for '10/4/05'.  It works fine if I create a view in Oracle database to preformat the data to '20051004'.  But, I am not allowed to create view in Remote DB.
    Any suggestion is very appreciated.
    Regards,
    Frank

    You have to change it to a varchar2 field. YYYYMMDD. I do not know of any other option.

  • How to get Required field from R/3 to  load in Bw.

    To get a perticular value from R/3 to BW . in r/3 side I need to go to first table equi from there i pick equipmentno on the basis of this number i need to go to objnr from objnr i need to pick up objnr number and i have to see this number's value in table AUSP. like this same scenario i am facing in master as well as transaction tables , how i should fetch these values and load to BW .
    In standard datasources if i want to add the field value of which is derived by the value in two more tables then how do i Enhance the datasource.
    Can any one give clue to resolve It.

    Hi Srinivas,
       If you want to enhance any data source, by appending any field from any table.. basic rules are
    1. All the key fields in that perticular table should be available in your data source.
    2. Similar for more fields from different tables.
       Or if you want to extract more fields from different tables try to create a View on these table and go for generic extraction(create data source on this View). Choose which one if best option for your requirement.
    Hope it Helps
    Srini

  • How to Fetch the Data from Screen(Structure) Leval

    Hi,
    In HR I have to retrive some fields from Screen leval ..Ex.Q0002..genaraly we are able to retrive the
    data from PA0002.
    in this Scenari how can i fetch data from Q0002.
    Thanks in Advance

    you can check the below code for this .
    DATA: BEGIN OF DYNP_VALUES OCCURS 10.
            INCLUDE STRUCTURE DYNPREAD.
    DATA: END   OF DYNP_VALUES.
    DATA : HELP_val TYPE Pxxxx-abcde.
      REFRESH DYNP_VALUES.
      DYNP_VALUES-FIELDNAME = 'PXXXX-ABCDE'.
      APPEND DYNP_VALUES.
    * read screen values
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
               DYNAME     = SY-REPID                        
               DYNUMB     = SY-DYNNR                        
           TABLES
                DYNPFIELDS = DYNP_VALUES
           EXCEPTIONS
                OTHERS     = 1.
    IF SY-SUBRC EQ 0.
    SORT DYNP_VALUES BY FIELDNAME.
        READ TABLE DYNP_VALUES WITH KEY 'PXXXX-ABCDE' BINARY SEARCH.
        IF SY-SUBRC EQ 0.
          HELP_VAL = DYNP_VALUES-FIELDVALUE.
        ENDIF.
    ENDIF.
    just check if this code is working for u .
    br,
    vijay.

  • Extracting all form fields from a fillable pdf

    Is there any way of extracting/exporting/copying all form fields from a pdf? Meaning, the wordings from all the fields so I can pass it along to another individual to use for cross referencing, since they are not able to see all the various form fields within the split screen?
    Thanks!!!

    The person that needs this is looking for the entire running list of all the fillable field names within the pdf. Any kind of document that I can deliver them in, I am willing to take suggestions.
    Right now, what I was thinking of doing was having the screen split between the pdf and the listing of field names in the sidebar and taking screen captures as I scroll down the pdf and corresponding field names in the sidebar until I got all pages.
    Is there an email address I could contact you at to discuss offline? I have an example I could send you but don't want posted online.
    Thanks!

  • DTP can Not extract data of date field from PSA to Target DSO

    Hi everyone.
    I enhanced several fields in datasource "2LIS_12_VCITM". that is date field "BLDAT" and another date type fields.
    The data of date type fields are extracted very well from datasource to PSA.
    But only field "BLDAT" among them are NOT extracted from PSA to target DSO.
    Another date type fields is good. but only "BLDAT" field is empty.
    I added "BLDAT" later than another date fields.
    Is that the reason??
    I don't know why.
    Let me know the solution. pls~~~~

    Hi,
    Try deleting and recreating the DTP and loading again.
    This solution refers to note 925941 and should be solved in SPS10.
    Best regards,
    Olav

  • Extract a value of a fields from an internal table

    hello everyone,
    i need to extract a value of a fields from an internal table, the fields is in a postion "sy-tabix" that i know, so i need to pick this value without using a loop
    thank you.

    Like this?
    DATA: FIELD1 TYPE C,
               FIELD2 TYPE C.
    READ TABLE T_TAB INDEX 3.
    FIELD1 = T_TAB-FIELD1.
    FIELD2 = T_TAB-FIELD2.
    Greetings,
    Blag.

  • Extracting Values of a Field from a Database Table in SAP ECC System

    Hi,
    I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
    senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
    "6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
    I did not find WA elemen in Output element of Repeater_0
    How can I create WA element?
    Thanks.

    Cemil,
    Set up a SAP JCo Interface action block.  Use the RFC name RFC_READ_TABLE.
    In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
    <?xml version="1.0" encoding="UTF-8"?><FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
        </FIELDS>
    Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}.  You may run into problems with two other fields and optionally they can be removed (set link type to remove xml).  I usually remove them initially for testing.  The two fields are:
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~".  I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
    Once you get this one working, we can explore how to do filtering on the dataset.  Your output should be something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <RFC_READ_TABLE>
      <INPUT>
        <DELIMITER />
        <NO_DATA />
        <QUERY_TABLE>MARA</QUERY_TABLE>
        <ROWCOUNT>20</ROWCOUNT>
        <ROWSKIPS>0</ROWSKIPS>
      </INPUT>
      <TABLES>
        <DATA>
          <item>
            <WA>000000000000000023ROH 00000000</WA>
          </item>
          <item>
            <WA>000000000000000038HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000043HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000058HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000059HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000068FHMI 00000000</WA>
          </item>
          <item>
            <WA>000000000000000078DIEN 00000000</WA>
          </item>
          <item>
            <WA>000000000000000088FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000089FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000098HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000170NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000178NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000188NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000288HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000358HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000359HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000521HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000578FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000597HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000598VERP 00000000</WA>
          </item>
        </DATA>
        <FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET>000000</OFFSET>
            <LENGTH>000018</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Number</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET>000018</OFFSET>
            <LENGTH>000004</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Type</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET>000022</OFFSET>
            <LENGTH>000003</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET>000025</OFFSET>
            <LENGTH>000001</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET>000026</OFFSET>
            <LENGTH>000008</LENGTH>
            <TYPE>D</TYPE>
            <FIELDTEXT>Valid-From Date</FIELDTEXT>
          </item>
        </FIELDS>
        <OPTIONS />
      </TABLES>
    </RFC_READ_TABLE>
    Add a repeater sourced on:
    SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
    Link your repeater output to a tracer with this:
    Repeater_0.Output{/item/WA}
    What you will see in each tracer message is a single line of data with all the fields contents concatenated together.  You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc.  Then you can parse out the data you are interested in.
    Give this a try and let me know how you succeeded.
    By the way, I could not find the scenario you referred to.  Can you post a link?
    Regards,
    Mike
    Edited by: Michael Appleby on Jan 12, 2009 5:16 PM

  • How to remove fields from Standard Screen

    Hi,
        I Have faced one problem in screens(se51). When apply one SAP Note i have to change the screen manually(as per Note ) . My requirement is to remove some text fields and label fields. But I cant delete the Fields.
       Normally just select the object and Press delete Key to remove one object from screen. But here it is not working.
      How can i remove the objects from the screen as per SAP Note.
    Thanks in Advance,
    WIth Regards,
    Neptune.M

    Hi,
    T.code SHD0 helps you control which fields to appear, suppress and make mandatory in Standard Screen.
    refer
    https://forums.sdn.sap.com/click.jspa?searchID=4359065&messageID=2961760
    Regards

Maybe you are looking for

  • Firefox Beta channel does not update to next Beta build, why?

    On both the Nightly and Aurora channels, when a new build is available if you 'check for update' the update is Downloaded and applied. On the Beta channel this does not happen. Is there some config setting I need to change for updates to be found? It

  • Using Ipod Nano with Itrip

    I have a question, I recently planned on buying an Ipod mini. I also was getting the Itrip too. So I got most of the money, almost enough for the Ipod so I purchased the Itrip. Now the Ipod Nano has recently replaced the Ipod Mini so im getting it, B

  • IMacIntel migration problem: iTunes library broken

    I recently upgraded my 500mHz TiBook to a shiny white 17" iMac. Overall it has gone smoothly, except for iTunes. My TiBook had a hard drive condition that precluded a direct transfer, so I had to clear a partition on an FW drive and use SilverKeeper

  • Detail tabular form

    db11gxe , apex 4.0 , firefox 24 , i have a master form and a detail tabular form in a page , the master is based on table "Patients" , and the detail is based on "Patient_tests" , i insert the details of the patients in the master , and the tests in

  • Arabic typeface used by Skype Chat - Iphone

    I am trying to undentify the typeface used by skype on my Iphone 5S. It work really well for screen, and I would like to know if it is bespoke or available to download. Thank you