Header & item mapping

hi all ,
i am doing file to idoc
i have source structure as
header
item1
item2
item3
and my idoc wmmbid02  as stru
E1MBXYH  1.1
    E1MBXYI. 1.9999
i am able to convert soure file to xml as below (inbound playload ) using sender fcc.
<zheader>
<zitem>
i  defined my message source mapping (message type ) as below.
mt_f2idoc
     zE1MBXYH
     ziE1MBXYI    (same level as header)
and mapped to target  . (disabled edidc seg , given 1 to segements attr)
*ques*
i am getting run time exp in sxMB_MONI for mapping :
That "Cannot produce target element /WMMBID02/IDOC/E1MBXYH/E1MBXYI. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd "
what may be probelm ?
please help me out .
Thanks
Sridhar

Hi
if u r getting the error like can not produce target element
to make the error correction u can do the followng tests.
forst check your Message Mappinh that u have created, you can test the message mapping in the test tab
go to the test tab and execute and check whether the target strctute is generate or not.
if the target structure will not be generated that it mwans some mandatpry nodes are not mapped.then mapped all the nodes and then check.
if ur tyarget structure is generated in message mapping in the test tab then go to SXMB_MONI and thake the payload form the moni , copy this paylod in the message mapping and then  check ur message mapping. u will come to know about the mapping error.
if u still face the problem please reply me back.
Thanks
Rinku

