How to get netprice (vbap-netwr) before creting the sales order

Actually i am using bapi 'BAPI_SALESORDER_SIMULATE'  & iam passing pricing date
as that entered on selection screen of my report.But in certain cases BAPI fails for eg: When material is not available in stock  it simulates with alternate material. So is there any other way like function module to fetch the net value based on pricing date and other inputs/
Please help me. It is very urgent!

Hi,
I resolved this as following :
Since, i needed the Manufacturer Serial no. to be fetched in custom field at item level ( Enhanced via EEWB the item  ) , the moment there is a product  available in the sales doc header field.
I wrote  badi implementation for definition : CRM_ORDERADM_I_BADI and utilized method  : CRM_ORDERADM_I_PRODUCT_DETERM . This method's signature if you check makes me available the header, item guids along with the product available in the field even before i save the sales document. There i fetch the serial number of product from custom table and then poulate the serial no. field in customer_i extension as follows:
  LS_CUSTOMER_I_COM-ZZCUSTOMER_I0803 = LV_MFR_SLNO.
  LS_CUSTOMER_I_COM-REF_GUID    = IV_ITEM.
  LS_CUSTOMER_I_COM-REF_HANDLE  = '0000000000'.
  LS_CUSTOMER_I_COM-MODE        = 'A'.
  APPEND LS_CUSTOMER_I_COM TO LT_CUSTOMER_I_COM.
  LS_FIELD_NAME_CUSTAB-FIELDNAME = 'ZZCUSTOMER_I0803'.
  APPEND LS_FIELD_NAME_CUSTAB TO LT_FIELD_NAME_CUSTAB.
  CALL FUNCTION 'CRM_CUSTOMER_I_MAINTAIN_OW'
    EXPORTING
      IS_CUSTOMER_I_COM    = LS_CUSTOMER_I_COM
*        IV_EXTERNAL_CALL     = 'X'
    CHANGING
      CT_INPUT_FIELD_NAMES = LT_FIELD_NAME_CUSTAB
    EXCEPTIONS
      ITEM_CHANGE_ERROR    = 1
      ITEM_CREATE_ERROR    = 2
      ERROR_OCCURRED       = 3
      OTHERS               = 4.

