How to generate a trigger in the CIF on ECC custom field ?

Hi
We have an intercompany scenario in ECC where we use a custom transaction to convert the stock transfer order into a sales order (at the source plant).
As the 2 objects are not technically linked in ECC, we modified the CIF in order to delete the stock transfer during the transfer for the Source location in APO, so we only see the sales order at this location and not anymore the STO.
However this custom transaction is not modifying any standard field in the stock transfer at the point of conversion, therefore there is no trigger to APO generated.
Do you know an easy way to generate this trigger ? we tried with the bapi po_change to modify some standard fields, but no field is really secured to play with. We'd rather prefer to generate a trigger out of a custom field.
Thanks in advance,
Fanny

Hi Fanny ,
Here is a thought .
You want to delete the sto in APO because  you dont want the demand to double dip. That is after you have converted the sto to a sales order using your custom program , unless you delete the sto your demand will show up both in so and sto which is necessarily a duplication of demand.
But there is no need to delete the sto for that. You can make the demand element of the sto as not relevant to pegging . After converting your sto to so , if you mark the demand of the sto as non relevant to pegging then , sto demand will not be accounted for when calculating the stock availability and the demand element will not be displayed in the planning book also. So the only impact in this case will be that the order will be visible in the receipts view though it will not affect the stock . I think this will serve your purpose. Just give it a thought.
But if you decide to follow this approach, you have to put in custom code to pick the relevant sto's and mark them as non- relevant to pegging. Also you have to configure the ATP category corresponding to the sto to pick the confirmed quantity and display the same in the planning book . Otherwise the sto demand will show up in the planning book.
Thanks
Saradha