Similar Messages

  • RFC- XML header item mapping

    Hello All,
    I have the folowing scenario:
    I have an RFC table that contains header and line details in the same line. for instance:
    Header Num, header text, line num, line text
    1             abc          10        d
    1             abc          20        g
    2             def          10        h
    I want to output this to an XML file with hierarchy e.g.
    <Header>
      <Num>1</Num>
      <Text>abc</Text>
      <Item>
         <num>10</num>
         <text>d</text>
      </Item>
      <Item>
         <num>20</num>
         <text>g</text>
      </Item>
    </Header>
    <Header>
      <Num>2</Num>
      <Text>def</Text>
      <Item>
         <num>10</num>
         <text>h</text>
      </Item>
    </Header>
    I tries using splitbyvalue on valuechange but this doesn't work. How exactly is the mapping for this?
    Thanks,
    Yoni

    Hi,
    Just try this:
    <RFCLine>---splitbyvalue<Num>
    <RFCLine>---splitbyvalue<Text>
    detail
    <RFCLine)-splitbyValue-removecontext---<num>
    <RFCLine)-splitbyValue-removecontext---<text>
    Regards
    vijaya

  • Problem mapping header/items in 1 Message Type

    Hello,
    I'm currently facing the following problem in my message mapping:
    On my 'CRM side'
    I have a MessageType (DataType) consisting out of +/- 10 header fields and a field called 'ITEMS'
    'ITEMS' is table type field consisting out of +/- 5 item fields. Ofcourse 'ITEMS' can occur min1 time - max ?? times
    On My 'Dbase' side I have a MT containing 2 'update' statements
    1 table is updated for every header record ( mapped with header fields )
    1 table is updated for every item ( mapped with header fields as well as item fields )
    As far as the header data is concerned everything works fine.
    The problem is in the update per item.
    The fields that are mapped with the fields inside 'ITEMS' are working fine.
    But ... I need to put 3 fields from my header level in the 'item table' as well. So I mapped them from header level to 'Item table'
    This seems to work fine as long as I have only 1 item. From the moment I have more then 1 item, the mapping throws an error that he can not create the target item.
    I have the impression that he 'looses' the link between header and item(s) from the second item on.
    Can somebody let me know that I have to use a special function or something to do this type of mapping ( mapping from header level towards item level ) ?
    I tried already some things with the functions 'Remove context' and 'CollapseContext' but this does not seem to help.
    Every help is welcome,

    Hi,
    Here you will be passing some values from Header Segments to Item level. So definately there should be a link available between them to pass the appropriate values..
    For multiple Item fields you need to use the single header fileds as common
    you should go for UseOneToMany API in Node function
    Header field to be passed                  --------->
    (Update table for Item level) ITem Node ------->   UseOneToMany  -----> splitByValue -------> Target field
    (Update table for Item level) ITem Node ------->
    Thanks
    swarup

  • Header/Line Item Mapping Problem

    Hi all
    I am trying to achieve some kind of header to line item mapping using the graphical mapping tool. The scenario is as following:
    PU1/PA1/NAME
    My big problem now is with NAME in the NM1 segment, which is kind of a header to item level mapping since it should become part of PU1 in the target structure which is created by the RMR segments of the source structure. I've tried to use the built-in useOneAsMany function, which works fine if the NM1 segment is always there. Nevertheless, this does not work if the NM1 segment is missing since the function apparently checks the context all the time and has then problems if the segment does not exist. I've tried a global variable with user-defined set and get functions, too, but didn't get it to work either.
    I hope that my explanations make any sense. Can maybe anybody help me to get this working? Any help would be appreciated.
    Thanks,
    Daniel

    Hi Daniel
    Node function <i>useoneasmany</i> will work only if the source field is available. If this source is missing then the MM will through an error. We can make use of ifexists function, using this we can map the soruce to target. the use is the value is mapped on if the source field exists. hope this helps
    thkx
    Prabhu

  • Create a new header+item after sync the item some informations are deleted

    Hi All,
    I have a DO with a backend adapter and 3 bapi wrapper (GetList, GetDetail, Create).
    When I create a new instance (header+item) on client side the data are correct in the database. After a sync the instance is also on the client and the Backend but he lost some informations in the item.
    For example i create e_top object (header) and t_vehicle object (item) the i added the item to the header an wirte it  in the database. In the datebase both tables for header and item are correct filled.
    Application Code:----
      public void SaveVehicle( java.lang.String Manufacturer, int Driver, java.lang.String Licence_Number, java.lang.String Type )  {
           VEHICLE_E_TOP e_top = model.createVEHICLE_E_TOP();
           e_top.setLICENCE_NUMBER(Licence_Number);
           wdContext.nodeVEHICLE_E_TOP().bind(Collections.singleton(e_top));
           wdContext.nodeVEHICLE_E_TOP().setLeadSelection(0);
           model.addToVEHICLE_E_TOPs(e_top);
           VEHICLE_T_VEHICLES t_vehicle = e_top.createNewT_VEHICLESs();
           t_vehicle.setDRIVER_ID(Driver);
           t_vehicle.setLICENCE_NUMBER(e_top.getLICENCE_NUMBER());
           t_vehicle.setMANUFACTURER(Manufacturer);
           t_vehicle.setTYPE(Type);
           wdContext.nodeVEHICLE_E_TOP().currentVEHICLE_E_TOPElement().model();
           e_top.addToT_VEHICLESs(t_vehicle);
           wdContext.nodeVEHICLE_T_VEHICLES().bind(Collections.singleton(t_vehicle));
           wdContext.nodeVEHICLE_T_VEHICLES().setLeadSelection(0);
           model.commit();
    Now when I snyc with the middleware the object is still on the client (1 row in the e_top table and 1 row in the item table) but in the row of the item table all data until the header key(Licence_Number) is deleted. In the Backend there is a new objekt with only the header imformations. 
    Best Regards,
    Dirk

    Hi,
    there was another post today n a similar issue. I still do not think it is a standard issue - so lets check first if your implementation is correct.
    You should have a look on the CREATE BADI in the backend and on the mapping in the DOE. I expect the CREATE handler does not get all informations form the client, cause you missed to do the propper mapping in the DOE on the middleware. Check this first. If you see the data on the client, the client side should be fine. Check the DOE and its mapping and the BADI implementation on the backend.
    Hope it helps!
    Regards,
    Oliver

  • Text in PO(text tab in header & item) is not shown in the Print Preview

    Hi Guys,
                I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item)  is not shown in the Print Preview.
                Can you guys help.Do I need to write a subroutine pool for this.
                <<text removed by moderator>>
    Regards,
    Rajiv
    Edited by: Matt on Nov 12, 2008 1:20 PM

    Hi ,
    Use bapi bapi_po_getdetail .
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder   = is_ekko-ebeln
          item_texts      = c_x
          header_texts    = c_x
        TABLES
          po_header_texts = it_header_text
          po_item_texts   = it_item_text.
    Regards
    Neetesh

  • How to copy header/item text from Quotation to sales order?

    Dear All,
    On ECC 6, I am trying to get text copied from the quotation to the sales order (when the order is created with reference to the quote).
    As of now, the order creation is fine with all the right items & partners etc. in it, but the text is missing.
    The same text IDs have been assigned to both documents (at header & item levels).
    Is the text content supposed to be copied by standard SAP? Is there any customizing needed for this? Please guide me on how I can achieve this.
    Please help.
    Thanks
    Best regards,
    Rohit L
    Edited by: Rohit Lokray on Nov 26, 2009 10:49 AM

    Hi Rohit,
    Pls check this e.g.
    Text Determination Procedure
    You can define text for
    Customer
    Sales document
    Delivery
    Billing 
    1) Create new text types
    (Menu Path:  SPRO-IMG-Sales and distribution- Basic function-Text Control-Define text type). You can define new text type in this menu for your requirement for different objects (Customer, Sales document, Delivery and billing document). T-code: VOTXN
    2) Assign the new text ID in the text   determination procedure
    (Menu Path:  SPRO-IMG-Sales and distribution-Basic function- Text Control-Define text type). Click on change on application tool bar. Select text procedure   created and double click on Text ID'  s in text Procedure. Assign new text Id to Text determination procedure
    3) Define and Assign an access sequence to the new text ID
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define access sequence for determining text).Access sequence can be defined only for sales document not for customer master. Select text procedure and double click on text id's in text procedure folder. Select text id and double click on access sequence and create new access sequence here.
    4) Assign the Text determination procedure with the sales document type.
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define and assign text determination procedure) In this menu path you can assign text determination procedure to sales document type.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/758534c960a134e10000009b38f83b/frameset.htm]

  • Is there any report to get the header/item text at GR stage together?

    Hi gurus,
    Is there any report to get the header/item text at GR stage together with a date range?
    at the point of goods receipt?  Or a report that could be run to search for header/item text at GR stage together with a date range?
    Text that was entered at the point of goods receipt?

    Hi
    Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
    Thanks

  • How to copy header items and paste it into a new channel

    Hi everybody,
    i'm trying to customize my tasks with DIAdem and got some big problem. I have a channel table in VIEW with 295 columns and have added a new column.In this column i want to write all the Header Items i've got.
    I've created a new channel with:
    Call ChnAlloc("Betriebsdaten_akt_Monat", 295, 1,DataTypeString,"Text")
    Call Zusfassg.Columns.Add(296)
    Then I use this command to read the header items:
    Set MyHeaders = View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems
    But how could i now paste all these items into the new column i've created?
    Thanks in advance for your help.
    Kind regards
    Patrick
    Patrick Etoumann

    Hello Patrick,
    to be honest, I did not completely understand what you are trying to do - so if the answer does not fit 100%, please give me some more information about your task.
    Within the DIAdem Help (topic: Object HeaderItem) you can find this short script:
    Set oMyHeaders = View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems
      For Each oMyHeaderItem in oMyHeaders
      Call MsgBoxDisp(oMyHeaderItem.Name)
    Next
    It calls a messagebox for each configured headeritem. If you want to write the titles of these items into a new channel you can use the ChT() variable. Specify the row and a textchannel as parameters of this function.
    But because you created a textchannels with a length that equals the numlber of displayed channels i think you rather want to copy the content of a specific header property to the rows of that column. In this case it might be most convenient to program a for loop and use the loop variable to reference the individual channels. With the command ChnPropGet(), the channel number and the property name you can read the value of a property.  Even here, use ChT() to store the data into the new channel.
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Sales BOM : Header item stock and cost

    Hello gurus,
    I'm very new for sales BOM and have one questions.
    We have material A and B (purchased from vendor).
    They will be assembled by 3PL company as C.
    Then we will sell C to the our customer.
    I want to set price/cost at the header item level.
    because we will sell material B free of charge.
    I've set C like below  
    1. Item category group. : ERLA
       Item category : TAQ
       Setting of A and B
        Item category group. : NORM
       Item category : TAE
    2. Then make BOM in tcode CS01 with C
        Material : C
        Plant: XXXX
        BOM Usage :5
        subitem : A, B
        Item category : N(Non-stock item)
    After then I tried to make a sales order
    with material C.
    I can get sub-items(A,B) successfully
    however system said there is no atp stock for C.
    How can I get stock of C from stock of A and B?
    And How can I set the cost of C with value of A+B?
    And How can I set the condition of C to calculate cost of C in header level?
    or can I set like
    price is determined in header level and cost is calculated in item level?
    Or please recommend nicer solution.
    Thank you very much.
    J.K.

    Hi Azam,
    It seems to me that you want to use Delivery Group for Sales BOM where If Mat A = Mat B + Mat C and Mat B Availability date is 20/07/2014 (DD/MM/YYYY) and Mat C availability is 25/07/2014 then Main line item should be confirmed with 25/07/2014.
    If any one sub Item is not available, then Any of the item from the Grouping should not be dispatched.
    If this is the requirement then, In Item Category (VOV7) for main Item update Create Delivery Group field with X and your requirement will be fulfilled.
    Do let us know the result after testing.
    Regards,
    MJ.

  • Exclude foreign data in delivery & billing at header & item level

    Dear all,
    I want to stop foreign data check from my export sales scenario in delivery or in billing document, I have not done any configuration for the same. Even by deselecting check in delivery or in billing at both level Header & Item level, my billing accounting document is not getting post due to foreign data incompletion. My requriement is system should not ask to maintian any foreign data to maintain in delivery & in billing document so that my billing doc will get posted directly to accounts even when I am selling goods to abroad.
    How to solve this issue, can anybody suggest in this matter.
    Thanks
    Regards,
    Savi

    If the shipping point country is different than ship-to party country, then foreign trade is activated. If you still want to switch off, then refer OSS 1459330 - Error Message: VF072 Foreign Trade Data Incomplete.
    Regards,

  • Printing header items

    Hi all,
    I am working on script.When the line items increases the header text element should be printed in script in next page but when there is no line item then the header text should not be printed.In my case when there is no line items in second page then also i m getting the header items.Please  tell me how to solve this.
    thanks
    Manu

    Hi
    Their are two ways you can do this.
    1-Instead of defining two pages in your script you can define one one page say 'First' and then in the next page of First you can give First page.
    2-You can trigger the new-page through some coding in the script.You can put a check for line item through a perform statement in your script code and then based on that you can trigger the new page for your script.
    Neha

  • Condition type EDI1 is not populating in XKOMV for BOM Header Item

    Hi All,
    We have assgined EDI1 and EDI2 condition types in pricing procedure, and creating orderd through Idoc, and checking for customer expected price.
    EDI1 and EDI2 are correctly populating for standard items, but NOT for BOM header item.
    I checked in XKOMV and observed that EDI1 is not coming for BOM header item.
    Please advise what to do.
    Regards

    Hi,
    In case your pricing procedure is similar to standard SAP then probably you use calculation routine 8 for EDI1 and EDI2.
    8 is represented by routine FV64A008. Inside this routine there is the following check:
    check: komp-prsfd = 'X'.
    Verify if your BOM header item category has switched on Pricing indicator (TVAP-PRSFD).  If you have blank value there then this is the reason why EDI1 / EDI2 condition don't receive value in your case.
    Best regards
    Witek Prawecki

  • Create Quotation by sending different partner data to header & item table in a Report

    Hello all,
       Can any one please guide me how can I send different Partner data to Header & Item by running a Z Quotation Report in SE38. Actually Now I am able to create a Quotation which takes same Partner data of Header to Item data as well but my requirement is to send different Partner data to Header & Item in a quotation.
    If you have sample code for the same please do share. I will be thankful to you.
    Waiting for helpful suggestions.
    Regards
    -Ajay

    Hi Ajay,
    I was referring to CRM_PARTNER_MAINTAIN_MULTI_OW and CRM_PARTNER_MAINTAIN_SINGLE_OW function modules. A sample working code (written in badi) for an order below.
    l_wa_partner_com-partner_no  = l_v_bp_guid.
    l_wa_partner_com-partner_fct  = l_c_partner_fct.
    l_wa_field_names-fieldname = l_c_field_partner.
    INSERT l_wa_field_names INTO TABLE l_i_input_fields.
    l_wa_field_names-fieldname = l_c_field_fct.
    INSERT l_wa_field_names INTO TABLE l_i_input_fields.
    ** Update the order with new partners
    CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
    EXPORTING
    iv_ref_guid                    = is_orderadm_h_wrk-guid
    iv_ref_kind                    = l_c_ref_kind " Pass B here in u'r case
    is_partner_com            = l_wa_partner_com
    CHANGING
    ct_input_field_names   = l_i_input_fields
    EXCEPTIONS
    error_occurred             = 1
    OTHERS                      = 2.
    IF sy-subrc <> 0.
    ENDIF.
    Thanks,
    Faisal

  • Item master Item mapping with multiple vendors

    Hi Experts,
    I need your help, I have one item like 'TV' in item master and need to enter multiple prices make wise samsung,sony,lg like.
    How can I maintain this in SAP B1 2005B.
    One Item mapping with multiple vendors with price...
    Thanks,

    Dear Aarti,
    I would recommend to have multiple items for the different brands you are selling.
    For example, you can call the item code Samsung, Sony etc and all of these item can be added to an item group called TV.
    Then you can assign a price to the items in the price lists.
    Alternatevely, if you need to have one single item called TV and different prices according to the brand, create a number of price lists called Sony, Sumsung etc and then if you know which customers buy a particular brand you can connect the price list to the customer under
    Business partner master data - Payment Terms - Price list.
    Please, if these 2 options are not helpful let us know the exact scenario and business reason behind your request.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team

