Processing of Sales order output type BA00 processes another Z output type for acknowledgement.

Hi Friends,
I am facing below mentioned issue and request your suggestion to solve it
Via processing of sales order output type BA00 another Z output type is processed and acknowledgment is sent to SAP inbox( sost).
This is working incase of manual addition of BA00 output type and via standard program " sd70av1a", but this functionality is not working when i am calling this standard program in a Z report via batch job.     
with the below code-
DATA: name TYPE tbtcjob-jobname.
         DATA: number  TYPE tbtcjob-jobcount.
         DATA: print_parameters TYPE pri_params.
         name = 'ORDER_PRINTING'.
         CLEAR: range1.
*REFRESH: range.
         range1-sign = 'I'.
         range1-option = 'EQ'.
         range1-low = 'BA00'.
*        range1-high = 'ZBA1'.
         APPEND range1 TO range.
         CALL FUNCTION 'JOB_OPEN'
           EXPORTING
             jobname          = name
           IMPORTING
             jobcount         = number
           EXCEPTIONS
             cant_create_job  = 1
             invalid_job_data = 2
             jobname_missing  = 3
             OTHERS           = 4.
         IF sy-subrc = 0.
           SUBMIT sd70av1a WITH  rg_kschl IN range
                           WITH  rg_vbeln IN order_tab
                           TO SAP-SPOOL
                           SPOOL PARAMETERS print_parameters
                           WITHOUT SPOOL DYNPRO
                           VIA JOB name NUMBER number
                           AND RETURN.
           IF sy-subrc = 0.
             CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                 jobcount             = number
                 jobname              = name
                 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
                 OTHERS               = 8.
             IF sy-subrc <> 0.
             ENDIF.
           ENDIF.
         ENDIF.
       ENDIF.
In this case only BA00 is getting processed but Z output type created for sending acknowledgment is not triggered.
Please suggest how can i achieve the required functionality.
Thanks,
Surya

Solved myself..
Thanks.
Br,
Surya