Similar Messages

  • Scehdule Line Date getting change to future date once the Sales Order is saved

    Hello Experts,
    Good Morning to you all,
    This is with respect to the Issue we are facing for the Orders having Product Allocation on multiple materials. Please find enclosed the detials below.
    Issue : Scehdule Line Date getting change to future date once the Sales Order is saved. These Order's are having Product Allocation on multiple materials.
    Description:
    We have implemented Product Allocation few months back.
    We have Product Allocation on multiple materials which are in demand and has been reserved for the Customers of different PA behaviors.
    When we are trying to create the Sales Orders for the normal customer who is not on Product Allocation. The Order Schedule Line is getting changed to future date once the Sales Order is saved after initial creation.
    These Order's are having materials of Product Allocation.
    I have enclosed the sample screen shot of the error we are getting which saving the Sales Order and also the Order Schedule Line screen shot showing future date.
    Error Message : There may be Product Over Allocation in Delivery Group 001.
    Message No : VV023
    This is a random behavior we are coming across and out of 10 Order 2 or 3 Orders is getting this Issue.
    Please share your inputs how to rack this Issue.
    Your suggestions will be highly appreciated.
    I am unable to upload the attacments dont know what the reason.
    Thanks,
    Farhan.

    Check whether you need to carry out the coding corrections as recommended in the following note:-
    Note 52067 - Message VV023/VV024, but no prod.alloc.processing    
    But I wonder this is for older versions and not sure whether this would help you to overcome from the issue.
    G. Lakshmipathi

  • How to Generate a complex smart form for the Sales Order different pages h

    How to Generate a complex smart form for the Sales Order different pages has different page Layouts  explain me?

    in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
    I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar.

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • How to set Confrimed quantity as 0 in the sales order line item

    hi all
    i have a requirement that my user dont want to see confirmed quantity in the sales order line item.
    scenario is make to order.
    i have set strategy group is 20 -make to order
                                            MRP Type is PD
                                           Lot size -
    EX , still its showing confirmed quantity.
    could pls any one tell me how to set 0 quantity in the sales order line item
    thnx

    Dear Sateesh,
    If the availability check is carried out and stock is not there in our plant, then it will show the confirmed quantity as Zero.
    If you don't want to carry out the availability check,
    To achieve this,
    1. Remove the availability check in the transaction OVZG against your requirement class.
    You can find the requirement type assigned to the sale order in the procurement tab.
    In OVZH transaction, you can find the requirement class assigned to your requirement type.
    2. Remove the availability check for your schedule line category in VOV6.
    In the material master MRP3 view, you ll be having Availability check, there you need to specify the availability check..
    If you specify it as KP(No check), then it will confirm the qty, though the stock is not there in our plant..
    To meet your requirement, you have to prefer user exit.(Correct me if I am wrong)
    Thanks,
    Venkatesh.S.P

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • How to get header text in user exit for sales order

    Hello all,
    My requirement is that I get and modify the header text in user exit when creating a sales order. In the user exit I'll do some validation and put the error code into header text. But I can't use function 'READ_TEXT' to get header text since the text has not been updated into database.
    Can anybody help me? point will be rewarded. Thanks in advance.
    regards,
    --Alex

    Use the following internal tables. These internal tables are declared in include <b>THEADDAT</b>. THEADDAT is an include of  <b>MV45ATOP</b>.
    THEAD,                
    TLINE.                       
    TVCOM,                      
    TTXID,        
    TTXIT,
    TTXOB,              
    TTXOT          
    I hope it helps.

  • Sending New Requirement date to APO before saving the sales order in ECC

    Hi Experts,
    i have a requirement where while creation of sales order, when user enters the requirement date,i have to calculate the new requirement date ( adding transit time and other time ) and send it to APO , to bring the ATP result based on this new calculated date.
    This new calculated date is getting saved in Z field in VBAP table and also this new requirement date which has to be pass to APO is getting calculated while saving the doucment i.e. at user exit - USEREXIT_SAVE_DOCUMENT_PREPARE.
    Now, i am not sure, how i should pass this new date to APO , which FM , Badi or BAPI would be used ?
    Please help and let me know if i am supposed to detailed it a little more.
    Thanks.

    Hi Bharat,
    Normally the new calculated requirement/delivery date will be updated in APO through the CIF.
    However you can influence the transfer with enhancement CIFSLS03 (influence sales-order-specific data directly before it is sent to SAP APO available on ECC side).
    Please see the below description.
    Thanks.
    Regards, Marius
    In this enhancement, you can transfer customer-order-specific data to SAP
    APO.
    The associated component EXIT_SAPLCSLS_002 provides you with tables that are
    required for the transfer. In particular, these are:
    Requirements table ET_SL_REQ
    Item table ET_SL_DOC
    Field catalog ET_ATPFIELD
    You can use this exit to create or change documents in the ERP system as well
    as for the initial data transfer.
    The data is transferred to SAP APO after this exit is called.
    Notes
    If you use program /SAPAPO/CIF_DELTAREPORT3, you have to add the
    corresponding logic to function module EXIT_SAPLCID3_001. For more information,
    see the documentation for
    enhancement CIFCID3.
    Programs /SAPAPO/CIF_DELTAREPORT and /SAPAPO/CIF_DELTAREPORT2 also run this
    exit.

  • How to get my macbook to connect to the Apple TV?

    How to get my macbook to connect to the Apple TV in a strange apartment? I am housesitting for someone for a few months. They mentioned that i would be able to use their Apple TV to play stuff from my macbook. I am using their basic wifi in the apt, which works fine on my macbook and iphone, but see no Apple TV icon appearing on macbook screen, nor any connection happening. (nor is there anything connection w my iPhone). What gives? How can I establish a connection?

    See
    http://support.apple.com/kb/ts4215

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

  • How to get latest record on top of the result list

    Hi Gurus,
    How to get latest record on top of the result list when you open the record.
    saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
    Regards,
    Ravi

    Hi
    Try sort descending by on fileld "changed at ".
    manipulate the sort depends on your requirement
    Regards
    Logu

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • How to get relationship between two  views in the  reports

    How to get relationship between two  views in the  reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports

    Hi,
    Please explain your question in detail...what do you want to read ?
    If you want to know about the navigation links between the views then you can use APIs  like
    wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
    Iterate through the navigationLinkInfo from above collection and can read the other properties .
    I haven't tried the above , but it should work !!!
    Regards,Anilkumar

  • How do I get the line number of the sales order and how do I save info?

    I am trying to create a form that is able to be called from a right click on the sales order matrix and will display some of the user defined fields associated with the line.
    I've managed to create a form and add a menu option to the right click but I'm now stuck because of the following:
    1. How to I know which line the user selected? I need the REAL Line Number from the RDR1 table because I need to use it on the data filter of the form.
    2. I hard coded a line to just to see if I can load a form and it appears to load and bind the data to the controls, but how do I save changes made? There are several text fields, combo boxes, and a picture control.

    Hi Coleman,
    1. The pVal returned form a menu event does no provide the LineId, but a pVal from a Item Event does. I suggest you use a DoubleClick or Control + Click on the Line to trigger an event that you can catch and use to launch your form.
    2. Please note that if the Sales Order line is closed you'll not be able to update the values. If it's not, then you need to instantiate a Sales Order document, get the correct document with the GetByKey method and update whatever fields you need.
                    Dim oSalesOrder As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oOrders)
                    If oSalesOrder.GetByKey(docentry) = True Then
                        oSalesOrder.Lines.SetCurrentLine(pVal.Row - 1)
                        oSalesOrder.Lines.UserFields.Fields.Item("U_MyUDF").Value = ""
                        oSalesOrder.Update()
                    End If
    Regards,
    Vítor Vieira

Maybe you are looking for

  • 2 iPhone 4s on the same iTunes account, now we have mixed contacts

    I've been using my iPhone 4S for quite some time and my wife and I also have iPads (1 and 2). We have always synced the music, books and apps between each device. We finally just got her an iPhone 4S several months ago. So, we just downloaded the lat

  • What is the best way to import a graphic? & How do I create a text frame for a figure caption?

    Hello all! I've been working from the FM book for almost 2 hrs trying to figure this out, so now I need your help. I am almost to this point: Problem I: Importing a graphic First of all, which is the best way? -Insert an anchor frame and then import

  • IPad video widescreen aspect in photo app

    Since updating to iOS 7 videos I exported from iMovie are not playing in widescreen format. The left and right edges are chopped off because it is only displaying it in full screen .  How can I play them in the widescreen format?

  • Date picker in a popup window

    Hi all, There are 2 pages, page 1 contains a button, when user click on it, a new window will popup showing page 2 which is a entry form has a date picker item. The javascript behind the button in page 1 is like: (in target URL field.) javascript:pop

  • [AS] getting valure of color

    Hi how would I go about getting the value of a color? I have tried the below but it errrors  "Adobe InDesign CS3 got an error: Invalid parameter." tell application "Adobe InDesign CS3"     activate     set _myDoc to active document     tell _myDoc