Maybe you are looking for

  • Not able to assemble two interactive PDF forms to form a single interactive PDF

    Hi, I am trying to assemble two interactive PDF forms to form a single PDF. I am using LiveCycle process with Assembler and Invoke ddx file for this. But the resultant PDF is a flattened non interactive file. Please guide me in obtaining a interactiv

  • Bill To address in PO

    Hi All, We have an issue for bill- to address in purchase order. when we create standard PO ,we need the bill- to address as Newyork, but when we create non-standard PO,we need bill to address as Dallas. We know we can change the output manually in P

  • Not allowed to update apps. Why?

    My App store on my Iphone does not allow me to update my apps all of a sudden.I used for a year already and one morning it tells me I have to go to my Swedish store "Your account is not valid in the US store, you must switch to the Swedish store befo

  • Tomcat 4.0.1 on Linux, system.out.prinln() not working

    I recently installed Tomcat 4.0.1 on RH Linux 7.2 and I am trying to develop some servlet- and JSP-based applications. I've set up everything according to the instructions, however, I'm finding that when I put a system.out.println(somestring) stateme

  • BAPI_GOODSMVT_CREATE: Want to Goods Receipt onto an Existing P.O.

    Trying to Post MB01/101 using the BAPI and PO num. Adding additional qtys of maynr/batch. Having issue. Has anyone done this with the BAPI? Thanks