FMS for copying item group name to marketing document.

Hi All
I need a query to copy item group name when a user enters a item code in any marketing document.
Thanks
Bongani

HI
Try this, FMS(Formatted Search) Query.
Create 1 UDF in Row Level on Marketing Documents.
->> Goto Tools(Top menu).
->> User-Defined Fields. -> Manage User Fields.
->> Open the Manage User Fields.
->> Clcik the Marketing Documents.
->> Select the Rows Line.
->> Click the Add button in buttom of right.
->> Add the UDF(Item Group Name).
Assign the below FMS in UDF.
->> Administrator.
->> Reports. -> Query Generator.
->> Open the Query Generator and put the below Query and Execute the query then Save as the Query Manager.
->> Open the Document and put the BP code in header.
->> Select the Item Code in row level and Goto UDF then Click Shift + Alt + F2.
->> Select Search by Saved Query and Assign the FMS Query.
->> put the Tick mark the Autofresh and Select When Exiting Alert Columns(right side).
->> Select Autofresh - Item Code.
SELECT T1.ItmsGrpNam FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod WHERE T0.ItemCode =$[$38.1.0]
Regards,
Madhan.

Similar Messages

  • Table for Commitment Item Groups

    Does smbd. know a table for Commitment Item Groups and probably a function module which reads a commitment item group from a commitment item ?
    Kind Regards
    Alexey

    You can use FM K_HIERARCHY_TABLES_READ with e_class = '0311'.
    Rob

  • Want to block purchase accounting for particular ITEM GROUP? is it possible

    want to block purchase accounting for particular ITEM GROUP? is it possible

    Hi Sahil......
    That is not possible. You can not block purchase account for any case.
    It is standard and set at Company Level........
    Regards,
    Rahul

  • FMS to Display Item group UDF value

    Hi,
    I have created Title level udf named U_WP in the item group table. Each group wise i have entered diferent values in this field.
    I have created one more title level UDF in item master by same name U_WP.
    I want FMS to select the UDF value from U_WP in OITB to be displayed in U_WP in OITM when when ever user select the
    respective item group in item master while adding new code.
    swap

    Hi Swap,
    I've tested the query below and it should give you what you need:
    SELECT T0.\[U_WP\] FROM OITB T0 WHERE T0.\[ItmsGrpCod\] = $\[$-39.0\]
    A couple of things, make sure both the Item Group UDF and Item UDF are setup as the same structure (type and length).
    Set the formatted search on the Item UDF so that it refreshes when the Item Group changes.
    That should give you what you need.
    Regards,
    Adrian

  • Using a text file to provide paths for copy-item

    OK, please don't beat me over the head too much for this.  I've been trying various methods all day and nothing seems to be working.  I have a text file that has a list of folders (full paths including drive letters).  I want to copy all of
    the folders and their contents to another path.  The destination path does not change (d:\temp\destination) but each of the folders in the text file should end up being subfolders of the destination
    Sources:
    d:\source1 (has file01.txt, file02.txt)
    d:\source2 (has file03.txt, file04.txt)
    Destination
    d:\temp\destination
    Should end up with something like
    d:\temp\destination\source1\file01.txt
    d:\temp\destination\source1\file02.txt
    d:\temp\destination\source2\file03.txt
    d:\temp\destination\source2\file04.txt
    I've tried
    Copy-Item -Path D:\Temp\paths.txt -Destination D:\Temp\attachments -recurse -Force
    which just copies the file that contains my paths.
    I've tried
    foreach($line in (Get-Content -Path D:\Temp\paths.txt)){$dest_folder="D:\Temp\destination" | Copy-Item -path $line -destination $dest_folder -force -recurse}
    I get an error that says
    Copy-Item : The input object cannot be bound to any parameters for the command either because the command does not take
     pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
    Would anyone mind helping me out here?  If I need to create a file that has the source foldername as well as the destination path, I can do that, I just figured there has to be a way to specify a base directory and let powershell do its thing from there.

    try
    $SourcesFile = ".\sources.txt"
    $Root = "d:\temp\destination"
    foreach ($Source in (Get-Content -Path $SourcesFile)) {
    $Destination = Join-Path -Path $Root -ChildPath (Split-Path -Path $Source -Leaf)
    Copy-Item -Path $Source -Destination $Destination -Recurse -Force
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Changing an Item Group Name-any knockon affects ?

    Hi,
    If we change an Item Groupd name what-if any- would be the affect? Anything to worry about or is it simple a matter of changing the name when and if we choose to ?
    Thank you,
    MB

    Hi Methew,
    If u asking simply to change the name of item group then it will change automatically the name of item group selected in item master only. there will not any other change configured in the system
    Piyush

  • Script to copy Layer/Group to another Open Document?

    Hi, I know this topic has been covered many times before. But to clarify, here's what I'm wondering:
    Copy the active layer/group to another open document in Photoshop. The simple way is to go to "Layer/Duplicate Layer..." . But this is very tedious. For starters, when you choose that method, and then select the document that you'd like to copy to via the pull-down menu, it successfully copies the layer/group to that document, but it doesn't auto-switch (activate) to the document it was just copied to. You have to hit "Ok", and then manually search through the open documents list via (Window/*choose your document*) to get there. This is a nightmare when you're trying to do this many times.
    Here is what I am wondering:
    Is it possible to:
    a) copy the active layer/group to the clipboard/memory
    b) switch to another existing document in Photoshop *via a custom menu* which shows all existing documents
    c) once switched to the new existing document, paste that layer/group from the clipboard into that document
    ..is that possible?
    At the very least, are there any scripts that anyone knows of that allows the user to switch between existing documents via a custom menu instead of going to Window/*choose your document* ?

    This might help with Groups and some other kinds of Layers.
    But it takes the easy route with the target file by using the name to identify it.
    // some amendments to pixxxelschubser’s code;
    // 2014, use it at your own risk;
    #target photoshop
    var aDoc = app.activeDocument;
    var AllDocs = app.documents;
    var actLay = aDoc.activeLayer;
    var theIndex = getSelectedLayersIdx();
    if (AllDocs.length > 1) {
    var itemDoc = null;
    var win = new Window("dialog","Copy the active layer");
    this.windowRef = win;
    win.Txt1 = win.add ("statictext", undefined, "Paste in which open document?");
    win.NewList=win.add ("dropdownlist", undefined)
    for (var m = 0; m < AllDocs.length; m++) {
    win.NewList.add("item", AllDocs[m].name)
    win.NewList.selection = 0;
    itemDoc = win.NewList.selection.index;
    win.cancelBtn = win.add("button", undefined, "Abbruch");
    win.quitBtn = win.add("button", undefined, "Ok");
    win.defaultElement = win.quitBtn;
    win.cancelElement = win.cancelBtn;
    win.quitBtn.onClick = function() {
    win.close();
    win.NewList.onChange= function () {
        itemDoc = win.NewList.selection.index;
        return itemDoc;
    win.show();
    // duplicate layers;
    for (var n = 0; n < theIndex.length; n++) {
    duplicateLayer (theIndex[n], String(win.NewList.selection))
    app.refresh();
    } else {
        alert ("No other documents open")
    ////// duplicate layer //////
    function duplicateLayer (theIndex, theDoc) {
    // =======================================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc7 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
        ref3.putIndex(charIDToTypeID("Lyr "), theIndex);
        desc7.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T  " );
            var ref4 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref4.putName( idDcmn, theDoc );
        desc7.putReference( idT, ref4 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc7.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc7, DialogModes.NO );
    ////// by paul mr;
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
            desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                  activeDocument.backgroundLayer;
                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
          }else{
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
            ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
            try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
            }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;

  • Item Description change at marketing Document

    Hi experts ,
    I have a typical scenario . Let me describe in detail .
    For example --
    For Customer A -  Item A is called as Apple
    For  Cusotmer B -  Item A is called as Banana
    Similarly Customer C......D,E......
    And user need that information at  marketing document .
    My initial though that  when I do SO - I will change item description useing Ctrl +tab feature  and issue will be solved . But Typing  has created a lot of issue . So I need to make it automatic .
    If I select customer A , Item A ....It identifies Item Description should be  populate  as Apple
    Similiarly
    If I select customer B , Item A ....It identifies Item Description should be  populate  as Banana
    As of now , Apple  , Banana is not stored anywhere .. I can utilise UDF or UDT ....
    Can you throw some light on this scenario ?
    Thank you
    Bishal

    Hi Brother
    Please try this
    U can change the item code for every BP in Documents according to your need
    Use the functionality of BP catalog  number
    Inventory > Inventory management > BP catalog number
    Here u can set catalog according to item per BP and also BP per item
    For example u have 10 items that are named differently for 10 BP
    First select the item tab select one of 10 item in header level
    And all 10 BP in row level name them under BP catalog no.
    After that do that for rest of nine item
    When u want this functionally to work
    Open the document  in which you want to change name according to BP
    Like all sale doc or purchase doc .
    In form setting in document  tab go to  general tab and check Display BP Catalog Number
    Do the changes after selecting the item in document other wise only those item will appear for which u have given catalog No for that BP
    Tell me if it does not work
    I will help u out
    Thanks
    Avtar Singh Saini

  • Item text inconsistency for multiple item text in CRM Billling document

    Hi Experts,
    I am facing problem in adding item text in CRM Billiing document in Web UI.There are 3 line items in my billing document and their item text gets determined from Billing due list items but there is a requirement to change the item text at billling documnet level also to populate it in the invoice.Here comes the problem when I change item text of first item system alllows me to change in text type Sales Text but when I am doing the same with suceeeding items it throws me a exception like this.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Entry parameter ES_KEY of method CL_CRM_GENIL_CONTAINER_OBJECT->GET_KEY contains value , which is not allowed
    Exception Class CX_SY_IMPORT_MISMATCH_ERROR
    Error Name CONNE_IMPORT_WRONG_OBJECT_TYPE
    Program CL_CRM_GENIL_CONT_SIMPLE_OBJ==CP
    Include CL_CRM_GENIL_CONT_SIMPLE_OBJ==CM007
    ABAP Class CL_CRM_GENIL_CONT_SIMPLE_OBJ
    Method IF_GENIL_CONT_SIMPLE_OBJECT~GET_KEY
    Line 18 
    Long text During IMPORT it was ascertained that the object in the dataset has a different object type to the target object, or the structure of the complex object is not compatible with the structure of the target object. The target object has either a different length, a different number of decimal places or a different data type to the object that is to be imported.
    Error type: Exception
    Your SAP Business Server Pages Team
    This change in item text only works for first item and gives exception for all below items,Is this a standard SAP functionality or what can be done as same thing can be done from back end.

    Hi,
    The above given thread is the perfect solution for your requirement.
    Defaulting some data in the text field means, either you can use the the Substitution / BTE.
    Using the substitution, system not allows you to change the text field in case of any modification you want. But with the BTE you can specify only at the time of the document posting.
    BTE is the best option in this case.
    VVR

  • Table for line item in F-47 Display Document - Down Payment

    Hi,
    Can anyone please tell me from which table can I pick the values for line items. I'm developing a report in smartforms for down payment request. For header items I found out that the values are stored in table - BKPF.
    Please help..
    Regards,
    Sriram

    Hi,
    Go to Logical database through SE36 and give KDF for vendor and DDF for customer. You will get the details of tables there.
    Regards
    shankar

  • Finding 'Quantity-On-Hand' for an item group by month

    Hi,
    How can I find ITEM (QOH) "Quantity-On-Hand" at the end of each month using sql? Grouping mtl_material_transactions or mtl_onhand_quantities_detail by MONTH does not give the desired results.
    Thanks.
    - Vijay

    Hi Experts
    Kindly help to generate the statement for a given period with details of QOH as on the First Day of the given period, Transactions IN and OUT during the given period and Closing QOH.
    Warm Regards
    Srinivasan K

  • How to round quantity with FMS for some items in Production order lines?

    Hello,
    How to round the quantity with FMS or SP for only some items in the composition of Production order (lines) and the bill of materials like a box or a stick that should not be with commas.
    Exemple  of Production Order
    P1
      M1 | 234,78
      M2 | 104,04 --> 104
      M3 | 60,7
      M4 | 512, 00
      M5 | 107,67 --> 108
    and others will not be rounded
    Thanks,
    Hafid

    Hi Gordon,
    you're always the first to respond, thank you.
    Its when adding the production order, before its creation or when entering the quantity of product in OWOR.
    Like :
    SELECT CASE WHEN ($[$37.4.0] = 'M2') OR ($[$37.4.0] = 'M5') THEN ROUND (T0.[PlannedQty],0)
    ELSE T0.[PlannedQty] END AS PlannedQty FROM WOR1 T0
    or
    SELECT ROUND (T0.[PlannedQty],0) FROM WOR1 T0 WHERE T0.[ItemCode] =$[$37.4.0] AND (T0.[ItemCode] = 'M2' OR  T0.[ItemCode] = 'M5)
    Thanks,
    Hafid

  • Search for a word or name in a document on the internet with ios 7.0.4

    Oversettelse
    In the previous version, I could search for a name or word in a long document on the internet. I can not now.

    Tap discussions.apple.com at the top of this page so it turns blue. Now type name, tap the tiny keyboard on the lower, right. Now tap find on this page.

  • Since updating can no longer use copy/paste for copying internet material into my Word documents

    There was a recent update on Fox which I automatically downloaded. Now when I attempt to copy select material or articles I find online the usual copy/paste functions no longer work when I try to copy into already established or new Word documents

    I have the same problem.
    All of a sudden, I can't drag or cut&paste anything from the Character Viewer into my word documents.
    I think it changed when I upgraded to Mavericks.
    I get the circle with the line through it when I try.
    I hope that someone reads this and has pity!
    thanks

  • Copy Express Item Groups Transaction revenue Account not Found

    Currently using Copy Express.
    1.  Have successfully loaded COA
    2. Manually entered G/L account determinaition and tax codes
    3. Error below is occuring when trying to Copy Item Groups and Warehouses.  The items groups and Warehosues are failing.
    Transaction created by document was not found, 'Revenue account'.
    NOTE: the accounts determined for each item group in the source database all exist in the target database.
    Can any please assist in explaining why this is happening and how I could prevent this from occuring without having to mannually create warehosues and items?
    Thanks Very much
    Lisa

    Hi Lisa,
    I have a suggestion.
    The Revenue account in question may be problematic.                                                                               
    Can you try to change to another revenue account in your source db, and try to copy warehouse to target DB?                                                                               
    1.goto source db,and search for the specific warehouse and change the         
      revenue account to another account
    2.and copy warehouse to target db 
    Hope this will be helpful.
    Kind regards,
    Willy

Maybe you are looking for