UDF or Mapping for removing more items

Hi
I'm in a need to implement a data validation using UDF or Graphical Mapping
File has the data like ONE header record (5 fileds) and ONE item record (8 fields) as follows
header:field1field2 field3 field4 field5
item:field1field2 field3 field4 field5 field6 field7 field8
header:field1field2 field3 field4 field5
item:field1field2 field3 field4 field5 field6 field7 field8
header:field1field2 field3 field4 field5
item:field1field2 field3 field4 field5 field6 field7 field8
and so on.
Here my requirement is one header should have only one item. Sometimes either header or items are repeating more than one time .. in that case lastest header or item should be updated in target fields.
To say clearly ... one header and one item & one header and one item and so on to be updated.
In case any header has two items then first item to be deleted and second item to be updated.
Kindly advise me how to go about this requirement.
Thanks.

Do the mapping as
Direct assignment of Source header to Target Header and same for fields inside the Header.
create a UDF (choose context).very simple UDF with a single statement.
result.addValue(a[a.length-1]);
Item Node mapping and Its Fields
Item------>UDF------>Item(Target)
field1(Change the context to Header)------->UDF----->field1(under Target Item)
Do the same mapping for remaining fields Under Item as you  do for field1
I have tested the above UDF and the mapping..It is working according to your requirement.