Similar Messages

  • The status of sales order is being in processed

    Dear All,
    The delivery quantity is fully delivered and it is order related billing, this is a Sales Bom, the header is delivered and the line items are billed, the status of sales order is being in processed after the completion of the subsequent documents,
    In the document flow the system is showing that the order is being processed, we have checked the copy control and the relevant assignments. As we are facing the problem while creating sales order system giving an error message that there are open items for the customer. Please tell me if there is any customization is there or is there any other way to achieve.
    The other requirement is, if the customer credit limit get exceeds then the system should not save the sales order, if the credit lies within the limit and if the stock is not available in that particular plant, it is a dynamic credit limit.
    Thanking you in advance for your valuable time and efforts,
    Thanks & Regards,
    Mani

    HI ,
    1. For your first issue u201Cstatus of sales order is being in processedu201D
    Please check the below settings:
    Copy control From Sales order (OR) to Delivery (LF) u2013 T.code: VTLA.
    In Item level (TAN)  whether u201CUpdate document flowu201D is activated or not.
    You should also check in the Item category (VOV7):
    Completion Rule: Which one did you maintain?
    2. Error message: Open items:
    This is related with Credit management. Check whether you maintain any open item days or percentage, please check in OVA8. If you maintain you should get the payment from your customer . This is related with FI ( T.code : F-28 )
    Dynamic credit check :
    The setting is available in OVA8. Choose your credit control area, Risk category and Credit groups ( Should be Sales order group ). Then select the indicator u201C Dynamic u201C In Reaction you should give B ( Error ). Then the system will not allow to save the sales order if credit limit is exceeded .
    3. If the stock is not available in that particular plant, it is a dynamic credit limit.
    I think it is not possible . You may use the User exit in OVA8.
    Hope this can help you .
    Regards
    M. Lakshmi Narasimhan

  • Sales Order Status showing  Being Processed

    Hi All ,
    I my client created sales order with 100000.700 ton and with 42 Piratical delivery document with different dates and 42 billing document and clear accounting documents
    But the problem is Sales order status showing as Being Processed
    I check all delivery documents if was showing total quantity delivers and i check copy controls OR to ZLF Updated document flow is there
    and i Item category TAN don't not having completion rule
    My question is it is mandatory to maintain Completion rule in item category
    The Problem With Only One sales order it showing Being Processed, rest of sales document Showing completed
    Do we need to Updated Status manually ?
    Can any one guide me what could be a Problem
    Thanks
    Rajesh

    Hi,
            GO TO VA02 THEN SELECT THE ITEM  THEN GO TO SCHEDULE LINE -> STATUS TAB-> GIVE THE REASON FOR REJECTION
    Regards,
    T.Murugu

  • Why the Sales Order is still being processed?

    Hi,
    This process is done: Sales Order (RE - Return) --> Return Delivery (Goods receipt) --> Billing
    Sold-to party wrongly entered in the Sales Order, so they wanted to close the Sales Order. They did Cancellation for Billing (VF11) and reversed the Goods receipt (VL09).
    Also, Reason for Rejection is put in the line item (VA02). However, the status of the Sales Order is still Being Processed instead of Completed.
    From the Data Flow, it states that order-related billing status is still open*. But the Billing documents and Accounting documents are Completed and Cleared respectively as seen from the Data Flow.
    How to close this Sales Order?
    Thanks.

    Dear Friend,
    If you want to close any particular order then go to order reason and give the reason and save it.
    The system will automatically close the order and would show processed and in the due lists also it would not appear.
    award points if helpful,
    regards,
    Amlan

  • Confirmation/Back order processing in Sales Order

    Hello All,
    Need some inputs on the Schedule line confirmation and the back order processing for Sales Order
    Scenario 1
    Sales order created but there is no stock in Storage location. Based on our settings Sales Order confirmed for a future date(say 10 days) based on the delivery/lead time.
    Also sales order goes on credit block. Next we receive stock in storage location.
    Now when we release the credit hold it is not doing the confirmation autmatically. I know it can be done but dont know the settings or config where as soon as the Sales order is released from Credit hold then it should do the availibility check and confirm the Order (for todays or toms date.)
    Scenario 2:
    Sales order created but there is no stock in Storage location. Based on our settings Sales Order confirmed for a future date(say 10 days) based on the delivery/lead time.
    Next we receive stock. We would like to confirm the sales order automatically by a program instead of going in individually in each sales order.
    What Tcode/program can do this availibility check and confirm the sales order for todays date. Is this a back order processing or rescheduling. Need information on this process..
    Thanks
    SAP Fans...

    HI Rahul
    When you create the sales order and if stock is not confirmed then ,system will give the next delivery date and you can do the backorder processing for that sales order . So backorder processing is done only for Open orders
    Regards
    Srinath

  • Sales order is currently being processed by user CRMREMOTE

    Hello everyone,
    I am working in R/3 and trying to make a delivery for sales order that moved from CRM to R/3. Error message appears 'The sales order is currently being processed by user CRMREMOTE'.
    Appreciate any help.
    Kirill.

    HI,
    Please take it as suggestion.
    As your ERP-System is being integrated with CRM-System. It seems that this common document is getting proceesed at CRM-System by some user.
    Please consult with CRM-System Admin for the same.
    Best regards,
    Amit.

  • Unable to process intercompany sales order

    Unable to process intercompany Sales Order. The error message refers to the requirement to include inco-terms. although these terms are normally only included for imports. then why incoterm if intercompany sales with in same country?

    Hello Colleague,
    I regret to tell you that there is no standard way to change the       
    incoterm field as optional field. However, there is work around which  
    can be done by using SE51 -screen painter. To proceed further, please  
    refer to your local consultant as they might know your company system  
    requirement better.                                                    
    Regards
    Ruy Castro

  • After invoice completed the sales order is showing being processed

    Dear All,
    I have created one Sales Order.  Checked the incomplet procedure where it gives document is completed.
    I have created invoice with reference to this Sales Order.  Invoice is successfully created and Accounting document is also generated.
    Now if I check the document flow the Sales Order is showing as Being Process (not completed)
    Can anyone tell me the reason why this sales order is showing Being process in Document Flow though the invoice is completly processed.
    with regards
    Amjathpasha

    Hi,
    Please check the below link. All this is happening because of some inconsistency in the system, for which we do not have a clear reason, every time and every issue may be having a different reasons. It is advisable to go through the different solutions provided by others in the forum and analyze which is suitable for your scenario.
    Hope below link helps you...
    Re: Sales Order Status
    Venkat Cheedalla

  • Transfer of sales orders from one plant to another

    Dear all,
    My requirement is as follows:
    I have created some 500 sales orders (open) in one sales org+plant.
    Now due to plant shifting to other area, I want to transfer all the above open sales orders to another sales org+plant.
    One option is to create them manually. But that is time consuming and prone to errors.
    Second option is to upload thru LSMW. That too is very tedious.
    Third option is to extend/assign new plant to the old sales area and change the plant in the orders. But I want in the new sales org + new plant.
    Is there any other option by which I can transfer the above sales orders from one plant to another?
    Regards
    SAPshed

    Hi SAPshed,
    The problem is not the change of plant, which is standard functionality, but the change of sales organization.
    An awful lot of information depends on the Sales Organization: Company code (!!), customers, materials, prices, profit center, etc.
    SAP does not even admit creating a sales order in a Sales Organization A with reference to a sales order with a sales organization B.
    IMHO your best option is to try to maintain the current Sales Orders with the current Sales Organization and change the Sales Order in VA02 (your third option).
    If you are absolutely sure that all materials and customers are created for the new Sales Area in the same way and that prices (discounts) are the same, you might want to do a direct update to VBAK table to change the Sales Organization (nasty!), but be prepared for the consequences (no SAP support in case of problems, you are on your own).
    Therefore if you insist on a different Sales Organization, then option 2) will be your best best.
    Best Regards,
    Franck
    P.S. IMHO it is Best Practice to have a unique Sales Organization / Company Code.

  • Problem in Creating Sales Order From One DB to another DB

    Hello All,
    I am trying to create a Sales Order in another database from the current database based on the Purchase Order but while creating the sales order system is throwing an error " In "To Whse" enter valid values [ZAPp 0] "
    My Code for Creating Sales Order in another DB are as follows :-
                 '==== Connect To another SAP Company ====='
                '=====================================
                Dim oCompany_DB As New SAPbobsCOM.Company
                oCompany_DB.Server = "OSL_SERVER"
                oCompany_DB.LicenseServer = "OSL_SERVER"
                oCompany_DB.UseTrusted = False
                oCompany_DB.CompanyDB = Database_Name
                oCompany_DB.UserName = SAPUserName
                oCompany_DB.Password = SAPPassword
                oCompany_DB.DbUserName = DBUserName
                oCompany_DB.DbPassword = DBPassword
                oCompany_DB.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005
                lRetCode = oCompany_DB.Connect()
                If lRetCode <> 0 Then
                    oCompany_DB.GetLastError(lErrCode, sErrMsg)
                    If (lErrCode <> -4006) Then
                        Class_InterCmp_Main.SBO_Application.MessageBox(sErrMsg)
                    End If
                End If
    '===== Creating the Sales Order ====='
    '================================
      Dim oOrder As SAPbobsCOM.Documents = oCompany_DB.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                Dim DocDueDate As String = oRecord.Fields.Item("DocDueDate").Value
                oOrder.DocDueDate = DocDueDate
                oOrder.CardCode = Customer
      While Not oRecord.EoF
                    Dim ItemCode As String = oRecord.Fields.Item("ItemCode").Value
                    Dim WhsCode As String = oRecord.Fields.Item("WhsCode").Value
                    Dim Quantity As Double = oRecord.Fields.Item("Quantity").Value
                    Dim Price As Double = oRecord.Fields.Item("Price").Value
                    Dim Discnt As Double = oRecord.Fields.Item("DiscPrcnt").Value
                    Dim TaxCode As String = oRecord.Fields.Item("TaxCode").Value
                    oOrder.Lines.ItemCode = ItemCode
                    oOrder.Lines.WarehouseCode = WhsCode
                    oOrder.Lines.Quantity = Quantity
                    oOrder.Lines.Price = Price
                    oOrder.Lines.DiscountPercent = Discnt
                    oOrder.Lines.TaxCode = TaxCode
                    oOrder.Lines.Add()
                    oRecord.MoveNext()
                End While
                lRetCode = oOrder.Add
                '=== Check For Error if any ===='
                If lRetCode <> 0 Then
                    oCompany_DB.GetLastError(lErrCode, sErrMsg)
                    If (lErrCode <> -4006) Then
                        Class_InterCmp_Main.SBO_Application.MessageBox(sErrMsg)
                    End If
                End If
                oCompany_DB.Disconnect()
    When i execute the above code company gets connected but sales order not getting added in another company.
    Thanks,
    Amit

    You can not do it the alternate way Kevin suggests, direct DB inserts are prohibited by SAP and can corrupt your DB, particularly because unlike what most people think, all SAP documents affect more than just their own tables (e.g. the numbering table, the history tables).
    Are you getting any error message, or is it returning 0?
    If it is returning 0, then check is the document actually going to the newly created database or maybe somehow going to old one.
    If it isn't returning 0, what is the error code and message.
    Edit:
    Also I do see an error in your code. As it stands, you are adding an empty line to the end of every order. This can cause problems for SAP.
    Dim counter As Integer = 0
    If counter <> 0 Then 'Not equals 0, forum hides lt & gt symbols.
    oOrder.Lines.Add()
    End If
    counter = counter + 1
    oOrder.Lines.ItemCode = ItemCode
    oOrder.Lines.WarehouseCode = WhsCode
    oOrder.Lines.Quantity = Quantity
    oOrder.Lines.Price = Price
    oOrder.Lines.DiscountPercent = Discnt
    oOrder.Lines.TaxCode = TaxCode
    Edited by: njmog1 on May 9, 2011 10:14 AM

  • Use condition type 'RC00' to process return sales order

    first, I copy RC00 to RC10 and change its Calculat.type = B(Fixed amount).
    second, I place a sales order to deliver 10 PC(RC10 = 10 USD) to customer and bill 8PC(RC10 = 8 USD) to customer.
    third, I place a return sales order(only return 2 PC) reference to above billing but the RC10's amount is still 8 USD instead of 2 USD.
    I think this is relative to Cond.base value and Cond.control = F(Condition value fixed (billed)) and who can tell me how to realize my purpose?
    tks in advance.

    Hi
    Guess, If you do returns again for two more pieces, again it will determine the same value for RC10.
    Please look into  the areas of 'copy controls - price type' field and also the Calculation type (fixed amount) also.
    Thanks,
    Ravi

  • Sale order status showing being processed

    Dear Friends,
    I am working in SAP ECC 6.0
    My sale order Qty is 10 pcs eing processed
    and delivery qty is 10 pcs - Completed
    Good Issue - 10 Pcs - Completed
    Invoice - 10 Pcs - Completed
    In spite of carrying out full delivery sale order status is still showing being processed.
    is there any configuration missing or is there any program to update the status.
    Kindly advice.
    Satish

    Hi Ankur,
    2 Doubts i have:
    1)
    In our case for the Item Category we have not maintained anything in Completion Rule however we have maintained Update Document Flow in Order to Delivery Copy Control.
    Our Document status shows as Completed in this case as well. Hence i do not know the Significance of maintaining Completion rule in item category.
    2) I have a order type which has Order Relevant Billing. The Copy Control for Order to Billing does not have any Update Document Flow Check Box. We are using a Service Material in this Order Type.
    After creating the Billing we still have Order status as Being Processed.
    Can you help in finding a solution to the above?
    Madhukar

  • How to make plant mandatory field in Sales order thru standard SAP process

    Hello,
    There is requirement in business that User wants to make plant field Mandatory in Sales order line item once material number is entered. Can you please guide me how I can make Plant field mandatory thru Standard SAP process.
    I had checked it thru Incompletion process & Order type incompletion messages but still Plant field is not becoming mandatory in Sales order. It only gives incompletion log while saving the SO. Please suggest how to do it thru Standard SAP process.
    Thanks & Regards,
    Saurabh

    HI
    Plant will determine based on Customer-material Info Record, Customer Master data & material Master
    If plant is not mandatory in customer Master and Customer material no problem
    but at the time of creating the material master  Plant Mandatory as per my knowledge, so system will pick plant from Material master  that is the case why you required plant Mandatory in Sale order level
    and you need to do Shipping Point Determination for that plant
    Did you check by using User Exit ? if not try once what i have suggested
    Try with User Exit
    MV45AFZZ , FORM USEREXIT_SAVE_DOCUMENT
    VBAP - WERKS = " "
    if VBAP - MATNR , POSNR = not initial
    Error Messgae "E"
    Check and Revert
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 14, 2012 11:41 AM

  • Error in Sales Order Creation - Template material processing is deactivated

    HI,
    I am getting the following error in all clients in my server while creating the sales order. I am getting this after uploading the Patch 17,probably.
    what should i do! All settings given by message below are tried, but not helping.
    Template material processing is deactivated
    Message no. CB01412
    Diagnosis
    You attempted to enter a material in an SD document that is set as a template or one-time material. An error occurred that can have the following causes:
    Template and one-time material processing is not activated
    No determination routine is specified for the SD documents for the permitted combinations
    The combination of sales organization, document category, and document type or delivery type for the SD document is not permitted
    System response
    The system prevents you editing the document any further.
    Procedure
    Activate template and one-time material processing in the IMG activity Activate Dangerous Goods Checks.
    Edit the determination routines in the IMG activity Specify Determination Routines for Sales and Shipping Documents.
    Edit the IMG activities Specify Permitted Combinations for Sales Documents and
    Specify Permitted Combinations for Shipping Documents.
    Thanks in advance.

    Hi,
    Go to MM03 and check the material (you are creating sales order ) wheather sales views selected or not.
    Regards,
    Biju K

  • VL02N Change Delivery blocked - Sales Order is currently being processed

    Hi Experts,
    We have a problem with only 2 deliveries. We try to reverse goods movement in VL09, and the error Text Text * ID * language  not found. Text Determination is ruled out because the rest of the deliveries can be reversed without this error.
    Here are some more findings:
    - When we tried to change the Delivery, error will show 'Sales Order XXX is currently being processed by user'. This is odd because it doesnt say the user name.
    - Sales Document Flow is correct, but when I checked VBFA (table for Document Flow), no entry for Sales Order as preceding document for the delivery, In fact, Sales Order cannot be found as preceding document.
    - When I checked LIPS, the Update Indicator for Delivery Document Flow is blank. Requirement Type and Planning Type also blank.
    - We were able to delete Sales Order even if Delivery is not yet complete. Document flow was then changed where the preceding document of the delivery is a billing document.
    It's getting weirder as it goes, any idea is really welcome. Thank you so much.

    Hi Sridhar,
    Thank you very much for your answer, that is certainly the case. Some tables werent updated with the preceding document.
    These tables/fields are:
    VBFA - Sales Ord missing as preceding document
    LIPS - VGTYP field (indicator of what type is the preceding document) is blank, as well as many other indicator fields. Actually, what were filled was just the preceding document number and item number in LIPS.
    Additional detail is that we can see the SO in the Document flow of the delivery, but under the delivery item's Preceding Documents tab, it will say that there's no preceding document.
    However, the delivery is already GI'd (hence we want to reverse it), and we cannot reverse because of this problem.I found an OSS note that will force update the VBFA table, but still doesnt work, until I added some codes that will also force update the value LIPS-VGTYP = 'C'. However, I dont want to do this because this is a force update...
    Any advice will be a great help. Thanks.
    Joyreen

Maybe you are looking for

  • When I type text numbers are randomly inserted into my text ?

    Suddenly my text generated in mail and MS word has random includes random numbers insert between the letters I have typrd.  Interestly when I tyor this post everything works fine ?? any suggestions ?

  • Problem downloading with internet explorer

    when the adobe starts to install, theres an error screen that pops up telling me to "close internet explorer to continue".  When I do this the same screen just keeps popping up when I push "retry"

  • T how to enable a larger disc buffer

    A core audio message keeps popping up on certain songs during parts. It reads Disk is too slow or System Overload (-10010) It was suggested I enable a larger disc buffer and purchase the 7.1 upgrade. I don't know how to go about enabling a larger dis

  • LDAP sync issues.

    In our environment we have OIM 11.1.1.3 and we have enabled LDAP sync with OID. Any user created on OIM is getting synced to OID. The problem is when we are making any changes to the attributes of the users or deleting a user the changes are reflecte

  • Bridge CS5 Crashes when navigating video clips

    i recently switched to a tapeless workflow with the canon 60D. I love how simple it is to work with the footage from it in the adobe products, but I've been having a lot of trouble with Bridge. Every time I try to preview the clips, or just browse th