Similar Messages

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How to generate PNG file to the disk folder by IBOT?

    Is there a piece of code in JavaScript on how to generate PNG file to the disk folder by IBOT?
    thanks a lot

    Please disregard this message. The information below is only semi-accurate. When I get some kinks worked out I'll edit this again. -Bill
    FYI,
    Don't really know if I'm adding anything useful but here it is. I use NetBeans and I simply added an images folder so now I have my package (deckofcards) and a sub package deckofcards.images.
    The image:
    back: Image {
                url: "{__DIR__}images/B.JPG",
                backgroundLoading:true
                placeholder:bind placeholder
            };works and the value of "{__DIR__}images/B.JPG" becomes
    <CARD backUrl="jar:file:/C:/Users/Bill/Documents/NetBeansProjects/DeckOfCards/dist/DeckOfCards.jar!/deckofcards/B.JPG">
      ...when I marshal. That string (backUrl) will unmarshal correctly and can be use in the url variable to display and image too.
    -Bill
    Edited by: bthayer on Feb 21, 2009 6:04 AM

  • MRP Generated production orders greys out Sales Order and Customer fields

    Hi there,
    The MRP generated production orders greys out the Sales Order and Customer fields for some reasons. These fields are really important as they link the production order to the sales order and the customer's purchase order. Could the SAP team please fix this or advise alternative way of getting the sales order and customer info on production order? Thanks.

    Hello
    MRP only poulated this fields in case the material master has been set up with a strategy group hich is make to order (normally 20). Otherwise MRP summarizes all the requirements from different Customer orders and creates a production order
    Stephan

  • How to generate current time in the format yyyy-mm-ddThh:mm:ssZ in the xslt

    Hello,
    i am tring to generate current time in the format yyyy-mm-ddThh:mm:ssZ in my xlst file.
    the following info are necessary,
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:attribute name="generationDate"><xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy-mm-dd hh:mm:ss'), java:java.util.Date.new())"/></xsl:attribute>
    but java SimpleDateFormat doesnt support yyyy-mm-ddThh:mm:ssZ.
    thanks in advance.

    Hi wwuest,
    I use the following code to generate such a date format :
              try {
                   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                   Date date = sdf.parse(strDate);
                   sdf.applyPattern("yyyy-MM-dd'T'hh:mm:ss");
                   strDate = sdf.format(date);
              } // catching the parse exceptionMaybe you could try this method and see if it pass through xsl with :
    new SimpleDateFormat("yyyy-MM-dd").applyPattern("yyyy-MM-dd'T'hh:mm:ss'Z'")Bye

  • How to enhance the standard search with custom field?

    Hi all,
    I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
    I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
    I'm actually a bit confused to understand the correct procedure.
    Can someone please help me with a generic procedure to enhance the standard search with a custom field?
    Thanks in advance.

    Hi Maren,
    Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
      Add new field using Append structure of type ‘XXX’ in search
      Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
      Put your logic in BADI implementation – SEARCH method
      Add it in WebUI configuration
      Remove the operator if required
    Regards,
    Swadini Sujanaranjan

  • ME51N - need to concatenate the PR # & the item # into a custom field.

    Hi All,
    I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

    Hi All,
    I need to concatenate the PR number and the item number into a custom field in the customer data tab in transaction ME51N. I been looking at some user exits, but the problem is that when I try to use BAPI_PR_CHANGE in a user exit the BAPI failed, because the PR has not been committed to the EBAN table and it cannot fined it. The custom field is in the EBAN table. The other problem is that most user exits don't have access to the PR number. Can anyone tell me how I can update the custom field on a new PR creation after I click the save button?

  • XRPM: Need to find the BADI for adding custom fields to  master data

    Hi,
      We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
      We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system  by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
      Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
      Thanks

    Dear Arunava,
    1) In your R3 goto  SE16 --> open table ROOSOURCE.
       Search for your OLTP source...eg: 0RPM*
       The column  EXTRACTOR will give you the module name.
    2) Also look/follow the link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
    Currently available BAdIs include:
    RPM_BUPA_CUST_FIELDS BUPA customer fields
    RPM_CALC_BUPA_BPFTE Calculate the business partner availability
    RPM_CALC_STAFF_ICON calculate the staffing icon
    RPM_CREATEUSR_NAME Generates user names
    RPM_HR_IN_IF001 Customer exit for inbound time processing
    RPM_HR_IN_IF002
    RPM_HR_IN_IF003
    RPM_HR_IN_IF004
    RPM_HR_IN_IF005
    RPM_HR_IN_IF006
    RPM_INTEGRATION_OPTS get and set the project integration options
    /RPM/OBJECT_SERVICES Object support services
    /RPM/PERSON_CUST_FLD Resource customer fields
    RPM_PROCESS_DATA Inbound processing of time data by customer
    Good Luck, BB

  • Where it is possible to change the value separator in Custom Field?

    Hello,
    This is a question around the "Custom Fields" and "Lookup Table"
    I linked a "Custom Field" to a "Lookup Table".
    I select the option "Allow multiple values to be selected from lookup table"
    When I used this "Custom Field" in a view, the selected values are separated by a comma ",".
    Where it is possible to change this value?
    I saw another project server where the character is a semi-column ";" and I would like to test with ";".
    Thank you in advance
    Pascal Jean

    Hi,
    This will be triggered by your regional settings.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |
    Hello,
    Thank you for the answer.
    Do you mean the "local regional settings"?
    Because, depending on the PWA site I'm connected to I don't have the same values. I'm obviously using the same workstation.
    Regards

  • How to generate transparent preview of the document?

    Hi all,
    I would like to generate trsansparent preview of an document in PNG file. Normal (not-transparent preview) I am doing by JavaScript like it is described below:
    var myDocument = app.open(File(app.scriptArgs.getValue("documentPath")));
    myDocument.exportFile(ExportFormat.jpg, File(app.scriptArgs.getValue("thumbnailPath")), PDFExportPreset.acrobatCompatibility);
    myDocument.close(SaveOptions.no);
    The result is normal JPG file. But I would like to get a transparent image. How can I do this?
    Thank you for all information!

    Hmm could you give any example of code? According to the scripting reference there is nothing like "ExportFormat.PNG_FORMAT" - I cannot even find this in Google. On official Adobe webpage in the scripting reference I can find:
    Name Description Value
    TAGGED_TEXT
    Exports to a tagged text file with a TXT extension.
    1416066168  =                 'Tgtx'
    PDF_TYPE
    Exports to PDF format.
    1952403524  =                 't_PD'
    EPS_TYPE
    Exports to EPS format.
    1952400720  =                 't_EP'
    RTF
    Exports to rich text format (RTF).
    1381254688  =                 'RTF '
    SVG
    Exports to SVG format.
    1398163232  =                 'SVG '
    SVG_COMPRESSED
    Exports to SVGZ format.
    1398163267  =                 'SVGC'
    TEXT_TYPE
    Exports to text (TXT) format.
    1952412773  =                 't_te'
    XML
    Exports the document's tagged content to XML.
    1481460768  =                 'XML '
    JPG
    Exports to JPEG format.
    1246775072  =                 'JPG '
    INDESIGN_INTERCHANGE
    Exports to InDesign Interchange (INX) format.
    1229871136  =                 'INX '
    INDESIGN_SNIPPET
    Exports to InDesign Snippet (INDS) format.
    1936617588  =                 'snpt'
    INCOPY_CS_DOCUMENT
    Exports to InCopy CS document (INCD) format.
    1702126436  =                 'etcd'
    INCOPY_DOCUMENT
    Exports to InCopy document (INCX) format.
    1702126456  =                 'etcx'
    and this is all (http://www.indesignscriptingreference.com/CS3/JavaScript/ExportFormat-enum.htm). When I am trying to use the code on a group of objects, it is failing. The code:
    var myDocument = app.documents.add();
    myDocument.pages.item(0).place(File(app.scriptArgs.getValue("snippetPath")));
    g = myDocument.pages.item(0).groups.add (myDocument.pages.item(0).allPageItems);
    g.exportFile(ExportFormat.PNG_FORMAT, File(app.scriptArgs.getValue("pngThumbnailPath")), PDFExportPreset.acrobatCompatibility);
    myDocument.close(SaveOptions.no);
    And the error:
    Error Number: 55
    Error String: Object does not support the property or method 'PNG_FORMAT'
    Line: 6
    Source: g.exportFile(ExportFormat.PNG_FORMAT, File(app.scriptArgs.getValue("pngThumbnailPath")), PDFExportPreset.acrobatCompatibility);

  • How to generate a mail into the SAP Inbox

    Hi everyone,
    I have an MM Workflow that is starting correctly and a mail is supposed to be generated in the user Inbox in SAP after the completion of a material enhancement but it does not. The Workflow was copied from another system and it was working fine.
    I tried to see any event (step) that is sending a mail in the Workflow and I found only 1 but it seem correctly configured from what I can see. I am not even sure this is the right event that I am looking at.
    Does anyone have an idea of what I should look for and how I could manage to see why no mail is generated?
    I am still a beginner in Workflow so try to give me as much detail as possible.
    Thank you in advance for your answers.
    Best regards,
    Sylvain

    Hi Sylvain,
    The issue could be at many places.
    Check the workflow step that needs to send the mail to the desired user.
    Check if the agent who needs to recieve the mail is pesent in the current system. If the user is not hard-coded, check how the user is getting fetched in the step. If it is through rules, etc you need to debug the same.
    Also check the authorizations of the user in SU01. Check the agent assignment for the task as well.
    You can find much information in the workflow  log to start with the debugging.
    Hope this helps!
    Regards,
    Saumya

  • How to Generate PDF file on the server

    Hello Everybody !
    I Need to generate a PDF File on the server, and I'm usin the command :
    "OPEN DATASET p_path FOR OUTPUT IN BINARY MODE message l_verro .
           LOOP AT t_lines.
             TRANSFER t_lines-tdline TO p_path.
           ENDLOOP.
           CLOSE DATASET p_path.  "
    The File was generated, but is corrupt . Don't Open the file, It's wrong.
    When I use the function GUI_DOWNLOAD the file is generated  right. But in the server not.
    Can someone help me please ??
    Best Regards,
    Wagner Duarte

    Hi.
    did you check this post?
    Download PDF File to SAP Application Server
    It doest the same as you are asking.
          " Write PDF Binary Data to App Server
        OPEN DATASET lv_filename FOR OUTPUT IN BINARY MODE.
        IF sy-subrc = 0.
          LOOP AT lines INTO ls_data.
            TRANSFER ls_data TO lv_filename.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET lv_filename.
    Regards
    Miguel

  • How can HitTestObject can trigger around the Object and not the rectangle of selection of the object ?

    Hi !
    I am doing a little mini-game but i have a problem with HitTestObject and his hitbox
    Look at those images :
    Here HitTestOject == 1 but it should be i want HitTestOject to react like this :
    This is weird because for me the wall is well cropped, because if i select a space near the rectangle it doesn't trigger it.
    Thanks !

    http://www.mikechambers.com/blog/2009/06/24/using-bitmapdata-hittest-for-collision-detecti on/

  • How to set partial trigger of the component which is in different Page Fragements

    I want to set the partial trigger of a ADF control which is in different page fragment.
    Would you please help me regarding this.

    Hi,
    so fragments on a page are within regions and your requirement is to refresh a component in region A in response to an action on a component in region B. If this is correct, then the choice is
    1. use contextual events
    2. use a managed bean that is injected to region B to notify the parent page (manged bean in view scope) about a component change. Now this parent page can refresh the region B container performing e.g. a PPR or a full refresh
    Frank

  • How to generate random numbers of the same at each time of execution of thm

    dear friends
    i am facing a problem that the random numbers generated at time of each exectuion of the program are not the same, i want to generate the same random numbers every time time i run the program. i need your help. i am giving the code in c++ if anybody can help in providing the solution so that i get the same random numbers at every run of the program. waiting for your help
    wit regards
    jaya shankar
    #include<iostream.h>
    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>
    #include<math.h>
    class density
    int s[150][150],parent[150][150],i,j,l,n,loop;
    public:
    void bd(void);
    void css(void);
    void density :: bd(void)
    cout<<"ENTER THE POPULATION SIZE = ";
    cin>>n;
    cout<<"\nENTER THE NO.OF LOOPS = ";
    cin>>loop;
    for(i=0;i<n;i++)
    for(j=0;j<80;j++)
    s[j]=rand()%2;
    cout<<"s:"<<s[j];
    void density :: css(void)
    int a,b;
    float c;
    for(i=0;i<n;i=i+2)
    b=rand()%100;
    cout<<"random b="<<b;
    main()
    density d;
    d.bd();
    d.css();

    Do not randomize the random number interface when you start your application. When the random number interface is not randomized when starting you get the same sequence of numbers each and every time you use it.

Maybe you are looking for