Similar Messages

  • Java mapping for Remove and Add of  DOCTYPE Tag

    HI All,
    i have one issue while the Java mapping for Remove and Add of  DOCTYPE Tag   in Operation Mapping .
    it says that , while am testing in Configuration Test "  Problem while determining receivers using interface mapping: Error while determining root tag of XML"
    Receiver Determination...
    error in SXMB MOni
    " SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: Error while determining root tag of XML: '<!--' or '<![CDATA[' expected</SAP:P1>
    plz provide solutions
    Thanks in advance.

    Hi Mahesh,
    I understand, you are using extended Receiver Determination using Operational Mapping (which has Java Mapping). And, there is an error message u201CError while determining root tag of XMLu201D, when you are doing configuration test.
    Can you please test, the Operational Mapping (which has Java Mapping) separately in ESR, with payload which is coming now. It should produce a XML something like this [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce53aea0d7154ee10000000a421937/frameset.htm]
    <Receivers>
    <Receiver>
      <Party agency="016" scheme="DUNS">123456789</Party>
      <Service>MyService</Service>
    </Receiver>
    <Receiver>
      <Party agency="http://sap.com/xi/XI" scheme="XIParty"></Party>
      <Service>ABC_200</Service>
    </Receiver>
    </Receivers>
    If it is not (I Think it will not), then there is some problem in Java Mapping coding. Please correct it. Last option, if your Java code is small in length; you may paste it here, so that we can have a look at the cause of issue.
    Regards,
    Raghu_Vamsee

  • Removing unwanted items in photoshop elements 12

    I have looked at a video tutorial for removing unwanted items in a photo and followed the procedure using the spot healing brush trying both content aware & proximity match types but for some reason once I've selected the item the program doesn't actually do anything, so nothing changes. The item is still there exactly as it was before. I also tried using the magnetic lasso & but don't know how to get rid of the item once I've selected it. Can anyone help me with this issue? 

    I used the clone stamp tool.
    Place the cursor over the rocks to the left of the sign (source area), then hold down the ALT key and left click. Let go, then place the cursor over the sign and left click.
    You can adjust the size of the cursor with the bracket keys on the keyboard next to the letter P.

  • Remove History Items After 1 Day

    I have Safari's prefs for "Remove history items" set to "After 1 day", however it doesn't clear my history after 1 day. In fact it behaves as if it's set to "manual". Is this a bug? There was another post that is now archived that indicated that this is probably a bug, but that was from 2009. Surely, by now a bug in the first tab of the preferences pane should have been patched. Or am I missing something? I've cleared history and cache a few times to no avail. Any help?

    Try deleting the cache associated with Safari...
    Quit Safari.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type of copy/paste:   ~/Library/Caches/com.apple.Safari
    Click Go then move the Cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari. See if that makes a difference...
    If not, check Safari > Preferences > Extensions. If there are any installed, turn that OFF, quit and relaunch Safari to test.

  • Item cost not found for one or more items - Inventory Posting

    Good Day Mentors,
    My user has encountered an error during Inventory Posting and its "Item cost not found for one or more items".
    The specific Message ID from SAP's System Message Log is 10001287.
    I found a similar post which addresses this error here.
    But unfortunately it did not help me solve my user's problem.
    I already checked if the items had a defined "Item Cost" in the Item Master Data Inventory Tab, and they all have "Item Cost" defined.
    I'm not sure if this will help, but below is the Inventory Audit Report of one of the items that is throwing the "Item cost not found" error.
    I am not a business consultant neither am I literate in accounting, so thanks for the patience.
    SAP Version: 9.0 PL5
    Valuation Method: Moving Average
    Thanks in advance!
    Sean

    Hi Augusto and Raviraj,
    I've already verified in our production database the points you made:
    - Is the "Manage Item cost per warehouse" selected in the Basic Initialization Screen?
    YES
    - Is the "Manage Inventory by Warehouse" ticked/checked in the "Inventory Data" tab of the "Item Master Data" screen?
    YES
    * I apologize for not have been able to give this information upfront.
    Anyway, the database only has one warehouse at the moment.
    I've checked the items, like the item in the screen shot above, and it does have an item cost.
    Below is the screenshot of the sample item from my original post,
    Thanks in advance!
    Sean

  • How to insert more items for each tab in WAD  7.0

    Hello to everyone,
    My problem is confined to the WAD 7.0
    I would like to insert 4 different queries into a new Web Template.
    Two of them have to stay in one page and the others in one page each; therefore, the result would be a Web Template with three tabs.
    Unfortunately the system creates automatically four different tabs with one query each.
    Anybody knows how to insert more items in one page/tab?
    Thank you very much
    Savino Pompa

    Hi Savino
    In the WAD bring up the properites of the tabstrip_container web item, under the Internal Display group in the Tab Panel List, create 3 tabs, then drag 3 contatiner_layout web items into the tab web item.
    In each conatiner item drag the analysis web item, 2 in the first container, then 1 each for the others, then point each analysis web item at a dataprovider(query).
    Setup the contatiners so that the analysis items displays, to do this in the container properties create a row then on the following screen a column and then set the Subordinate web item to the analysis item, these web items control layout and are useful for dealing with multiple web items, for the first tab with 2 queries you will need to play with the layout, either 1 row 2 column or 2 row 1 column.
    For each tab you created add the corresponding contatiner as the Subordinate Web Item in the Tab Panel parameters for each tab.
    Hope this helps
    Josh

  • How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!

    I have the same problem with my iPhone.  I set up a recurring calendar event for every Thursday.  That event is no longer happening during the summer, so I went in and chose one from the current month and selected Delete.  Then it gve me two choices, one of which was to Delete All Future Events of this one, and that's what I chose.  I figured, this way, I'll still be able to see the ones from the past, but won't have to see (or hear the alert) for the future ones.
    The following week, my phone alerted me to the appointment, and even showed it on the initial screen, even though it wasn't in the calendar.  I went in to the calendar and NOTHING was scheduled for that day.  So why is this happening?
    So I set up a new recurring event, for in the past, then went in and deleted all furture occurances, and it did the same thing... still alerted to an event that was no longer in the calendar.
    I hope somebody else has found a fix, or at least a reason for why this is happening.

  • Remove or Hide context menu item "Add More Items..."

    Hi,
    I'm trying to edit UserChrome.css to remove or hide the context menu item "Add More Items..." that you find under the sidebar menu.
    Thanks.

    Firefox doesn't come with this item, so it must be added by an extension.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • FM or BAPI for adding/removing maintenance items(Tcode IP02).

    Hello All,
    I need to change Maintenance plan by adding/removing maintenance items(Tcode IP02). Please let me know availaible FM or BAPI for the same.
    Regards,
    Vimal

    Hi,
    use the following steps to find a BAPI for any transaction
    1.Open transaction SE24.
    2.Now open the object CL_EXITHANDLER in display mode.
    3.Go to the method tab and double click on the method GET_INSTANCE.
    4.Put a break point on cl_exithandler=>get_class_name_by_interface.
    5.Now execute the transaction you want to find BAPI for, it will take you to the above method.
    6.Write EXIT_HANDLER in fieldnames and hit enter, it will tell you the BAPI used for your transaction.
    7.Hit F8 and it will tell you all the BAPIu2019s for your transaction.
    some of the FM's are
    PM_MHIS_UPDATE
    MEASUREM_POINT_UPD_PYEAR
    Regards,
    Manish

  • On activating persistent class: There is no mapping for one or more fields

    Hi all,
    I'm using an ECC 6.0 system.
    I've just created a persistent class and defined the persistence. When I try to activate the class activating fails and I get the message "There is no mapping for one or more fields."
    I did not, in fact, use all the fields of the database table I defined the persistence on. When I do use all the fields activating the class works without a problem.
    However, as far as I know it should be possible to select only some of the fields when defining the persistence (the only fields I have to select are all the key fields of the table and I've done this).
    Has anybody encountered the same problem or has anybody any idea on this?
    Cheers,
    Kathy

    Hi Kathy,
    this is exactly what I meant.
    If you'd like, then you can also take a look at the documentation: http://help.sap.com/saphelp_nw04/helpdata/en/b0/9d0a3ad259cd58e10000000a11402f/frameset.htm
    There under Mapping, you can find:
    "You must map all columns of a database table to attributes. If you only want to manage some of the columns using Object Services, you must create a database view."
    Making attributes private doesn't change the fact, that you still map all fields. If you have a lot of fields, which you don't want to map, then I will again suggest, that you define a DB-view. This will boost the performance of your implementation.
    In case you need "quality 1st" performance, then I would suggest to use an ABAP implementation with internal tables, instead of the Persistent Service.
    HTH,
    Hristo

  • [svn:osmf:] 16975: Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer

    Revision: 16975
    Revision: 16975
    Author:   [email protected]
    Date:     2010-07-19 15:20:00 -0700 (Mon, 19 Jul 2010)
    Log Message:
    Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-964
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/media/DefaultMediaFactory.as

    Welcome guy -
    Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
    Many are using JQuery menus or pure HTML/CSS menus.
    If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
    By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
    ul.MenuBarVertical ul.MenuBarSubmenuVisible{
        width: 220px;
        left: 180px;

  • MRP RUN for the more than one line item in sales order.

    Hi ,
    In the sales order nuber of line item are , i will have to take MRP RUN for selected line item .
    So plz suggest what development will require?
    Abhay
    Edited by: abhay patil on May 30, 2008 8:52 AM

    HI,
    U can write separate prog. Which will ask sales order no. and from to line item or multiple line item of sale order. Then in loop internally pass the each line item no to MD50 prog. Which will run in background.
    I will give u sample prog. Which I had created for running MRP for all the lines items of given sales order in one go.
    *& Report  ZPRG_PP_001
    REPORT  ZPRG_PP_001.
    tables vbak.
    data: begin of it_vbap occurs 1,
            vbeln  type    vbap-vbeln,
            posnr  type    vbap-posnr,
          end   of it_vbap.
    DATA: P_MODE   TYPE    C.
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
    selection-screen begin of block b1 with frame title text-001.
      parameters :   p_vbeln  like  vbak-vbeln obligatory.
      selection-screen skip.
      parameters :   p_fore   radiobutton group mode,
                     p_back   radiobutton group mode default 'X'.
    selection-screen end   of block b1.
    at selection-screen.
    Check Sales Order
      if not p_vbeln is initial.
        select single * from vbak
          where vbeln eq p_vbeln.
        if sy-subrc <> 0.
          message e499(sy) with 'Invalid Sales Order no.' p_vbeln.
        endif.
      endif.
    start-of-selecTION.
    Get Sales order items
      select vbeln posnr from vbap
        into table it_vbap
        where vbeln eq p_vbeln.
    Set BDC mode
      if p_back eq 'X'.
        p_mode = 'E'.
      else.
        p_mode = 'A'.
      endif.
    Process MD50 BDC
      LOOP AT IT_VBAP.
        perform bdc_dynpro      using 'SAPMM61X' '0160'.
        perform bdc_field       using 'BDC_CURSOR'  'RM61X-TRMPL'.
        perform bdc_field       using 'BDC_OKCODE'  '/00'.
        perform bdc_field       using 'RM61X-KDAUF'  IT_VBAP-VBELN.
        perform bdc_field       using 'RM61X-KDPOS'  IT_VBAP-POSNR.
        perform bdc_field       using 'RM61X-BANER'  '1'.
        perform bdc_field       using 'RM61X-LIFKZ'  '3'.
        perform bdc_field       using 'RM61X-PLMOD'  '3'.
        perform bdc_field       using 'RM61X-TRMPL'  '1'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_OKCODE'   '=XBAC'.
        CALL TRANSACTION 'MD50' USING BDCDATA MODE P_MODE.
        CLEAR BDCDATA.
        REFRESH BDCDATA.
      ENDLOOP.
    end-of-selection.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDFORM.
    Ajay P. Nikte

  • What type of chart should we use for comparing more than 200 items

    Hi Guys, 
    I have a Pie chart graph for comparing data items but this chart becomes cluttered or serves no purpose when categories increase up to 100 or 200 items.
    I have tried collected Pie but still facing same issue.
    When the numbers of Legends increases the chart will become cluttered and this will reduce it readability as shown in the image.  Please share your suggestions for suitable chart type or strategy to overcome this issue.
    Regards

    Hi,
    As you may know, the issue is caused by the excessive items in the category group of the pie chart. The most direct and effective way is to reduce the items in the category group. Generally, we are not always need the report to display all items in the chart.
    In this scenario, we can add a parameter in the report, then use the parameter to filter the corresponding values in the chart.
    Besides, in order to increase the chart readability, we can try to use Column Chart to display those values. And we can “Enable scale breaks” in the Vertical Axis. A scale break is a stripe drawn across the plotting area of a chart to denote a break in continuity
    between the high and low values on a value axis. Use a scale break to display two distinct ranges in the same chart area.
    Reference:
    Add a parameter to filter the data in SSRS
    Add Scale Breaks to a Chart (Report Builder
    and SSRS)
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Edi mapping for 856

    Hi,
      can any one please map the below listed fields for edi 856..
           Hierarchical Level
    1)Hierarchical ID Number:
    2)Hierarchical Parent ID Number:
    3)Hierarchical Level Code:
    4)Hierarchical Child Code:

    I think TDLINE is just a free field to fill data as description and stuff like that, on the other hand the EDL24 contains all the position data and packing data
    for example, if you have 2 positions in the delivery and they're packed in two packs, you would have 4 EDL24, the 2 positions and the 2 positions within the packs  (maybe some reference to how the  pack is done?)  : (00001), (00002), (90001), (90002)
    I think that's easier than to check for EDL37 and the sub EDL44 (Pack and Item segments)
    but since the TDLINE can be used in many ways as reference you should probably check the logic and any document for that development
    By the way, i was currently requesting in one of my questions how to create a UDF for the Pack, items structure, could you provide more info about that? thanks!

  • 856 EDI mapping for G_SHL Segment

    Hi Guys,
      I have a question regarding the G_SHL segement mapping in DELVRY01.-- EDI856 scenario.
       I have this mapping for other customer now i need to implement the same for new customer.
    In that mapping they created 3 duplicalte G_SHL .
    For 3rd G_SHL they created a UDF for generating ITEMS, PACKS, and their count by taking the inputs as E1EDL24 and TDLINE.
    what is the need of these two inputs.
    Regards,
    Sandeep

    I think TDLINE is just a free field to fill data as description and stuff like that, on the other hand the EDL24 contains all the position data and packing data
    for example, if you have 2 positions in the delivery and they're packed in two packs, you would have 4 EDL24, the 2 positions and the 2 positions within the packs  (maybe some reference to how the  pack is done?)  : (00001), (00002), (90001), (90002)
    I think that's easier than to check for EDL37 and the sub EDL44 (Pack and Item segments)
    but since the TDLINE can be used in many ways as reference you should probably check the logic and any document for that development
    By the way, i was currently requesting in one of my questions how to create a UDF for the Pack, items structure, could you provide more info about that? thanks!

Maybe you are looking for