Sales order prod costing error and extracting the cost $ value

We are doing sales order product costing via custom program which internally calls FM CKKA_Costing_Process, CK_F_SD_ORDER_CALC and all other std processes and calculates the cost. In the event of error, the calculated dollar value is getting cleared. Is there any way we can find and extract the cost $ value in case of costing error?

Owen,
That's fine. Not worried about the error. But business needs the cost calculated with the error. Is there anyway we can get the cost $ while error. VA02 costing returns error too, but we have the cost updated.
Regards
Gopi

Similar Messages

  • Subsinvprocess in the sales order header --- billing tab and in the custom

    Hello All
    there is a field SubsInvProcess in sales order header - billing- tab and in the customer master - billing tab
    what was the functionality of this field. I never worked with it
    kindly help on this one. 
    Thanks,
    prasad

    Dear Vara prasad,
    The value of this field is if you want to print the invoices that are being posted manually you can activate this field.
    It will be directly proposed from customer master to sales document, where you can change.
    Please let me know if you want any further clarifications.
    Please go through this thread also for further reference.
    Clarification for usage of Subsequent Invoice Processing in Customer Master
    Thanks&Regards
    Raghu.k

  • Runtime error while creating sales order in AFS(Apperal and Footware Sol)

    Hi everybody,
         While creating a sales order in AFS(Apperal and Footware Solutions) i am getting runtime error.In the error the error description is "CIF_SNPGRPID is unknown". Can anybody tell me how i can resolve this.And i am getting this runtime error when i am using AFS material only.When i am using standard material i am able to create the sales order.
    Thanks&Regards,
    Rambhupal

    Hi Rambhupal,
    Check all the conditions related to Prerequisites for AFS material.
    Go to SM21 transaction code and analyze the details.
    Bye,
    Muralidhara

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • Get the sales order text from ITS and save it in SAP.

    Hi,
    I have created an application to create sales order from ITS. In this app i'm having a text field to fet the header text for the order. & after that I'm calling an RFC which has a BAPI to create the sales order.
    Now, when i enter the text for header texts in frontend (separated by ENTER), then it saves only the first line of the text.
    I've tried using :
    SPLIT ordernotes AT cl_abap_char_utilities=>cr_lf INTO TABLE t_ordnotes.
    and using FM: CREATE_TEXT,
    but still, it is saving only the first line.
    Can anyone please help me with this ?????
    Its urgent.
    Thanks in advance,
    Hemant.

    Hi
    See the sample BDC program that is used to upload the Material LONG Texts into SAP using MM01 Tcode
    check this may be helpful
    REPORT zmm_longtext
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab1 OCCURS 0,
            matnr    LIKE mara-matnr,    " Material
            text     LIKE tline-tdline,  " Long Text
          END OF itab1.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,    " Material
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras,   " Language
           gv_matnr TYPE matnr.
    Constants
    CONSTANTS:
    Object ID for Long Text of Material Basic Data 1
      c_best     TYPE thead-tdid VALUE 'GRUN',
      c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      SORT itab1 BY matnr.
      LOOP AT itab1.
        CLEAR gv_matnr.
        SELECT SINGLE matnr INTO gv_matnr
           FROM mara WHERE bismt = itab1-matnr.
        IF itab1-text NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text.
          APPEND itab.
        ENDIF.
        CLEAR itab.
      ENDLOOP.
      DELETE itab WHERE matnr EQ ' '.
    Upload the Texts
      SORT itab BY matnr.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        dl_name = itab-matnr.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Material'(001),
                 itab-matnr.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Material'(002),
                 itab-matnr.
        ENDIF.
        AT END OF matnr.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be

    We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be able to put a date in another field that MRP can read in the event we choose to manufacture based on another date.  For example, early.
    Any help would be appreciated.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Sales Order with WBS - Error CJ 070

    Hello Friends,
    I have got one typical requirement from our client.
    The client is in cosmetics business and would be spending huge amount for promotional campaigns. Now the client would like to collect all the costs under WBS tool as statistical and wanted to link the WBS to the sale order. So that we can compare the sales generated for each campaign.
    Now when I try to simulate the scenario, the system is throwing the following error message:
    Message no. CJ070
    Diagnosis
    You are attempting to assign a sales document to WBS element I/0065-2-1. WBS element I/0065-2-1 is a statistical WBS element. In this case you cannot assign a sales document item.
    And in addition to this, the client does not want to use other objects like internal order etc. for some other reasons.
    Can you please advise any suggestions?
    Regards,
    Santosh Varanasi

    Hello  Santosh ,
    Could you please refer to the SAP note 43875, which explained the
    system behaviour about CJ070?
    In the standard system, when creating a sales order and trying to assign
    the sales order item to a statistical WBS element, error message
    CJ 070= "WBS element & is a statistical WBS elemement" is displayed.
    A statistical WBS element cannot be the account assignment
    object for a sales order item as correctly indicated in the attached
    note 43875. This is the standard system behaviour.
    We don't recommend you to deactivate the error message CJ070 because of
    the fact that the assigmnet will be checked in the sales order, in the
    delivery - during the PGI and in the billing. Althrough you will be able
    to create a sales order, you will not be able to make PGI (for
    example).
    The only one way to use the statistical WBS element in the sales order
    is to use the statistical internal order in the sales order and
    assign this statistical internal order to a statistical WBS element.
    Best regards,
    Ronghua Fan

  • Deleting Sales Order Details using BAPI_SALESORDER_CHANGE And Reinserting

    Hi All,
    I need to <b>change a Sales Order</b> in such a way that I would <b>delete all the existing Line Items</b> of that SO And <b>then reinsert new Line Items</b> as generally is the practice of saving a document.(Update Header-Delete Old Item Entries-Reinsert New Present Entries).
    I coded a small test program in ABAP using the <b>BAPI_SALESORDER_GETLIST And BAPI_SALESORDER_CHANGE</b>.
    In order to affect the Qty I have to update the Schedule Parameter also of the BAPI_SALESORDER_CHANGE Function.But this causes a new entry in VBEP.
    eg:
    <b>Before BAPI Calls</b>
    SO-Number:9001
    Header:9001,etc......
    Detail:ItemNo=10,Material=xyz,TargetQty=100,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=100,etc...
    I coded the program such that
    1.I <b>Get the List of Items</b> using BAPI_SALESORDER_GETLIST.
    2.Call the <b>BAPI_SALESORDER_CHANGE</b> filling appropraite   values in Parameters <b>with UpdateFlag = 'D'</b>
    3.<b>Insert new values</b> in OrderItems And Schedule Parameters
    say:
    Detail:ItemNo=10,Material=xyz,TargetQty=25,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=25,etc...
    4.<b>Call the BAPI_SALESORDER_CHANGE</b> filling appropraite values in Parameters <b>with UpdateFlag = 'I'</b>
    <b>The output now becomes.</b>Header:9001,etc......
    Detail:ItemNo=10,Material=xyz,TargetQty=100,etc..
    Scedule:ItemNo=10,Scheduleline=1,Req_Qty=100,etc...
    ItemNo=10,Scheduleline=2,Req_Qty=25,etc...
    Now After Commit when I see my <b>SO it shows me a qty of
    125</b>.
    I am attaching the code for your analysis.
    Thanx in advance.
    *& Report  ZSM_CHANGESALESORDER                                        *
    REPORT  ZSM_CHANGESALESORDER                    .
    DATA:
    For Calling the GetList BAPI Function
      CUSTOMER_NUMBER LIKE  BAPI1007-CUSTOMER,
      SALES_ORGANIZATION LIKE  BAPIORDERS-SALES_ORG,
      IT_SALES_ORDERS LIKE TABLE OF BAPIORDERS,
      WA_SALES_ORDERS LIKE LINE OF IT_SALES_ORDERS,
      IT_RETURN LIKE TABLE OF BAPIRETURN,
      WA_RETURN LIKE LINE OF IT_RETURN.
    For Calling the ChangeFromData BAPI Function
    DATA:
      SALESDOCUMENT LIKE  BAPIVBELN-VBELN,
      WA_ORDER_HEADER_IN LIKE  BAPISDH1,
      WA_ORDER_HEADER_INX LIKE BAPISDH1X,
      IT_ORDER_ITEM_IN LIKE TABLE OF BAPISDITM ,
      WA_ORDER_ITEM_IN LIKE LINE OF IT_ORDER_ITEM_IN,
      IT_ORDER_ITEM_INX LIKE TABLE OF BAPISDITMX ,
      WA_ORDER_ITEM_INX LIKE LINE OF IT_ORDER_ITEM_INX,
      IT_SCHEDULE_LINES LIKE TABLE OF BAPISCHDL ,
      WA_SCHEDULE_LINES LIKE LINE OF IT_SCHEDULE_LINES,
      IT_SCHEDULE_LINESX LIKE TABLE OF BAPISCHDLX ,
      WA_SCHEDULE_LINESX LIKE LINE OF IT_SCHEDULE_LINESX,
      IT_RETURN_CHG LIKE TABLE OF BAPIRET2,
      WA_RETURN_CHG LIKE LINE OF IT_RETURN_CHG.
    DATA:
      IT_RETURN_CT LIKE BAPIRET2.
    PARAMETERS:
      P_SO LIKE VBAK-VBELN,
      P_CUSTNO LIKE  BAPI1007-CUSTOMER,
      P_SORG LIKE BAPIORDERS-SALES_ORG.
    START-OF-SELECTION.
      SALESDOCUMENT = P_SO.
      CUSTOMER_NUMBER = P_CUSTNO.
      SALES_ORGANIZATION = P_SORG.
    Retrieve the Existing Sales Order details for that Sales Order.
      PERFORM GETREQSODETAILS.
    Delete the Existing Sales Order details from that Sales Order.
      PERFORM DELETEOLDSODETAILS.
    Insert New details for that Sales Order.
       PERFORM ADDNEWSODETAILS.
    END-OF-SELECTION.
      PERFORM COMMITTRANS.
    *&      Form  GetReqSODetails
    FORM GETREQSODETAILS .
      CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
        EXPORTING
          CUSTOMER_NUMBER    = CUSTOMER_NUMBER
          SALES_ORGANIZATION = SALES_ORGANIZATION
        IMPORTING
          RETURN             = WA_RETURN
        TABLES
          SALES_ORDERS       = IT_SALES_ORDERS.
    *delete the Sales Order Details of Sales Orders other than the req.One
      IF NOT IT_SALES_ORDERS[] IS INITIAL.
        SORT IT_SALES_ORDERS BY SD_DOC.
        LOOP AT IT_SALES_ORDERS INTO WA_SALES_ORDERS.
          IF WA_SALES_ORDERS-SD_DOC NE SALESDOCUMENT.
            DELETE IT_SALES_ORDERS.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " GetReqSODetails
    *&      Form  deleteOldSODetails
    FORM DELETEOLDSODETAILS .
      DATA: IRECCOUNT TYPE I.
      IRECCOUNT = 1.
    *Clear all the Inernal Tables And Work Areas
    *and Update the SO Header Index
      PERFORM CLEARDATA.
      PERFORM SOHEADERINDEX.
      LOOP AT IT_SALES_ORDERS INTO WA_SALES_ORDERS.
    *Fill the Order Details Index Internal Table
        PERFORM FILLSODELETEDTLS_INDEX_PARAM
        USING WA_SALES_ORDERS-ITM_NUMBER 'D'.
    *Fill the Order Scedule Index Internal Table
        PERFORM FILLSODELETESCH_INDEX_PARAM
        USING WA_SALES_ORDERS-ITM_NUMBER IRECCOUNT 'D'.
      ENDLOOP.
    *call the Sales Order Change Fumction to delete the Existing Data
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT    = SALESDOCUMENT
          ORDER_HEADER_INX = WA_ORDER_HEADER_INX
        TABLES
          RETURN           = IT_RETURN_CHG
          ORDER_ITEM_INX   = IT_ORDER_ITEM_INX
          SCHEDULE_LINESX  = IT_SCHEDULE_LINESX.
    ENDFORM.                    " deleteOldSODetails
    *&      Form  SOHeaderIndex
    FORM SOHEADERINDEX .
      WA_ORDER_HEADER_INX-UPDATEFLAG = 'U'.
    ENDFORM.                    " SOHeaderIndex
    *&      Form  FillSODeleteDtls_Index_param
    FORM FILLSODELETEDTLS_INDEX_PARAM
    USING VALUE(P_ITM_NUMBER) VALUE(P_FLAG).
      WA_ORDER_ITEM_INX-ITM_NUMBER = P_ITM_NUMBER.
      WA_ORDER_ITEM_INX-UPDATEFLAG = P_FLAG.
      APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
    ENDFORM.                    " FillSODeleteDtls_Index_param
    *&      Form  FILLSODELETEsch_Index_PARAM
    FORM FILLSODELETESCH_INDEX_PARAM
    USING VALUE(P_ITM_NUMBER) VALUE(P_RECCOUNT) VALUE(P_FLAG).
      WA_SCHEDULE_LINESX-ITM_NUMBER = P_ITM_NUMBER.
      WA_SCHEDULE_LINESX-SCHED_LINE = P_RECCOUNT.
      WA_SCHEDULE_LINESX-UPDATEFLAG = P_FLAG.
      APPEND WA_SCHEDULE_LINESX TO IT_SCHEDULE_LINESX.
    ENDFORM.                    " FILLSODELETEsch_Index_PARAM
    *&      Form  addnewSODETAILS
    FORM ADDNEWSODETAILS .
      DATA: IRECCOUNT TYPE I, ITEMNO TYPE I.
      IRECCOUNT = 1.
    *Clear all the Inernal Tables And Work Areas
    *and Update the SO Header Index
      PERFORM CLEARDATA.
      PERFORM SOHEADERINDEX.
      WHILE IRECCOUNT <= 1.
        ITEMNO = IRECCOUNT * 10.
    *Fill the New Order Details in the Internal Table
        PERFORM FILLSODTLDATA USING ITEMNO 'TEST FG' 37 .
    *Fill the Order Details Index Internal Table
        PERFORM FILLSODELETEDTLS_INDEX_PARAM USING ITEMNO 'I'.
    *Fill the New Schedule Details in the Internal Table
        PERFORM FILLSOSCHDATA USING ITEMNO IRECCOUNT 37 .
    *Fill the Order Scedule Index Internal Table
        PERFORM FILLSODELETESCH_INDEX_PARAM
        USING ITEMNO IRECCOUNT 'I'.
        IRECCOUNT = IRECCOUNT + 1.
      ENDWHILE.
    *call the Sales Order Change Fumction to Insert New Data
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT    = SALESDOCUMENT
          ORDER_HEADER_INX = WA_ORDER_HEADER_INX
        TABLES
          RETURN           = IT_RETURN_CHG
          ORDER_ITEM_IN    = IT_ORDER_ITEM_IN
          ORDER_ITEM_INX   = IT_ORDER_ITEM_INX
          SCHEDULE_LINES   = IT_SCHEDULE_LINES
          SCHEDULE_LINESX  = IT_SCHEDULE_LINESX.
    ENDFORM.                    " addnewSODETAILS
    *&      Form  clearData
    FORM CLEARDATA .
      CLEAR WA_ORDER_HEADER_INX.
      CLEAR WA_ORDER_ITEM_INX.
      REFRESH IT_ORDER_ITEM_INX.
      CLEAR WA_SCHEDULE_LINESX.
      REFRESH IT_SCHEDULE_LINESX.
      CLEAR WA_RETURN.
      REFRESH IT_RETURN.
      CLEAR WA_ORDER_ITEM_IN.
      REFRESH IT_ORDER_ITEM_IN.
      CLEAR WA_SCHEDULE_LINES.
      REFRESH IT_SCHEDULE_LINES.
    ENDFORM.                    " clearData
    *&      Form  FILLSODTLDATA
    FORM FILLSODTLDATA  USING    VALUE(P_ITEMNO) VALUE(P_MATERIAL)
    VALUE(P_TARGET_QTY) .
      WA_ORDER_ITEM_IN-ITM_NUMBER = P_ITEMNO.
      WA_ORDER_ITEM_IN-MATERIAL = P_MATERIAL.
      WA_ORDER_ITEM_IN-TARGET_QTY = P_TARGET_QTY.
      APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
    ENDFORM.                    " FILLSODTLDATA
    *&      Form  FILLSOschDATA
    FORM FILLSOSCHDATA  USING    VALUE(P_ITEMNO)
                                 VALUE(P_RECCOUNT)
                                 VALUE(P_REQ_QTY)  .
      WA_SCHEDULE_LINES-ITM_NUMBER = P_ITEMNO.
      WA_SCHEDULE_LINES-SCHED_LINE = P_RECCOUNT.
      WA_SCHEDULE_LINES-REQ_QTY = P_REQ_QTY.
      APPEND WA_SCHEDULE_LINES TO IT_SCHEDULE_LINES.
    ENDFORM.                    " FILLSOschDATA
    *&      Form  committrans
    FORM COMMITTRANS .
      DATA:SUCCESSFLAG(1).
      LOOP AT IT_RETURN_CHG INTO WA_RETURN_CHG.
        IF WA_RETURN_CHG-TYPE = 'S'
              AND WA_RETURN_CHG-ID = 'V1'
              AND WA_RETURN_CHG-NUMBER = 311
              AND SUCCESSFLAG IS INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT   = 'X'
            IMPORTING
              RETURN = IT_RETURN_CT.
          SUCCESSFLAG = 'X'.
        ENDIF.
      ENDLOOP.
      IF SUCCESSFLAG IS INITIAL.
        WRITE: 'SORRY SOME ERROR'.
      ELSE.
        WRITE: 'SUCCESSFUL'.
      ENDIF.
    ENDFORM.                    " committrans

    Thanx wolfgang,
    I needed that info.
    As I had mentioned in the earlier posts, I want to delete the old Sales Order Item Details,
    Schedule Details,Basic Price data And Reinsert data in the same.
    I am giving u the algo that I have used.
    1.<b>Get the SalesOrder Details</b> for a particular Sales Order using BAPI_SALESORDER_GETLIST(para:customer & sales Org and then deleting unwanted SO data).
    2.<b>Delete</b> the Sales Order <b>Item Details,Schedule Details</b> using BAPI_SALESORDER_CHANGE.
    3.<b>Commit</b> Transaction(<b>If I dont use this commit Error comes in Step No.7 while Commiting</b>)
    using BAPI_TRANSACTION_COMMIT.
    4.Check <b>Return Table</b> of both BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT.
    5.if Step No.4 is <b>Not okay</b> <b>then Rollback</b>(BAPI_TRANSACTION_TRANSACTIN) <b>and Exit</b> <b>else move to step 6</b>.
    6.<b>Add New</b> Sales Order <b>Item Details,Schedule Details, Basic Price</b> using BAPI_SALESORDER_CHANGE.
    7.<b>Commit Transaction</b> using BAPI_TRANSACTION_COMMIT.
    8.<b>Check Return</b> Log of both BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT.
    9.if Step No.9 is okay then Exit else Rollback(BAPI_TRANSACTION_TRANSACTIN) and move to step 10.
    10.Add Old Sales Order Item Details,Schedule Details, Basic Price from Data available in Internal
    table(Filled in step.1 ) using BAPI_SALESORDER_CHANGE.
    11.Commit Transaction using BAPI_TRANSACTION_COMMIT.
         This <b>works fine in 1 server in which I get the message of Incomplete Data,etc...when I make a Sales Order from va01</b>.
    But in another server where I dont this message,I get <b>error in step  7 or 11 as per the flow</b>.
    The return structure of BAPI_TRANSACTION_COMMIT contains error with Message 'Updating was not possible'. Also the message 'Updation was terminated' cms frm the SAP server.  
         What could be the reason?
    Thanx in advance

  • Movement 543 F always take sales order as cost object

    Dear sap expert,
    I run MTO scenario.
    In one of my step before a product become finish good, the semi finish good need to sent to subcon vendor (the material need another process outside company production line).
    The good issue journal is happen when we good receipt finish good from vendor.(FI team make it that way).
    When posting good issue, MM use movement type 543 F.
    The GL number for issuing material is 300196.
    The problem is , movement type 543 F always take sales order as cost object even though I already delete the sales order when good issue to subcon vendor using tcode MIGO (good issue to vendor).
    And I already settiing PA tranf structure of the GL account to a value field and also already setting OKB9 so the GL can automatically post to profi segment (COPA).
    MM team also already set default setting  layout 543 F for sales order as SUPPRESS.
    But, still when run MIGO, the system still take sales order as cost object not to COPA (profit segment).
    But, if i use 543 E with same dafault setting layout as 543 F, it works (the GL is post to COPA not sales order).
    How can this happen?
    What should I do to make the GL post to COPA not sales order when using movement type 543 F?
    Please kindly help.

    Hi Anu
    If you are in MTO scenario and your sales order is defined as a cost object, then the system behaviour is correct..
    Check if the following settings apply in your case...
    1. Go to sale order, procurement tab
    2. Check whats the req type
    3. Go to OVZH and check whats the req class assigned to this req type
    4. Go to OVZG and check whats the acount assignment cateory in req class
    5. The account assignment catg would be having consumption posting field as E
    Regards
    Ajay M

  • How to link Sales Order with Service Contract and then with Install Base?

    Hi Friends,
    1) I would like to know the integeration process from sales order to Service Contract and then with Install Base.
    2) I couldn't see anything enabled in Service Tab in Order Lines, its grayed out. Is there any set up/profile option to get it enabled?
    3) How can we create AR invoice from Service Contract?
    Please let me know if anyone has idea on this.
    Thanks in Adavance,
    Vara

    Dear Sid,
    Thanks for your promt response.
    Let me explain you what I did.
    1) I have booked a Bill Only sales order which has one order line, mentioned it as Service Item and provided the same details in Service Tab in Order lines. Now Line status is "Fulfilled"
    2) Then Submitted Workflow Back Ground Process for OM Order Lines and it has created an AR Invoice and closed the line
    3) And then submitted "Service Contracts Order Capture Integration Program" from SErvice Contracts Responsibility and it completed normal.
    4) Now I went in to Launch Contracts Window and queried with the sales order but couldn't see any contract created
    5) Then I went in to Reprocess Order Window and found this order shows an error message as "Referenced Product not present in the Installed Base", then I tried to reprocessed it, but the same error message again.
    Here I have few doubts:
    1) Are the AR invoice and Service Contract Billing Invoices same?
    2) In above scenario AR Invoice has been created, I would like to do the billing from SErvice Contracts and need to create an Invoice in AR? how can I do that?
    because as you explained in one of my questions earlier, A Single Invoice can be created for the whole duration of the contract. I want to do that and trying for the same.
    3) Regarding the above error message, how can I resolve it and create the service contract against that Order?
    Thank you so much for your helpful answers.
    Regards,
    Vara

  • Settle Sales order to cost center?

    hi all,
    is it possible to setlle a sales order (delta between revenue and costs on the sales order) on a cost center?
    I know I can allow in the settlement profile to settle on a cost center - but does it makes sense?
    I know normally the sales order is settled to CO-PA, but actually we do not use CO-PA.
    --> What could/should then happen to the revenues and cost on the sales order? Remain there?
    One idea is to maintain the settlement profile "not to settle".
    Any ideas or experiences how to deal with this situation/settings?
    Thx in advance

    Dear Friend,
    I was researching on the same issue. The Sales Order can be settled to the Financial Accounts and you may check the detailed SAP document in this link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/ba81d2446711d189420000e829fbbd/frameset.htm
    Though it is quite late reply, let me know if this serve any purpose.
    Regards,
    Amit

  • Sales Order Vs Cost Object

    Dear All
    I got this information in SDN, please find the statement.  Is it correct?  Sales order is normally Cost Object. Below information he menctioned, If Sales Order is Cost Object.   Can u explain.
    If sales order is cost object (or if sales order stock is non-valuated) you can't perform WIP or Variances for production order. You can just execute the settlement for the production order to sales order associated with this.
    Regards

    Dear Althea Madigan,
    Thanqu for ur prompt replay,  As per as ur discussion
           Production Order is in Process then, the production order become as a cost object
          If the Production Order is delivered, then Sales Order is a Cost Objet
          If Sales Order is delivered then it will settled as per settlement rule.
    Here What is the difference between Producion Order delivered and Sales Order delivered. 
    Regards
    Raj

  • Sales order being cost object

    Dear All,
    I need to make myself understand as I read few post which quite confusing.
    Why sometimes sales order can be cost object for certain processes but not for some processes? In this case, GL can be cost element and also not a cost element.
    Why third party order and MTS, sales order is not cost object whereas MTO, sales order is cost object?
    thanks

    Hi,
    Below information helps you to understand the difference between MTO and MTS further:
    MTO:
    You will receive an order, it can take huge time to deliver this sales order, you need to follow the legal compliance on Revenue recognition, the functionality of Result Analsysis which is possible when the sales order is a cost object provides you the flexibility to manage the revenue recognition methods (OKG3). You can track the costing by Sales Order.Finally the costs and revnues are transferred to CO-PA.
    MTS:
    You will manufacture a product and send back to stores. You will receive the Order later, and you will pick the goods from the stores and delivers to the customer. Revenue recognition directly when the Billing is done together with costs.directly in CO-PA. No individual lot based costing required.
    Kind Regards
    Umapathi G
    Edited by: Umapathi Naidu G on Aug 3, 2011 3:47 PM

  • Update Sales Order with Text-Line and without regular Lines

    Hello Experts,
    i have a problem to update a Sales Order with no Item-Lines but with one Text-Lines or one Sub-Total-Lines.
    I get only the Error "The specified resource name can not be found in the image file", the %temp% are delete.
    i have testet with Methode: #updateDocWithSubDeletion, #Synchronnous Update, #Synchronous Insert with fallback to Update (i was desperate)
    my Scenario look like this:
    my Payload:
    i have allready testet with the part AdminInfo und QueryParams with the same Error.
    <Payload id="atom6" Role="X">
        <Documents xmlns="">
            <row>
                <DocNum>227780</DocNum>
                <DocType>dDocument_Items</DocType>
                <HandWritten>tNO</HandWritten>
                <Printed>psNo</Printed>
                <DocDate>20150423</DocDate>
                <DocDueDate>20150423</DocDueDate>
                <CardCode>61052</CardCode>
                <CardName>Durchlauf</CardName>
                <DocCurrency>EUR</DocCurrency>
                <DocRate>1.000000</DocRate>
                <DocTotal>0.000000</DocTotal>
                <Reference1>227780</Reference1>
                <JournalMemo>Kundenaufträge - 61052</JournalMemo>
                <PaymentGroupCode>-1</PaymentGroupCode>
                <DocTime>0819</DocTime>
                <SalesPersonCode>2</SalesPersonCode>
                <TransportationCode>-1</TransportationCode>
                <Confirmed>tYES</Confirmed>
                <SummeryType>dNoSummary</SummeryType>
                <ContactPersonCode>0</ContactPersonCode>
                <ShowSCN>tNO</ShowSCN>
                <Series>5</Series>
                <TaxDate>20150423</TaxDate>
                <PartialSupply>tYES</PartialSupply>
                <DocObjectCode>17</DocObjectCode>
                <DiscountPercent>0.000000</DiscountPercent>
                <DocTotalFc>0.000000</DocTotalFc>
                <RevisionPo>tNO</RevisionPo>
                <RequriedDate>20150423</RequriedDate>
                <CancelDate>20150523</CancelDate>
                <BlockDunning>tNO</BlockDunning>
                <Pick>tNO</Pick>
                <PaymentMethod/>
                <PaymentBlock>tNO</PaymentBlock>
                <MaximumCashDiscount>tNO</MaximumCashDiscount>
                <WareHouseUpdateType>dwh_CustomerOrders</WareHouseUpdateType>
                <Rounding>tNO</Rounding>
                <DeferredTax>tNO</DeferredTax>
                <NumberOfInstallments>1</NumberOfInstallments>
                <ApplyTaxOnFirstInstallment>tNO</ApplyTaxOnFirstInstallment>
                <DocumentSubType>bod_None</DocumentSubType>
                <Address2/>
                <UseShpdGoodsAct>tNO</UseShpdGoodsAct>
                <IsPayToBank>tNO</IsPayToBank>
                <DownPayment>0.000000</DownPayment>
                <ReserveInvoice>tNO</ReserveInvoice>
                <LanguageCode>9</LanguageCode>
                <SequenceModel>0</SequenceModel>
                <UseCorrectionVATGroup>tNO</UseCorrectionVATGroup>
                <DownPaymentAmount>0.000000</DownPaymentAmount>
                <DownPaymentPercentage>0.000000</DownPaymentPercentage>
                <DownPaymentType>dptInvoice</DownPaymentType>
                <DownPaymentAmountSC>0.000000</DownPaymentAmountSC>
                <DownPaymentAmountFC>0.000000</DownPaymentAmountFC>
                <VatPercent>0.000000</VatPercent>
                <ServiceGrossProfitPercent>0.000000</ServiceGrossProfitPercent>
                <OpeningRemarks/>
                <ClosingRemarks/>
                <RoundingDiffAmount>0.000000</RoundingDiffAmount>
                <ControlAccount>1200</ControlAccount>
                <InsuranceOperation347>tNO</InsuranceOperation347>
                <ArchiveNonremovableSalesQuotation>tNO</ArchiveNonremovableSalesQuotation>
                <ExtraMonth>0</ExtraMonth>
                <ExtraDays>30</ExtraDays>
                <CashDiscountDateOffset>0</CashDiscountDateOffset>
                <StartFrom>pdt_None</StartFrom>
                <NTSApproved>tNO</NTSApproved>
                <EDocGenerationType>edocNotRelevant</EDocGenerationType>
                <DownPaymentStatus>so_Open</DownPaymentStatus>
                <GroupHandWritten>tNO</GroupHandWritten>
                <CreateOnlineQuotation>tNO</CreateOnlineQuotation>           
            </row>
        </Documents>
        <Document_SpecialLines xmlns="">
            <row>
                <AfterLineNumber>-1</AfterLineNumber>
                <LineType>dslt_Subtotal</LineType>
                <LineText>Zwischensumme</LineText>
            </row>
        </Document_SpecialLines>
        <Document_Lines xmlns="">
            <row>
                <ItemCode>108044</ItemCode>
                <Quantity>0.01</Quantity>
                <FreeText/>
            </row>
        </Document_Lines>
        <TaxExtension xmlns="">
            <row>
                <NetWeight>0.000000</NetWeight>
                <GrossWeight>0.000000</GrossWeight>
                <StreetS/>
                <BlockS/>
                <BuildingS/>
                <CityS/>
                <ZipCodeS/>
                <CountyS/>
                <StateS/>
                <CountryS/>
                <BuildingB/>
            </row>
        </TaxExtension>
    </Payload>
    when I insert a new row with an ItemCode , it works
    Thanks and Best Regards
    Ronny

    Hi,
    why don't you create a simple scenario to export B1 Sales Order to XML File?
    Maintain the SalesOrder via B1 client UI and check the result in XML as exported to file.
    In the Sales Order xml file you can easily see how "AfterLineNumber" needs to be filled in segment "Document_SpecialLines" to achieve what you've entered via B1 client.
    Normally the LineNum for B1 Documents starts counting with 0 and if you need to add a subtotal line after a regular item row, the "AfterLineNumber" value should be 0.
    Best regards
    Bastian

  • URGENT: Sales Order Creation va01 error

    Hi all,
    When I create a new sales order by transaction va01 and fill all the required fields and then press enter, an error occurs that closes this transaction.
    ERROR:
    Condition table is missing! Access ZD05 30 (Price Determination)
    However, when I check the Pricing schema, everything is ok. The customizing is exactly the same as the one in another mandator, and in that one works.
    I've also debugged the program but found nothing except that when the program arrives to the field komv-kschl (condition type), the transaction is closed and appears the error above mentioned.
    Thanks in advanced,
    Gemma

    Hi all,
    Thank you for all your answers, because the problem has been solved. I tell you the solution, in case someone else had the same problem in the future.
    The problem was that for the condition type ZD05 there was a wrong condition table associated, as some of you told me, but I didn't know which table was, because it wasn't a standard one. It had been created by the person, who was working with this project before.
    Best Regards,
    Gemma

