Add buttons in Sales Order's Addtional Data B Tab

Hi All,
I want to add buttons in Sales Order's Additional Data B tab. I had try to draw a creen in painter and push a button in the screen, also assign a fcode to it.
I had try to test the button, and I find that, it could work, but after it's action, a error msg give out and said there are no this request function.
I think it may cause by the fcode passing between screen. However, I don't know how to fix it. Any sample coding could for me reference?
Thanks!

Hi,
yes u can add the button  with Fcode on Additional data B screen.But u have write the code in the PAI of the screen,inorder to do something,for that u need to have accesskey also...i hope while adding fields to Additional data B screen u ahve used teh accessskey for adding..zfields
Regards,
Nagaraj

Similar Messages

  • Sales Order (VA01)- Addtional Data Tab B Request

    Hi All,,
    This is sales order(VA01) relevant and I have added the new "ZZFIELD" field in the "Additional data B" which i kept screen painter attributes check box chosen "Input Field" and Input "required".
    When i am creating sales order(VA01), the moment click on "addtional data B"  ZZfield become mandatory input field able to save sales order sucessfully after keying data. But user want's, after enter line item data which is material & qty , then cursor required to go additional data B which is mandatory field ZZFIELD. Right now, user enters line item material , qty and he is able to save it Sales order  and cursor is not going or waiting at ZZFIELD in addtional data B Tab(unless and unitl he press Additional data B Tab) .
    Is there any solution after user enter material and qty after clicking enter cursor should go "Additional data B" wait at "ZZFIELD"(as this mandatory field before sales order save) ? 
    If we dont go the Additional data B and save the document , it's not giving the message "Make an Entry required fields and it is directly saving the document.?
    Any help is highly approciate ....
    Below code written already:
    Program:SAPMV45A screen :8459 put PBO code as per below:
    Loop at Screen.
    If screen-name = 'VBAP-ZZFIELD'.
      if SY-TCODE = 'VA01' AND ORDERTYPE = 'ZSS'
        SCREEN-INPUT = 1.
       MODIFY SCREEN.
      ENDIF.
    ENDIF.
    Best Regards
    Kushal

    Hi   Abdul ,
    You dont have to do ny extra coding for the scroll bar once the no of fields increase with respect to the tsb screen area it will automatically have a scroll bar in it .
    Hope it helps
    Regards
    Swapnil

  • How to add a button in Sales Order screen?

    Hi,
    Basically I want to add a new button "Show My lookup" in sales order screen and when clicking the button I want to show a form.
    Please anyone tell me how to do this?.
    thanks in advance
    Mina

    Here is a sample ItemEvent that adds a custom button to Sales Order Entry, and loads a form from XML when it is clicked.  Make sure you give the forms unique identifiers when you create them - the sample just uses a hardcoded value.
    Hope it helps,
    John
    Private Sub sboApp_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboItem                 As SAPbouiCOM.Item
        Dim sboBtn                  As SAPbouiCOM.Button
        Dim objXMLDoc               As MSXML2.DOMDocument
        Dim objXMLErr               As IXMLDOMParseError
        Dim objXMLElem              As MSXML2.IXMLDOMElement
        Dim strIdentifier           As String
        If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 139 Then
            'Add Custom Button
            Set sboForm = sboApp.Forms(FormUID)
            Set sboItem = sboForm.Items.Add("AZU_BTN", it_BUTTON)
            sboItem.Top = sboForm.Items("1").Top
            sboItem.Width = "80"
            sboItem.Left = sboForm.Width - 105
            Set sboBtn = sboItem.Specific
            sboBtn.Caption = "Custom Button"
        End If
        If pVal.EventType = et_ITEM_PRESSED And pVal.Before_Action = False And pVal.ItemUID = "AZU_BTN" And pVal.FormType = 139 Then
            strIdentifier = "AZU_XXX" 'You should set this to a unique value each time
            Set objXMLDoc = New MSXML2.DOMDocument
            objXMLDoc.async = False
            objXMLDoc.validateOnParse = True
            objXMLDoc.Load (App.Path & "\Config\AZU_CUSTOM.srf")
            Set objXMLErr = objXMLDoc.parseError
            If (objXMLErr <> 0) Then
                MsgBox "Failed to load XML screen definition."
                Exit Sub
            Else
                For Each objXMLElem In objXMLDoc.getElementsByTagName("form")
                    objXMLElem.setAttribute "uid", strIdentifier
                Next
                sboApp.LoadBatchActions objXMLDoc.xml
            End If
        End If
        Exit Sub
    ErrorHandler:
        MsgBox Err.Number & " " & Err.Description
    End Sub

  • How we add & grandtotal of sales order report in alv

    hi guru how we add & grandtotal of sales order report in alv
    regards
    subhasis

    hi subhasis,
    since u want the grand total in ALV use the following code...
    clear gs_fieldcat.
    gs_fieldcat-fieldname = field.
    gs_fieldcat-tabname = DB table
    gs_fieldcat-seltext_m = text.
    gs_fieldcat-do_sum = 'X'
    gs_fieldcat-datatype = data type (Curr or Quant)
    gs_fieldcat-ref_fieldname = reference field name
    gs_fieldcat-ref_tabname  = reference table name
    append gs_fieldcat to gt_fieldcat.
    hope this will work...
    please reward points in case usefull
    regards,
    prashant

  • Services for Object button in Sales Order

    Hello Experts,
    We are not getting Services for Object Button in Sales Orders. Actually we need to attach some documents to Sales Orders.
    Thanks in advance.
    Mamta.

    Dear Friend,
    If you are not getting Services for Object Icon in Sales Document, then follow this:
    T-code - SU01 u2013 Here Enter User ID & click in change icon.
    Then click on Parameters Tab & Add Parameter u2013 SD_SWU_ACTIVE. .
    This will definitely solve your problem...
    Thanks,
    Jignesh mehta

  • Sales Order : Calcul delivery date with only working days

    HI,
    When I create sale order, the delivery date is calculed with the number of days mentionned in type of sale document. SAP add this number of days into the day's date.
    Is it possible to calculate this delivery date only with working days in the corporate calendar ???
    Thank's

    HI
    Delivery date in the Sales order will be calculated the calender only basedon the Transportation lead time and Pick/Pack time and excluding the holidays
    Please cross the same in your instance
    Regards,
    Ram.

  • Find Sales Order Item Basic Data by Elements query fails

    I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
    Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
    However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
    It fails giving the following errors:
    (in Log.LogItem.Note variable):
    <b>"Conversion failed: Invalid input format"</b>
    (in Log.LogItem.TypeID variable):
    <b>"701(SFB)"</b>
    Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
    From the ESOA site, all I could get was:
    <i>----
    QUOTE -
    The following values are optional selection criteria for restricting the search result:
    SelectionByID – Document number range
    INCLUSION_EXCLUSION_CODE
    INTERVAL_BOUNDARY_TYPE_CODE
    LOWER_BOUNDARY_ID
    Value
    UPPER_BOUNDARY_ID Value
    Value
    UNQUOTE -
    </i>
    I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
                querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
                querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
                querydata.SelectionByID[0].InclusionExclusionCode = "E";
                querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
                querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
                querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

    How do you test with a SOAP Client  - I am trying to use same dataset as provided?
    I did with WSDL Test - SAP, SOAP Client and got the following error:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
             <Log>
                <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
             </Log>
          </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
       </soap-env:Body>
    </soap-env:Envelope>
    Thanks..
    Vikas

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

  • Sales order schedule confirmed date will consider Production capacity load

    As we know about schedule confirm delivery dates of sales order will consider based on material master lead time ,shiping point etc
    How to consider production capacity plan on sales order's delivery date.
    Say for example :
    Production workcenter capacity to produce the XYZ material 10qty in a Day.
    today i have created the sales order XYZ materail qty of 100. lead days has give based of MMR 21 days 17-07-2010( 3 sundays)
    and in same day i have created other sales order XYZ material qty 5000 ,the lead days again it will came 17-07-2010.
    Now my client requiremnt is when the schedule days is confirming in the sale order it sholud also consider the production capacity planning also(CR01,CR02)
    Even though my work centers are overloaded it is confirming the sales order on 17-07-2010 (based on leads days in MMR)
    Need your Inputs on issue

    Hi,
    This is a complex issue; best solution is by using APO/GATP.
    If not, then in ERP only, the second best is:
    1) Work with assembly processing in SO, meaning that a production/planned order is automatically created in the customer order during order creation.
    2) Then, after the order is created it is scheduled, and the delivery date proposal is based on that.
    3) Now you can check in the order that there are no capacity overloads, and all capacity required to produce on the proposed date is available. If yes, you're done. If not, it gets a bit complex, since you actualy need to switch to capacity planning, do capacity leveling and dispatch (PP), and the you get a new feasible schedule proposal based on that.
    APO/GATP could do all that automatically!
    Regards,
    Mario

  • Complete MRP status according to Sales order schedule line data

    Dear All,
    Please help me to get technical configuration releted to
    "complete MRP status according to Sales order schedule line data"
    or MRP w.r.t. Schedule line
    Please send fields and table and logic specification .
    Thanks & Regards,
    Ashish Gautam

    You can use following Fm for change sales order
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = p_vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
        schedule_lines    = i_sched
        schedule_linesx   = i_schedx.

  • Add field 'asset' in sales order line item account assignment tab

    Hi,
    I would like to add the following field: 'asset' in sales order line item account assignment tab.
    I can enter order, or wbs, but not Asset.
    How can I make this field visable?
    Anybody?
    thanks,
    klundert
    Edited by: Eric Van Zundert on Oct 30, 2010 8:43 AM

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Sales Order - Requested Delivey Date

    Hi All,
    Please help me resolve this requirement.
    In sales order we have a field 'Requested Delivery Date', Normally the requested delivery date is default todays date only. If not proposed by system, we have to enter it manually.
    In our project we have maintained cusotomer calendar, where some dates in an year are specified.
    Only on such dates order is possible to be delivered to the customers.
    While creating such order, we get an information message, that "no goods accepeted on 24.06.2008, the next possible date is 28.06.2008"
    This date (28.06.2008) comes from the cuustomer calendar attached to the customer master in view Unloading points.
    Now how can this date be automatically copied to the requested delivery date field so as to make the order not possible to be delivered on the todays date, & only possible to deliver on the date (28.06.2008) which is the date from customer calendar.
    I repeat, instead of automatic determination of req delivery date, or instead of manual entry, system should pick the date automatically from customers calendar after entry on Ship to party in the sales order.
    Regards
    Dhananjay

    Hi,
    sorry I just forgot to share it with all.
    See, our requirement was sales order should have delivery date into it, not proposed by system by to be fetched from the calendar maintained in the ship to party customer master record.
    We acheived this by using a feild exit for Data element "KETDAT" - Requested delivery date of the document.
    In this we incorporated the logic like to fetch the date from the calendar, additionally a function module "DATE_CONVERT_TO_FACTORYDATE" was also used.
    Whenever user creates a sales order, the system date automatically comes by default, by is replaced by the date from calendar, & a message is also passed "Change in the route calendar date"
    I am glad to inform you this worked out very well.
    Hope this is helps you all.
    Regards,
    Dhananjay

  • Qurery on Add Button of Sales A/R Invoice form

    Hello sir
    I want to  do the Update query on add button of Sales A/R From, to update the satus of my user form
    plz  suggest

    If pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And pVal.BeforeAction = False Then
                        Dim oForm As SAPbouiCOM.Form
                        oForm = SBO_Application.Forms.Item(FormUID)
                        If oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                            If pVal.ActionSuccess = True Then
                                Try
                                    ' setVisibilityForControlPQ()
                                    SetInitialDataPQ()
                                Catch ex As Exception
                                    ShowErrMsg("Event Error et_ITEM_PRESSED: " & ex.Message)
                                Finally
                                End Try
                            End If ' action close
                        End If 'mode close
                    End If 'else if

  • Changes in Sales order materail availabilty date.

    What is impact if we change Sales order materail availabilty date in sales order user exit using some program.

    Hi Mayuresh,
    Big impact.  Impact is smaller if you only intend to push the date into the future.  Could be a big problem if you move the date backward in time.  This means that YOU are now assuming responsibility that the Sales orders will be delivered according to business requirements.  You are also assuming responsibility for ensuring that all ATP data is consistant for these changed orders.
    SAP has constructed their ATP checks so that if you follow their best practices, the system will maintain the Material Availability date according to the business rules you have set.  Any time you artificially move this date backward, you are overriding all of the rules you have set into SAP.  Moving the date forward is usually less of a problem, except that it implies that you intend to send the materials to the customer at a later date.  As long as your Sales dept and your Customers accept this, then it can be done.  With testing.
    Some issues:
    MAD of a particular order affects ATPs of all other sales requirements for the same plant/material.  Altering the MAD of one doc could cause another confirmed sales doc to go on backorder.
    MAD is also passed to MRP and Cap Planning as a requirement.  Altering MADs will probably affect your forecasts and the feasibility of your production plans.
    If this is a non-negotiable requirement for your business, you need to test thoroughly all possible business scenarios.  Everything in Quote-to-Cash, and everything in Procure-to-Pay, using both forward scheduling, backward scheduling, and 'today' scheduling.  Also, you will have to be very careful HOW you change this date (which userexit).  SAP generally recalculates many dates and quanties in a sales doc each time it calculates MAD. All of these dates and quantities need to be consistant for the system to work properly.
    I have participated on a project where this was done.  We had a dozen expert users testing for three  weeks before we signed off and implemented in the live system.  After we implemented, we were STILL making emergency changes to the code and to the business procedures, two months after the implementation.
    Regards,
    DB49

  • Add items to sales order by "Item details: configuration".

    Hi Experts.
    I need to add item to sales order but not in normal way but like this:
    1. Mark higher level item
    2. Click: Item details configuration
    3. Click: Result
    4. Click: Insert
    5. choose material.
    Do you know any FM for this?

    Hi
    If you didn't get anything then why don't you try with creating a recording in SM35 and call that recording. We did somehow similar thing. We couldn't find any function module and my ABAPER asked me to create recording in SM35 and he converted that into some BAPI or may be he called directly that recording. If you are ABAPER then try this and if you are functional like me then talk to your ABAPER.
    Thank$

Maybe you are looking for