Retrieving sales order info instead of the offer when creating a prod order

Hi,
I cannot create a production order refering to a sales order if this sales order has been created in reference to an offer. This is standard SAP and the following message is displayed: "account assignment cannot be carried out because of different origine number".
Does anyone know how to retrieve the sales order information when creating a production order instead of retrieving the offer information? User-exit?
Thanks,
Ronan

No answer to this post

Similar Messages

  • Error in Forms while creating the trigger- WHEN-CREATE-RECORD

    Hello,
    Right now I am using 11g client side and 10g database.
    I am constantly getting an error while creating triggers in 11g.
    I have created a sequence in SQL developer using the following code:
    create sequence loc_id_sequence
    start with 14;
    After creating the sequence. I am trying to write the PL/SQL code in forms builder for the trigger WHEN-CREATE-RECORD
    declare
    loc_id number;
    begin
    loc_id := loc_id_sequence.nextval;
    end;
    But I have been getting the following error constantly. Can anyone please help me?
    "Error 0 at line 5, column 4
    SQL statement ignored".
    Can anyone please tell me why I am getting that error

    In fact, even I thought there might be some problem with the connectivity with the 10g database and 11g client but the other DB related code works.
    I just have the problem with using sequence for the trigger WHEN-CREATE-RECORD.
    In fact I also tried using WHEN-NEW-RECORD-INSTANCE smart trigger instead of WHEN-CREATE-RECORD for the same sequence. But even that doesn't work.
    Do u have any idea of what that error means?
    "Error 0 at line 5, column 4
    SQL statement ignored"
    Edited by: Pooja 1985 on Feb 26, 2013 5:43 PM
    Edited by: Pooja 1985 on Feb 26, 2013 5:44 PM

  • How to register the recipient when create job by function

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
    Can you tell me how to register the recipient when create the job.
    ( in sm36, it is easily to do but how to do in coding? )
    regards,
    slam

    Hi
    I think in Back ground using the above fun modules you can't send a mail to the receipient.
    see the use of the above fun modules;
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT ybrep
                          WITH < sel Screen>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    Reward points if useful
    Regards
    Anji

  • Retrieve Sale Order Text

    Hi,
      How can i retrieve the sale order text?? Any FM / BAPI available?? OR which table should  i use??  I want to display the fields in the delivery sap script.
    Regards,
    Kit

    Hello Kit,
    There is a function Module called READ_TEXT to get the sales order text.
    you can see the example program in the folowing thread given by Anji Reddy Vangala.
    https://forums.sdn.sap.com/click.jspa?searchID=6591847&messageID=3274740
    He wrote like:
    You have to fetch it useing the fun module READ_TEXT
    double click on that text in SO, it goes to text editor,
    from the menu GOTO -> header
    displays the OBJECT, ID< OBJECT NAME and the Language
    pass them to the fun module and fetch it
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = TEXT_ID
    LANGUAGE = SY-LANGU
    NAME = Same as TDNAME in Save_text
    OBJECT = TEXT_OBJECT
    TABLES
    LINES = LI_LINE
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8.
    Genrally text are stored in STXH tables.
    Regards
    Sasidhar Reddy Matli.
    Message was edited by:
            Sasidhar Reddy Matli

  • How to retrieve  sales Order details from BAPI_SALESORDER_GETLIST

    Hi Experts,
    I am using Visual Studio 2003 and SAP.Net Connector for Microsoft .NET 1.0.3 .
    I need to get the details of sales order.Following is the code snip.
    protected ConnectorDemo2.BAPIRETURN bapireturn;  /*Manually Added */
    proxy.Connection =  SAP.Connector.SAPLoginProvider.GetSAPConnection(this);
    proxy.Bapi_Salesorder_Getlist("0000000006","","","","","","0001","0",
    out bapireturn,ref bapiordersTable1);
    I already check records in SAP R/3 system for data Cust No=00000006 and Sales Org=0001.
    Please let me know about out parameter and if anyone is having correct list of ref and out parameter.
    Help will appreciated and points will rewarded.
    Thanks
    Sunil Pawar
    Edited by: Sunil Pawar on Nov 26, 2008 1:54 PM

    To Solve the problem I created one custome RFC and call BAPI_SALESORDER_GETLIST in it and my problem get solved.
    This is just work around but still not found why no data when using OUT parameter.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
      EXPORTING
        CUSTOMER_NUMBER             = Z_CUSTOMER_NUMBER
        SALES_ORGANIZATION          = Z_SALES_ORGANIZATION
    IMPORTING
      RETURN                      =
      TABLES
        SALES_ORDERS                = Z_SALES_ORDERS
    Thanks
    Sunil Pawar

  • How to retrieve sales order line type

    Hello,
    Maybe I found a workaround for the previous issue but I faced a new problem (matrix of form 139).
    I tried to read the matrix column 257 but it's always blank even if the row is a text row (of type = T).
    I need to exclude this type of line in a loop.
    Is there a way to do this ?
    Please help me.
    Best regards.
    Andrea

    Hi Andrea,
    Line Status field is not linked to the Type of row. Line status is O or C - Open or Closed. If all lines are closed then the document will close.
    Try writing 2 queries like this
    select * from RDR1 where DocEntry = '4'
    select * from RDR10 where DocEntry = '4'
    where 4 will be the doc entry of the Sales order which contains Sub types. In the Table RDR10, you'll find LineType which contains the types.
    Can you tell me what do you need the line Type for so that i can give you a better solution?

  • How do I get Mozilla to use the page name for the actual bookmark name instead of the URL when I bookmark a page

    I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.

    Does this happen with each bookmark?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Using a photo as the background when creating a book.

    In the 08 version, the photo background could be used no matter which page layout was selected. For some unknown reason with 09, you can only use a photo as the background when you select "two" and click on the choice that has one picture frame as the page layout. When other layouts are selected, to include "two" with the two pictures frames, when you try to drag a photo into the background it will take that picture and add a photo to the page, but not as the background. Instead of having a photo in the background you went from two frames to three, or three to four, etc., with a blank background.

    I got it to work. I went to another theme, added the photo to the background and then went back to the Travel theme. I got it to stick. I also could change the layout to more or fewer photos per page and keep the background photo. Not the best solution but at least it worked. Be sure to post a bug report at http://www.apple.com/feedback/iphoto.html
    OT

  • Sales area determined based on user/employee when creating an account?

    Hi Experts.
    Can anyone tell me how to implement the following:
    When a user creates an account, the sales area should be filled out with the sales area of the employee of the user. In case of more sales areas, a pop-up should appear to choose from (simlar to transactions).
    Thanks and regards, Mia

    Hi Mia,
    Pls inform if you found teh solution for above.
    Even we are facing the same problem of getting User Default sales Area for BP.
    Regards,
    Rahul

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • Illustrator CS6: Missing small pixels box that should follow the cursor when creating objects

    Somehow I've managed to disable a feature in Illustrator CS6 that does two things: 1) it causes a small box to follow the cursor when I'm drawing an object 2) the light green lines or x's are gone now, too. How can I get them back? Are they only visible under certain circumstances?  Thanks!

    SmartGuides is not simply "on" or "off". It has settings for what displays. Check your SmartGuides preferences.
    JET

  • Error  "An error occurred on starting the workflow" when creating Timesheet

    Hi..I have copied a standard task for Timesheet approval...and have assigned to profile..but when creating timesheet i'm getting error as "An error occurred on starting the workflow" .. could anyone help me out from this issue..
    Thanks
    shankar

    HI Shankar,
    I have the same error you listed here for a few employees. Could you please tell me how you resolved this? 
    I've searched other posted messages and look like we've set up the timeshee approval correctly, but still have this error.
    Any information provided is appreciated.
    Thanks,
    Tam

  • ADF form don't show the ADFSelectOneChoice when create action performed

    I have a jspx page that show the data without problem in a form. But when the CREATE action is performed the ADFSelectOneChoices disappears.
    I'm using Jdev 11.1.1.0.1, EJB3, JPA, JSF, ADF.
    Help please!
    Thanks!

    For exemple:
    I used this tutorial: http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
    I edited query.jspx
    I added a "CREATE" button and one more field (a ADFSelectOneChoice with DEPARTMENTs)
    It works well. But when i push the create button the ADFSelectOneChoice disapears.
    The fields that make reference to other tables disappears when CREATE is performed.
    Edited by: julius.bernardo on Mar 26, 2009 5:27 PM

  • Problem with the audio when creating optimized media...

    I am having a problem with the quality of my audio after I transcode the clip to optimized media. It sounds fine originally, and I have listened to the clips when I first import them, and they sound fine, it's only after they're optimized that they sound bad. There is a clicking sound that is randomly distributed throughout the clip. I thought at first that maybe this would be fixed after I published the content, as the whole point of optimized media was to make it lesser quality to improve performance while editing, but even when published the clicks could be heard distinctly. I tried editing the content with out optimizing the mdeia, but the editing is too slow as I am working with high quality media.
    Has anyone had this problem? Anyone have an idea on how to I might be able to fix this?

    One way would be to make sure the Preferences window under the Import tab says not to use optimized media.  Then go to the timeline and Control Click the clip.  Choose Reveal in Event Browser.  This will select the clip in the event browser. The originally specified in and out points will be represented in the yellow border on the clip.  Then in the File menu choose the Import ... Files and specify the original media.  The clip in the event browser will be filled in again from the new import, and the timeline clip will also be replaced with the new material. In and out points will be honored and effects will still be in place on the timeline clip. 
    Now, I use this procedure to reconnect clips all the time ... I have not used it before to switch formats from optimized to original media so there is a little guessing here on my part.  The option, of course, is to simply reimport from a camera archive or the camera of the SD card into a new clip then replace everything ... Again, this would need to be done having turned off the preference item to use optimized media.  Hope this helps a little.  Best wishes.
    stephen

  • Retrieving Sales Orders from Pricing Conditions

    I need to retrieve pricing condition number KSCHL from tables A906, A908, A966, A967 and A997 based on Sales Contracts (VBAP-VGBEL). However all the above tabels do not have a Sales contract reference. Some have while some have MATNR and KUNNR.
    Can anyone suggest a FM or a BAPI that can get me the price condition numbers related to a Sales contract.
    Thanks in advance.
    regards,
    Soumya

    Hi there,
    Give us some more feedback what your purpose is ...
    Do you want to get information about existing orders or do you want to create new ones based on contracts, etc...
    Without knowing your purpose it is quite hard to answer this one ...
    Thx
    Steven

Maybe you are looking for