Maybe you are looking for

  • Macbook Pro start up issue

    I have a problem with a mid-2012 Macbook Pro 8gb ram, 500mb hard drive, Mavericks. The problem started when I loaded up about 100 tabs in Chrome for a long airplane ride. It crashed and would book up to the flashing folder. My speculation is that I f

  • How can I transfer my I-tunes account to a new PC

    How can I transfer my I-tunes account to a new PC?

  • How can i delete a photo album synced from a pc onto my iPad

    I have copied some photo albums from a pc onto my iPad and now moved them onto my macbook by emailing them to myself. It now won't let me delete them from the iPad. There is no delete box, please help, its taking up a lot of memory. Thanks

  • CS4 Media Encoder- Two Pass CBR settings?

    I have come across something strange in the stand alone Adobe Media Encoder CS4 (Windows and Mac) when attempting to encode an FLV with on2vp6. There is an option under CBR that allows for a two pass, however it also has the minimum bitrate, maximum

  • My Acrobat 9 Pro + Designer 8  installation is 2,448MB!

    Below are the primary folders for my Acrobat 9 Pro installation on Windows 7 64 bit. There are a few other folders, but not much space used. It looks like the folders 'Designer 8.2', 'Setup Files', and 'Update' folders are taking up 1,648 MB, leaving