Mapping at header level

Hello All,
I have implemented a logic for field MATNR at the header level in the message mapping. Logic is when the value is not coming for a field it throws a customized exception.And the same field has different logic in the mapping under header.
As per my understanding the header level logic will be executed firsrt and if ever it is true then only rest of the mapping will be executed. Correct me If I am wrong here
Thanks,
Regards,
Moorthy

Hi Moorthy,
The mapping works in a hierarchial manner. If the header mapping fails or is not true, the corresponding values of sub nodes will also not be executed/populated for that particular context. (Context is extremely important in this regards).
Think it as a nested if stmnt. Ex:
if() <- check condition for header
if() <- check condition for first node after header - doesnt get here when the above if stmnt is false
if () { <- check condition for second node after header and so on
Hope this clarfies. Let me know if any doubts.
Cheers,
Souvik
Edited by: Souvik Chatterjee on Apr 14, 2011 3:59 PM

Similar Messages

  • Message Mapping Issue on header level

    HI all,
    I am doing File to IDOC scenario where I am having issue wiht mapping :
    Flat File
    Row -0Unbound
    FieldA1..1
    FieldB1..1
    IDOC
    --Segment
    ---Field1
    ---Field2
    Segment1
    Field11
    FieldA is Order number.. IDOCs will generate up on order numbers change... FieldB is discount... If Discount is avaliable in any of the order number then I need to Pass YES orelse NO... Segment is a header segment where I need to pass whether discount is YES or NO... Suppose there are 5 rows of same order with discount in 4 row then I need to pass YES if discount doesnt avaliable in all 5 rows then NO..
    Row
    --FieldA<123>
    --FieldB<>
    </Row>
    Row
    --FieldA<123>
    --FieldB<>
    </Row>
    Row
    --FieldA<123>
    --FieldB<10>
    </Row>
    Row
    --FieldA<222>
    --FieldB<>
    </Row>
    Row
    --FieldA<222>
    --FieldB<>
    </Row>
    IDOC
    --Segment
    ---Field1<123>
    ---Field2<YES>
    Segment1
    Field11
    </IDOC>
    IDOC
    --Segment
    ---Field1<222>
    ---Field2<NO>
    Segment1
    Field11
    </IDOC>
    Any inputs how to get value on header level? I tried but I am able to get only first value..not drilling down to each value depending on order number?
    Thanks
    Rajeev.

    Hi Prakasu,
    Its working but there is one issue: 
    If one fo the discount value is 99.00 then I need to pass NO.. How can I achieve this? I used the UDF but it is taking only the highest value which is 99.00 but even if it is 99.00 I need to pass NO..
    Suppose if first row discount is 99.00 and second row its 2,00 then I need to pass YES as it has 2,00 in the second row..
    Row
    --FieldA<123>
    --FieldB
    </Row>
    Row
    --FieldA<123>
    --FieldB<99>
    </Row>
    Row
    --FieldA<123>
    --FieldB<>
    </Row>
    Row
    --FieldA<222>
    --FieldB<8>
    </Row>
    Row
    --FieldA<222>
    --FieldB
    </Row>
    IDOC
    --Segment
    ---Field1<123>
    ---Field2<NO>
    Segment1
    Field11
    </IDOC>
    IDOC
    --Segment
    ---Field1<222>
    ---Field2<YES>
    Segment1
    Field11
    </IDOC>
    First row value is 99 and Null it has to give NO as if discount has 99 then it should pass NO.. in the second order first row is 8 and second row is null.. it should give YES but it is giving NO becuase if is taking only the last value in the Context change..
    Any inputs how to achieve this?
    Thanks
    Rajeev.
    Edited by: rajeev raj on Nov 23, 2009 2:52 PM

  • Two production  orders at the header level one for one single requirement

    Hi Gurus, Please provide me your valuable suggestion on the issue.
    *Client wants to have a only two production  orders at the header level one for one single requirement .*
    1) Manufacturing Order u2013 In this order for Finsihed prodcut system should pick all the assemblies whcih are manufactured inside i.e depending on the material type.\
    2) Assembly order u2013 In this order system should pick all the assemblies whicih need to be assembled also procured or subcontracted items in this order against depending on the material type.
    It means for Sales order of  5 EA there is going to be only 2 order ( MFG & assy order).
    For Example.
    L45-7000 is the header material now client wants only two production orders one Manufacture order and anothe Assmebly order , thet dont want to use Phantom assembly concept and also multiple production orders for  SFG.
    Please confirm if this requirement can be mapped in SAP ?
    Thanks...

    Hi Shishir,
    As soon as each order is related to only one material, if your manufactured (or purchased) assemblies are of different materials, you will have a separate order for each material rather than a single order for all manufactured assemblies. I don't thing all your assemblies are of the same material - thus I would say no, it is not possible to map your requirement.
    Regards,
    Sergiy

  • Discount at header level

    Dear Friends
    1   In a Contract or PO, we give some discount (2%) at HEADER level and maybe some discount at the item level (5%). The effective discount will be 7% or 5%. 
    2   How the Freight cost and other miscellaneous costs are taken into consideration while calculating the MAP of a raw material (as seen in mm03, accounting 1 view).
    For example, we buy 10 pcs @ $10 and pay $50 for freight and $20 as miscellaneous cost. The moving average price of the stock will be $17 [(1005020)/10] or $ 10.
    Regards
    Sanjeev

    1 In a Contract or PO, we give some discount (2%) at HEADER level and maybe some discount at the item level (5%). The effective discount will be 7% or 5%.
    The effective cost will be 7% if your discount based on the quantity but if it absolute amount then that 2% will be propotionated to all the items
    2 How the Freight cost and other miscellaneous costs are taken into consideration while calculating the MAP of a raw material (as seen in mm03, accounting 1 view).
    For example, we buy 10 pcs @ $10 and pay $50 for freight and $20 as miscellaneous cost. The moving average price of the stock will be $17 (1005020)/10 or $ 10.
    Freight cost will not be a part of your MAP becuase it is posting to accrual account but the $20 misc cost can be if the condition is not defined as accrual condition then only.
    If you want to add the freight also a part of the mateiral then define the condition like surcharge without accrual.

  • Customer field at header level

    Hello,
    Can we define customer enhanced field i.e coding block at document header level under new GL functionality?
    We want to track each location wise -division at the document level and also map authorizations based on the same.
    For e.g. Delhi being a location. Within delhi division exist like Local bill passing, capex seciton etc.
    Thanks
    Mukesh

    Hi Mukesh,
    I know BADI FI_HEADER_SUB_1300, however this BADI  was created for internal SAP purposes.
    The only aim of the BADI as stated in note 608694 and the in the documentation of the BADI is the possibility to change the posting date. Further fields eg. custom fields are not supported.
    For this BADI the indicator 'Within SAP' is set internally, which means in this case the BADI is only intended for SAP internal use and that customers cannot create own implementations for this BADI.
    Regards,
    Mateus

  • Purchase Order Total Amount at Header level and Report Execution

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?
    Edited by: Kiran Mujumdar on Feb 23, 2009 7:08 PM

  • PO number prints only if it is at header level not for item level

    Hi All,
    I am not able to print the PO number in my order acknowledgement and COA printout when I enter the PO number in the sales order at item level of only. It prints fine when it is at the header level.
    Please assist.
    Thank you,
    Shanu Jain

    Hi,
    BSTKD Field in the VBKD is dependent on two things . IF the Header PO Number is same as the Item number if u change at Header level it will be changed at all items level also. If both are diff then if u change the PO Number at Header level it will change PO numbers of the Items which is having same value as Header Po Number otherwise it wont change the Item PO Number .
    Ex " Order Number 1000 is having PO Number at Header Level is PO1. And the sales order is having Item 010 and 020.
    IF Item 010 and 020 is having PO1 at item level if u change the value of PO1 at header Level if will be applicable to items 010 and 020.
    If Item 010 is having Po Number PO1 and 020 is having PO2, if i change value of PO number at header to PO3 then it will change Item 010 PO Number to PO3 and Item 020 PO Number will be same as PO2.
    Try to Take The VBKD - BSTKD where Item Number POSNR is blank that means Header PO Number .
    IF u want Item Po Number then pass the item number in POSNR and get it.
    Regards,
    Srinivas.

  • Sale order close at header level

    Hi
    How can I cose a sale order completely at header level having more than one line items so that no schedule line can be used for delivery.
    Regards
    Rajesh

    Dear Mr.G. Lakshmipathi
    Thanks for your answer.I know this option but it does n't fulfill my requirement.
    There are more than one sale orders of the same material at a time for different customers having daywise schdule.System confirms the complete qty.in sale order used in first.While I need partely qty.to be sale to the other customer also.How can I transfer the qty.confirmed in first sale order to other sale order.
    Thanks
    Rajesh

  • Additional Data in Header Level for ME51N / ME52N / ME53N

    Dear Gurus,
    I have one requirement related to apply enhancement for additional fields in purchase requisition header level.
    After searching a lot , I dint found any solution for this.
    Does anybody have any solution for this.
    Regards,
    Shibashis.

    I need to add on Tabstrip "Account assignment" for fields
    CO Area and Cost Center text field description ( right side ) for each one.
    How can I do this? Thanks in advance.

  • Billing plan (Downpayment) for saved and open sales orders at header level?

    Hi gurus,
    I have configured billing plan in my SD environment at Item Level.
    I want to change it to header level.
    Questions:
    1- When I make the changes to update the system to have billing plan at header level for future sales orders, is that possible for me to change all my saved orders and open orders with the new settings so that I can also have those saved and open orders with a billing plan at item level?
    2- If that scenario is not possible, could we for example copy the data of a previously saved or open sales order into a new sales order with the new customizing (Billing plan at Header level?)
    Thanks for your input
    Kind regards
    Chris

    Hi
    I am afraid you cannot do that converstion for the existing orders. BP at header level are enabled at teh document type level, while BP at item level is done at item category. So both are independent. Mostly it is advisabel to use BP at item level only.
    If you are already using item level BP, and want to mvoe to header BP, then only future transactions can be executed with BP at header level. Existing item level BPlans will remain so in the system.

  • How to print material document in header level?

    Hi Guys,
    How to print material document from header level. I can only print them in item level. But i want that in header level. For example, I have 4 movements inside a material document and I want to issue only one output from the header level.
    I can see the option Goto -> Additional Function -> output, but it is disabled. Please let me know hot to acheive this and if you need further info on this. Please throw some light on this.
    Thanks
    Yasin.

    HIi
      Your question is not clear.  What exactly you want to be.
    1.  To print material header in your smart form / Sap Script what is the problem. Itu2019s quite easy you can do it. Let me know what problem you are facing.
    2. The option is disables because of business functionality ask your functional guys to help you on the same.
    Regards
    Swati

  • To be able to report by business area at a header level

    Business area reporting at a header level in Procurement/AP Subject Areas
    At present client is doing a large number of manual lookups in Excel to add Business area detail to certain OBI procurement reports. Reasons for why we are having to do this includes that the report is written at a header level but the business area detail is stored at a distribution level or the document has no distribution lines.
    What client would therefore like is for us to devise solutions that would allow us to include the business area detail. Possible solutions that I can think of include doing a join between the employee name, preparer name and requestor name to the HR business area detail, and the way that the ‘Procurement and Spend - Employee Spend’ joins the employee name and approver name to the business area fields maybe something that you can review as a solution.
    I am hoping that you can come up with a number of solutions which we can then explore in further detail.
    The key subject area that we would like this business area detail to be available in is the ‘Financials - AP Transactions’ area but if would certainly be beneficial to have in the ‘Procurement and Spend - Purchase Orders’ and ‘Procurement and Spend - Purchase Requisitions’ subject areas as well if it is feasible.
    Can any plz.. guide the possible soultions we can do with this CR
    Edited by: user13050518 on May 11, 2010 7:40 AM

    Bonjour,
    Je suppose vu votre prénom que vous parlez français lol bien que l'anglais ne me pose pas de problème.
    En fait, il s'agit de plusieurs factures (avec différentes business area) pour un même fournisseur.
    Au moment de la F110, le système comptabilise le paiement via une seule pièce mais avec plusieurs postes (un par business area) et la contrepartie le compte banque.
    La case n'est pas cochée pour le champ T001-XGSBE donc je ne pense pqs que le problème provienne de là.
    Cdlt

  • How to check the field existence in a string at Header level?

    Hello,
    I have a bunch of fields on my_form, just for example here in this posting I am using US state names ....., say for example,
    I have 3 fields, their names are as below
    1) NY,
    2) CA, 
    3) TX
    I placed a hidden a text field, its name is GFL (i mean, Grey Fields List), am using this GFL for my programming purpose
    From the back end (in our case, its an ERP -SAP) am populating/filling this GFL field, say for example.... its data looks like, CA TX (i mean, am concatenating the state names with a seperation of a space)
    ( FYI.....Already i have some JS piece in my_form INITIALIZATION and docReady events for some other purposes)
    Now, my requirement is as below,
    1) LOOP all the FIELD objects (here they are as State names) of my_form , then check whether their name (NY) existing in GFL's data..........if exisitng (in our case, its not existing) pls. greyed out with readOnly.......... if not existing
    (in our case, its not existing)   then skip the coloring and readOnly, go to next loop / iteration / state / Field
    Actually, i can achieve my requirement by putting JS in each field objet's INITIALIZATION event itslef as below, (but, i have around 200 feilds in my_form, hence i would like to put at HEADER level by generically looping all the field objects in my_form in one piece of code),
    var myStateName = /NY/;
    var returnValue = GFL.search(myStateName);
    if(returnValue != -1){; // This state/field/object is found in the Grey Fields List, hence greyed out with readOnly
    this.ui.oneOfChild.border.fill.color.value = "192,192,192";
    this.access = "readOnly";
    For some other requirement one of expert has provided the below JS in these forums, as below
    function findNodes(vNode) {
        if (vNode.className === "field") {
                       if (vNode.isPropertySpecified("name") === true) {
                                      if (vNode.getAttribute("name").search(/_U$/g) !== -1) {
                                          // Script to execute, when a match was found
        for (var i = 0; i < vNode.nodes.length; i += 1) {
            findNodes(vNode.nodes.item(i));
    findNodes(xfa.form);
    Actually, I tried to change the above JS as per my requirement, but its not working, pls. provide me correct JS as per my requirement
    Thank you

    Try this:
    function findNodes(vNode){
         if (vNode.className === "field"){
              if (vNode.isPropertySpecified("name")===true){
                   var myStateName=new RegExp(vNode.name);
                   var returnValue = GFL.search(myStateName);
                   if (returnValue!=-1){
                        this.ui.oneOfChild.border.fill.color.value="192,192,192";
                        this.access="readOnly";
                   else{  
                        this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever colour is open access
                        this.access="open";
         for (var a=0;a<vNode.nodes.length;a++){
              findNodes(vNode.nodes.item(a));
    findNodes(xfa.form);
    Kyle

  • Delivery address at Item Level and not at the Header Level

    Hello Experts,
    We are facing an issue as described below:-
    We are in SRM 7.0 using classic scenario.
    After approval of multi line Shopping Cart in SRM ,PR's are getting
    automatically created in backend R/3 system.After converting PR's into
    POs in backend R/3,we are observing that the delivery address for these
    PO'are getting printed at Item level and not at the Header Level
    inspite of the delivery address being same for all the Item level.
    As desired,the delivery address in the PO's should have the delivery
    address at the header level if the the delivery address is identical
    for all the Item Levels.
    However,if we create a PR directly in R/3 system and then convert these
    PR's into PO's in the backend R/3 system,we find that the deliver
    address are getting printed at the Header Level if the delivery address
    is same for all the item level(which is as desired)
    Any pointers will be highly appreciated.
    Thanks & Regards,
    RKS

    It is standard process only.
    In Po delivery address is maintained at item level because to which address perticular material to be delivered,
    this may change from material to material or may not change

  • Billing document not relevant at delivery header level

    Hi,
    In one of regular scenario i got the Billing document not relevant at delivery header level in processing tab.
    can plz advice me that what's the cause for this ?
    I am using item category tan at both sales order and delivery level.
    Thanks
    Bhushan

    Hi Bhusan,
    Go to: VOV7
    Select Item Cat. as "TAN" and Double Click.
    In Tab: Business Data, Check the entry for Field: Billing Relevance.
    Entry must be "A - Delivery-related billing document"
    Another check:
    Go to: VTFL
    Select Delivery-Billing Combination.
    Go to Item (left-hand tree structure).
    Select Item cat. as "TAN".
    Here, in Field: Copying requirement, Check entry as "004 - Deliv-related item"
    Hope this may resolve the issue.
    Best Regards,
    Amit

Maybe you are looking for

  • Planning Shared dimension in EPMA

    Hi All, We are currently exploring LCM to do application migration from one environment to another. I have managed to restore the LCM extract (Application Metadata) successfully and deployed a Planning application. However, all of my Shared dimension

  • Another day, another Go Client - RubyGo

    Encouraged by my success with building, installing & packaging the glGo program earlier* last week, I wanted to try to build a pkgbuild myself to see if I can.  However I have run into a few snags & I could use the experience of those more knowledgea

  • Simple CVS example

    Hello, Does anyone know about a basic example that shows how to create a simple csv file based on an SQL query from a jsp file? Thanks....

  • Do I need to secure-empty trash to prevent fragmentation?

    I now have SSD based hard disks. I keep reading a lot of mixed commentary online in forums about the secure-emptying of SSD disks...some people advise *against* it. I don't care about privacy of data. These are all things just at my home. My real wor

  • Smart Previews. Can't eject HD whilst using LR. Upon re-opening without HD, can't locate catalog..

    So, I've got my external HD plugged in. I've selected the photos I want and I've 'Built Smart Previews'. It's done that, fab. Then - keeping Lightroom open, I go to Finder and click eject on the external HD. Except it won't let me eject because 'Ligh