Mapping requirment based on field value

Hi All,
I have a mapping requirement
where in the file i have a 2 AM records as shown
AM U  00000000000010000C                                                    
AM X  00000000000120000
Based on AM-03 field i..e,, AM-03 = 'C'
then to the target field i need to pass the value(00000000000120000) of next AM02 record.
so when ever AM03 filed is 'C' then i need to pass the value of next AM record.
can any body suggest me how i it can be acheived.
Thanks
Sai_SHA

i am not sure whether i have understood ur req correctly or not..
but u can chk this UDF in ur mapping:
execution type: all values of a context
if(var1[0].equals("C"))
result.addValue(var2[1]);
filed3---removecontext
UDF----target
field2---removecontext

Similar Messages

  • Hot spot for field based on field value

    Hi,
    Im using ALV list to display report. And I have enable hot spot for that field based on field value. For example, If the field has value " 0 " then hotspot should be enabled for that field. If the field has value " 1 " then it should be displayed as normal field without hotspot.
    Can anyone tell me how to do this?
    Thanks,
    Amal

    Hi Amal
    Do this
    In your final internal table
    add a table type
    gi_cellstyles TYPE lvc_t_styl
    Then (while populating output)
    FORM prepare_edit_output.
    * say your field is 'field'
      DATA : lw_stylerow TYPE lvc_s_styl,
             li_styletab TYPE lvc_t_styl.
      IF gw_output-field = '0'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot.
        APPEND lw_stylerow TO li_styletab.
      ELSEIF gw_output-field = '1'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot_no.
        APPEND lw_stylerow TO li_styletab.
      ENDIF.
      INSERT LINES OF li_styletab INTO TABLE gw_output-gi_cellstyles.
    ENDFORM.
    In your layout building
        gw_layout-stylefname = 'GI_CELLSTYLES'.
    Pushpraj

  • Fields required based on a value in another field

    Hi,
    I am looking to have fields required (Annual Revenues and # of Employees) based on the value of another field (Ownership). Basically, if the value is Public the user is required to enter the Annual Revenue and Employees fields. I thought about using dynamic layouts but the only key field for Accounts is Account Type.
    Thanks,
    Caryn

    Hi Caryn!
    I think it is not possible for making #Employees and Revenues required depending on Ownership(as it is a look up field).. it should be possible if you want to do it on any other criteria other than ownership by just renaming the Account Type, Disable all the values of Account Tyope add new values to Pick List and make it driving picklist upon your requirements..
    If you require Account Type, create a custom picklist "Account-Type" and add the values.

  • Required Fields based on field value

    I am using Acrobat 9.1 Std. This is what I am trying to accomplish I have four text fields that I want to make required based on the selection of a radio button group.
    I have two radio buttons on the form w/ the same name w/ the button value set to Yes for one and No for another. If the radio button w/ value Yes is selected I want to set the four text fields to required. If the radio button value is No the text fields should be optional.
    Ive found similar postings for what I am trying to accomplish; however, I havent had any success in getting it to function correctly.

    Some more information on what I have tried..For simplicity Im just trying to get one text field to work, then I can repeat the java code for the other text fields.
    In acrobat Standard 9.1 I go to Forms Add or Edit Fields from there I select the radio button group (contains two radio buttons) on the left column and select properties. Then on the radio button properties dialog box I select the Actions tab. Set the Trigger for Mouse Up and the Action for Run a JavaScript . I click the Add button and enter the following into the JavaScript editor:
    if (this.rawValue == "Yes") {
    TextField1.validate.nullTest = "error";
    xfa.layout.relayout();
    else {
    TextField1.validate.nullTest = "disabled";
    xfa.layout.relayout();
    I then close the JavaScript editor, save the form and re-open to test it. I select the radio button w/ value Yes and click the Submit button and the form goes on to submit. At this point I would expect it to error because I didnt fill in any value for TextField1.
    I also tried altering the field tag with the below java:
    if (this.rawValue == "Yes") {
    TextField1.mandatory = "error";
    xfa.layout.relayout();
    else {
    TextField1.mandatory = "disabled";
    xfa.layout.relayout();
    This also didnt work. Im not sure if I am using the correct tag or not or why I am unable to get the text field to become required for submission.
    Any help would be greatly appreciated.
    Thanks,

  • Mapping target based on a value and grouping

    I’m having a problem with mapping a source IDOC to a target XML.
    The main problem is with mapping the output based on a value in the each segment and then grouping them properly.
    Here is the format of the source and target (There are more fields used, I am only showing these to explain my problem.)
    The Source IDOC is PPCC2RECORDER01
    We are using the E1BP_PP_PDC_OPERA2 segment which can repeat basically unbounded.
    example
    PPCC2RECORDER01
         EDI_DC40
         E1PPCC2RECORDER
              E1BP_PP_PDC_OPERA2
                   OrderID
                   OperationID
              E1BP_PP_PDC_OPERA2
                   OrderID
                   OperationID
    The Target XML looks like the folowing
    <Workorders>
         <WorkOrder> <!-- Occurs 0 - unbounded -->
              <WorkOrderHeader> <!-- Occurs 1 per Workorder -->
                   <WorkOrderID></WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation> <!-- Occurs 0 - unbounded -->
                   <OperationID></OperationID>
              </WorkOrderOperation>
         </WorkOrder>
    </WorkOrders>
    WorkOrder in the target repeats for each unique OrderID
    and WorkOrderOperation should repeat for each Operation ID contained within a WorkOrder
    Here is sample input
    PPCC2RECORDER01
         EDI_DC40
         E1PPCC2RECORDER
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0010
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0020
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0030
              E1BP_PP_PDC_OPERA2
                   OrderID          0000222
                   OperationID     0015
              E1BP_PP_PDC_OPERA2
                   OrderID          0000222
                   OperationID     0025
              E1BP_PP_PDC_OPERA2
                   OrderID          0000333
                   OperationID     0100
    This is the output I am getting
    <Workorders>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000111</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0010</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0020</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0030</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0015</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0025</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0100</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000222</WorkOrderID>
              </WorkOrderHeader>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000333</WorkOrderID>
              </WorkOrderHeader>
         </WorkOrder>
    </WorkOrders>
    This is the desired output
    <Workorders>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000111</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0010</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0020</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0030</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000222</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0015</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0025</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000333</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0100</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
    </WorkOrders>
    How can I get this to map the way I want?  I have tried many different mappings some result in the error message "Cannot produce target element WorkOrders/WorkOrder/WorkOrderOperation[4]/OperationID. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"
    Thanks,
    Tim

    OK,,, So I'm a little closer.  I have the first OperationID for each Workorder comming out, but the other OperationIDs are being dropped.  Here is a sample of what is coming out now
    <Workorders>
    <WorkOrder>
    <WorkOrderHeader>
    <WorkOrderID>0000111</WorkOrderID>
    </WorkOrderHeader>
    <WorkOrderOperation>
    <OperationID>0010</OperationID>
    </WorkOrderOperation>
    </WorkOrder>
    <WorkOrder>
    <WorkOrderHeader>
    <WorkOrderID>0000222</WorkOrderID>
    </WorkOrderHeader>
    <WorkOrderOperation>
    <OperationID>0015</OperationID>
    </WorkOrderOperation>
    </WorkOrder>
    </WorkOrders>
    Looks like it needs to be a change in the mapping for WorkOrderOperation, any Ideas on what this mapping needs to be?  Right now I have
    OperationID -> RemoveContext -> SplitByValue(each value) -> WorkOrderOperation
    I've trie to use the FormatByExample as shown above only going to WorkOrderOperation instead of OperationID, but get the Error message I mentioned above.
    Thanks,
    Tim

  • Brf+ workflow configuration based on field values of UI

    Hello Experts,
    I would like to know if we can configure the BRF+ workflow steps for material to go to certain users based on certain values from UI fields . For example a particular material type (FERT) should go to specific processor . Can I add material type column in BRF+ for materials and assign specific material type values and assign users to that step. Is this possible?.
    Thanks.

    This is one of the most common questions. It will save you time if you perform some research before asking. Any way, review this document: How to-Master Data Governance for Material: BADI USMD_SSW_RULE_CONTEXT_PREPARE to Enhance User Determination which addresses your exact question.
    Also, for any future MDG questions, please take a look first at this document Configuration and Enhancement of SAP Master Data Governance as it contains many of the commonly required enhancements.

  • Hide one row on Advanced List Pane based on field value

    Hello everyone,
    I have a question for you:
    Is it possible to hide one row on an Advanced List Pane based on the value of a field of that row?
    Here is the actual case:
    I have a custom B.O. called "Product Group". This B.O. has an Internal ID and a Description at Root level.
    In this B.O. I have a One-Too-Many node called "Descriptions".
    On the T.I. of the Product Group there is a tab called "Other Languages". On this tab a user can provide translations for numerous languages for the Product Group Description.
    When you create a new Product Group a translations is automatically added for the Current User Log On Language.
    Now I want to hide that row in the Advanced List Pane and only show the translations where the "Target Language" is DIFFERENT from the Current User Log On Language.
    So in the screenshot above you see we have 3 translations: "Bébé" (FR), "Baby" (EN) and "Bebé" (ES).
    Now I want to hide the "Baby" (EN) translation if the Current User Log On Language is English, hide "Bébé" (FR) translation if the Current User Log On Language is French, etc. ...
    The Advanced List Pane is currently bound to Descriptions node.
    Thanks & Regards,
    Glenn

    Hello Glenn,
    Please refer the below video.
    SAP Cloud Dev: Extensibility and Dynamic UI - Part 1 - YouTube
    Here Dynamic UI is achieved for input field. You can create transient radio button for each possible records, check the User Logon Data and uncheck the radio button specific to it.
    Regards,
    Chandan

  • Require Transfer a Field value of CRM to a Field in ECC system

    Hi All,
    We have a requirement where in
    Each time when a business Partner data is saved on the BP Tcode screen in CRM,
    CRM Table BUT0IS Field IND_SECTOR need to be mapped to ECC Table KNA1 Field BRAN1 based on condition that table BUT0IS field ISDEF = u2018Xu2019 in CRM.
    Kindly request to let me know as to how can we achieve this?
    Thanks and Regards.

    Hi All,
    We have a requirement where in
    Each time when a business Partner data is saved on the BP Tcode screen in CRM,
    CRM Table BUT0IS Field IND_SECTOR need to be mapped to ECC Table KNA1 Field BRAN1 based on condition that table BUT0IS field ISDEF = u2018Xu2019 in CRM.
    In CRM, By debugging the function modules we could see that the BDoc is carrying the IND_SECTOR field but not able to find ISDEF (checkbox) field.
    We would like to hear what are the required steps to populate this field in the Bdoc Structure and also how to debug the entire flow of middleware till ECC (i.e. the function modules called in ECC to update the database tables).
    Kindly request to let me know as to how can we achieve this?
    Thanks and Regards.

  • Hiding a subform based on field value.

    Dear Friends!
      I am trying to hide one subform when I have certain value in text field. I tried following code but it didnt help me at-all. will it be possible for you to show my my mistake.
    the business case is I am not supposed to display Form 16 related information in payslip when payroll areas are 13 & 14 for other payroll areas form 16 should display.   here subformname is Form16.
    code:
    data.#pageSet[0].Page1.Form16.Form16::ready:form - (JavaScript, both)
    IF(data.page1.payslipheader.GV_ABKRS.rawValue == 13);{
       Form16.presence = "hidden";
    IF(data.page1.payslipheader.GV_ABKRS.rawValue == 14);{
        Form16.presence = "hidden";
    above code is not hiding Form16 subform.
    thanking you
    Regards
    Naim

    Hi Soumik,
    that is a easy issue. Create a condition, where you ask the value, if it is initial.
    In this discussion, exact your question is solved.
    Adobe forms: Hide table rows based on data
    or here is another way to solve your issue
    Hiding a table column for a particular condition
    This is the code you need:
    if ( this.yourvalue.rawvalue == " " )
       this.presence = "hidden";
    Please use the search, which is located in the upper right corner of SCN before open a discussion.
    Here you can learn more about it:
    How to use SCN search
    Regards
    Florian

  • Restrict OVS Entries Based on Field Value

    Hello everyone,
    I've had a look at this section of the SCN for help before posting here --- none seemed to quite fit the bill. Apologies if pre-existing help for this already exists.
    I'm modifying the 'projects' WorkCentre for a customer: they have a Customer Contact field which I've added to both the project creation and project overview screens, and turned into an OVS which was easy. They now have an additional requirement --- filter that OVS based on the company named as the buyer on the project creation screen. In theory it's pretty simple --- only show those contacts who have the same company as field X --- but I can't figure out how to go about it. Is there a simple bit of Ruby script to filter this? Do I need to create a custom OVS and do some ABSL scripting? Any help would be appreciated.
    Lewis

    Did it!
    Tried as Fred suggested and tested it on a custom screen, which worked. Process was thus:
    I used the Company OVS which was in publicovs/organisationalcentreid because others caused issues, but this might not be the case for others. In the system I was using, the OrganisationalCentreID of the company I was testing against was a different length ('1000' instead of the expected '10000000') than the BusinessPartnerInternalID associated with it. This is why the second element is needed. Using AfterModify coding, I did the following:
    This gets the BusinessPartnerInternalID of the company, which is the same as the RelationshipBusinessPartnerInternalID field used in the Contact OVS. Using the parameter binding I just matched up these two and voilà. One can also make the second field invisible so one doesn't clutter up their UIs.
    There is I believe a Company OVS which is in the BusinessPartner subsection of the publicovs folder, which may negate having to have the extra field --- however I was experiencing issues using that, so I'm playing it safe for now. If this solution doesn't work on the customer's system in the standard screen I'll just take it up with SAP. Thanks all for your help!

  • Filtering out rows based on field value

    Hello,
    I have something like this:
    create table stuff
    avalue varchar2,
    anothervalue varchar2,
    thirdvalue varchar2,
    anumber number
    INSERT INTO stuff Values('abc', 'cde', efg', 2);
    INSERT INTO stuff Values('abc', 'cde', efgggg', 4);
    INSERT INTO stuff Values('abc', 'xxx', efg', 1);
    INSERT INTO stuff Values('abc', 'xxx', efgxxx', 2);
    INSERT INTO stuff Values('abc', 'yyy', efg', 2);
    I would like to recieve the rows with the higest 'anumber'-value, grouped by 'avalue', and 'anothervalue' (but not 'thirdvalue'). So in this example I want row 2, 4 and 5.
    Anyone have an idea? I'm thinking a 'order by desc' is not the best way here?

    select  avalue,
            anothervalue,
            thirdvalue,
            anumber
      from  (
             select  s.*,
                     rank() over(partition by avalue,anothervalue order by anumber desc) rnk
               from  stuff s
      where rnk = 1
    AVALUE     ANOTHERVAL THIRDVALUE    ANUMBER
    abc        cde        efgggg              4
    abc        xxx        efgxxx              2
    abc        yyy        efg                 2
    SQL> SY.

  • IDOC mapping requirment

    Dear all,
    I have a mapping requirment based on IDOC Segment to SOAP.
    My  IDOC Structue is like this:
    Source               Target
    segement1:         
       itemA
       itemB
       itemC                 ID
       itemD
    Segement2:
      itemD
      itemE                 Description
      itemF                 Value
    Based on ItemF ,if  its value is 00  then get itemC from Segement1 and itemE  from Segement2 and map to target  as ID and Desciption .
    Please provide me the  graphical mapping design.
    Regards
    Vsantosh

    can u provide me some more information like
    if ItemF value is 00 then ur trying to get the data from the two fields from the source side ,
    what do u want to do with those two values (means u want concatnate or what) and
    if itemf value is not queals to 00 then what to do .......

  • Change the row colors based on column values in MOSS 2007.

    Hi Team,
    I am using MOSS 2007 environment. In that I am having one SharePoint list. In that list based on column values rows colors need to change.
    Kindly help me anyone on this.
    Thanks,
    Ashok

    Hi Ashok,
    Please follow the below link:
    http://www.contentmaster.com/sharepoint-2010/conditional-formatting-of-list-views-for-sharepoint-2010-changing-the-font-colour/
    http://sharepoint.stackexchange.com/questions/7478/highlight-row-color-based-on-field-values-in-sharepoint-2010-list-view
    Best Regards,
    Brij K

  • Calling Message mapping Dynamically based on a field value

    Hi gurus,
    I have
    1 source inteface
    1 target interface
    3 Message mapping programs based on the 1 source and 1 Target Interfaces
    I need to decide Dynamically as which message mapping program should be called based on the Input provided by the source system.
    For example:
    If the souce side file sends a field value=1 then message mapping 1 should be called
    If the source side file sends a field value=2 then message mapping 2 should be used...
    Pls provide me help on this ASAP.

    As ur source and target structures are always same, u should have used same mapping with multiple conditions instead of using three different mappings.
    Right now for ur requirement, in ID -> standard Interface Determination, u can use multiple interface mappings based on condition.
    Check heading "Specifying Conditions (for Multiple Inbound Interfaces)" here
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/ea20e737f33ee9e10000000a1553f7/content.htm
    Regards,
    Prateek

  • OTL Timekeeper Form Custom Field map to specific Element Input Value

    Hello Everyone,
    I have the below requirement.
    1. Create a custom field in OTL Timekeeper Form. This field is based on the Element Selected on the timecard.
    2. Once the Timecard is transferred to Payroll, the custom field should go to a specific input value of that element.
    I know how to perform Step 1 above. But i am unable to find out how i can map the value in custom field to a specific Input value of the element.
    Any inputs are appreciated.
    Regards,
    Jay

    Any tips people?
    Can this be achieved?
    This is what i have done so far.
    1. Created a new Value set for the custom field.
    2. Created an alternate mapping to map the value set value to InputValue13.
    3. Created the alternate name.
    4. Added the alternate name to 'OTL Alternate Names' DFF.
    5. Added the Alternate name to the 'Preferences'.
    Testing:
    1. Created a Timecard populating the custom field.
    2. Timecard submitted and approved successfully.
    3. I verified that the custom field value goes into attribute13 of hxc_time_attributes where the attribute category is the corresponding element (should it be against the attribute category: Dummy Element Context? If Yes, then how to do it?).
    4. Then i ran the program 'Transfer Time from OTL to BEE'. This transferred the values into hxt_timecards_f, hxt_sum_hours_worked_f, hxt_det_hours_worked_f. But nowhere in these tables do i see the custom value.
    Did i miss any step? I did not define anything in the 'Define Mapping Components' of Deposit/Retrieval Process because InputValue13 is already part of it unter type 'Dummy Element Context'.
    5. Since it is not in hxt tables, i did not find it in pay_batch tables too.
    Any guidance is appreciated.
    Regards,
    Jay

Maybe you are looking for

  • Cable question (Older SB & bundled speake

    Hoping someone here can answer this question. A few years ago I the Creative Soundblaster Li've! x-Gamer 5. and the Cambridge Soundworks DTT2500 speaker system. I had been using the two with the tandem audio cable that came with them. This works fine

  • Write/Read Permission​s in temp folder - Help!

    Hello, I was playing with settings when I accidentally changed my write permissions in a temp folder and changed all of my user permissions. None of my programs work anymore except for my default programs. Can someone help me figure out how to undo t

  • Managed Servers are fluctuating .

    Hi, Installed WebLogic Server 10.3.5. Having AdminServer + 8 Managed Servers. AdminServer + ManagedServers-1/2/3/4 on machine X ManagedServers-5/6/7/8 on machine Y All 8 servers are in cluster. Domain Name : mattermanagement Issue : ManagedServer-7 a

  • Error in preloading Servlet

    Hi, I am new to Weblogic....I have an application built on struts and are able to deploy in Tomcat and Websphere. I copy the exploded application to user_projects\mydomain\applications and start the server. The following comes up:           ####<2005

  • BlazeDS FlashDevelop RPC ArrayList

    Hi,<br /><br />I've managed to get RPC working with BlazeDS and FlashDevelop using pure actionscript 3 & rpc.swc.  Great, I can return strings & booleans from the my java objects.<br /><br />I've tried some tutes and the BlazeDS developers guide to t