How to use the field checkbox for bapi parameter ?

Dear All,
Now, i find some code as below.
The BAPI is uesd to create or update the sales order; but checkbox for bapi parameter have not been give values 'X'. why?
take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
Could you teach what happed?
case gt_all_hd-sd_doc_cat.
when 'C'.
call function 'BAPI_SALESORDER_CREATEFROMDAT2'
exporting
order_header_in = gs_order_hd
importing
salesdocument = gv_vbeln
tables
return = gt_return
order_items_in = gt_items
order_partners = gt_partners
order_schedules_in = gt_schedules
order_conditions_in = gt_conditions.
when others.
call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
exporting
sales_header_in = gs_order_hd1
importing
salesdocument_ex = gv_vbeln
tables
return = gt_return
sales_items_in = gt_item1
sales_partners = gt_part1
sales_schedules_in = gt_sch1
sales_conditions_in = gt_cond1.
endcase.

If you want to change a value, you need to pass the value in the 'order_items_in = gt_items' structure.
You also need to add an 'X' in the 'order_items_inx = gt_itemsx'  structure for the same field.
If you do not pass the 'X' then the value will not be updated...
It looks like you are not passing the required '...x' structures.
For more info see the documentation:
Notes                                                                               
1.  Mandatory entries:                                                                               
ORDER_HEADER_IN : DOC_TYPE     Sales document type                      
                    SALES_ORG    Sales organization                       
                    DISTR_CHAN   Distribution channel                     
                    DIVISION     Division                                                                               
ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party           
                    PARTN_NUMB   Customer number                                                                               
ORDER_ITEMS_IN..: MATERIAL     Material number                                                                               
2.  Ship-to party:                                                                               
If no ship-to party is entered, use the following: Ship-to party =  
      sold-to party.                                                                               
3.  Commit control:                                                     
      The BAPI does not have a database commit. This means that the       
      relevant application must leave the commit, in order that can be    
      carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is 
      available for this.                                                                               
4.  German key words:                                                   
      The following key words must be entered in German, independantly of 
      the logon language:                                                 
      DOC_TYPE     Sales document type, for example: TA for standard order
      PARTN_ROLE   Partner role, for example: WE for ship-to party                                                                               
Further information                                                                               
You can find further information in the OSS. The note 93091 contains    
  general information on the BAPIs in SD.

Similar Messages

  • How to use the checkbox for bapi parameter ?

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • How to Use the same iview for both KM End User and the KM Administrator

    Hi friends,
    *This is my scenario :* How to Use the same iview for both KM End User and the KM Administrator but with different Context
    Menu Options.
    i followed these steps but im getting same context menu for both KM End User and the KM Administrator .
    Assign the role Content Administrator to the user km_admin. This is needed so that km_admin can change
    the presentation settings for the KM Folder u201EReports_kmFolder‟.
    Now, login with user km_admin. Navigate to the Km Folder reports_kmFolder through Content Administration
    -> Km Content. Click on Details link of the folder reports_kmFolder.
    Go To Settings -> Presentation. Click on the tab u201ESettings for You‟-> Click on button u201ESelect Profile‟.
    Select the radio button corresponding to u201Elayout Set‟, and choose u201EConsumerExplorer‟ from the dropdown.
    Click u201EOK‟.
    Select both the check boxes corresponding to Items Affected as shown above, and click u201ESave‟
    Now, remove the u201ESuper Administrator‟ role from the user km_admin and login with this user.
    How rto resolve this????
    Regards,
    Prasad.

    Hello Prasad,
    Most likely the user km_admin still has system principal roles assigned, even though you removed the Super Admin role, you should check that this user doesn't have any other admin roles, otherwise it will be considered a System Principal user and will therefore still have access to all content. For more information see http://help.sap.com/saphelp_nw70/helpdata/en/19/56f28fbd4e11d5993b00508b6b8b11/frameset.htm
    Try creating a new user with just read access to the content and you should see that it will not be able to make any changes etc.
    Regards,
    Lorcan.

  • How to use the second display for installation OS in my vertical lines iMac

    My 17" iMac display is full of vertical lines, it is unuseable. Does anyone know how to use the second display for Mac OS X or disable the first display for installation Mac OS x ?

    Go to: *System Preferences > Displays* and select the Arrangement tab, then relocate your Menu bar by dragging it to the other display.
    Unfortunately there is no Hardware or Software switch to turn off the iMac's Internal Display.

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • How to use the LAN NetStream for peer transmission, please help, write a sample code

    How to use the LAN NetStream for peer transmission, please help, write a sample code

    No reply, I reply, Oh

  • How to use the game centre for apple iPad mini

    How to use the game centre for apple iPad mini

    Here you go:
    Using Game Center on your Mac or iOS device - Apple Support

  • How to use the print option for photos?

    How to use the print option for photos.  I have a wireless printer but how do I set it up?

    http://www.apple.com/support/iphone/assistant/airprint/

  • How to use the Output clause for the updated statment

    How to use the output clause for the below update stament,
    DECLARE @MyTableVar table(
        sname int NOT NULL)
    update A set stat ='USED' 
    from (select top 1 * from #A 
    where stat='AVAILABLE' order by sno)A
    Output inserted.sname
    INTO @MyTableVar;
    SELECT sname
    FROM @MyTableVar;
    Here am getting one error incorrect syntax near Output
    i want to return the updated value from output clause

    see
    http://blogs.msdn.com/b/sqltips/archive/2005/06/13/output-clause.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can someone help me in easy steps on how to use the home sharing for music on itunes.

    Hi can someone give me easy to follow instructions on how to use the home sharing for itunes.

    iTunes- Setting up Home Sharing on your computer
    Setting up Home Sharing for Apple TV (2nd generation)
    Troubleshooting Home Sharing

  • How to use the Validate step for Approve step

    Hi Experts,
       I have modeled a workflow with the steps start,process, validate, approve, process and stop.
    Process is set to owner and approve is set to some other user user1.
       My requirement is as follows :
    1) Approve the records by approver and then it should send it to the next step for further processing
    1.1)  if the approver did not approve the record it should send a error message until the record is approved. So it should not send it to the next step when record is not approved
    I am using a field called item status for approving and disapproving the records. My validation is based on this field only... Validation working fine when i tested it manually.
    But my issue is when am using this validate step in workflow design validation is getting triggered for all the users.as per my requirement only approver should get the error message.But in my scenario owner is getting the error message and approver is not getting any message.
    How can i use the validate step only for particular step say approve in workflow.
    Can anyone please help me out how should use validate step only for approve step...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 17, 2008 2:48 PM

    Hi ,
      I have set the validation property to "None".
      My design is as follows :
    start->process->validate->approve->stop.
      Owner is assigned to process step and approver is assigned to approve step.
    Now my problem is owner is also getting this error message along with the approver. AS per the design both process, approve users are getting the error message.
    As per my requirement only approver should get this prompt but not the owner.
    How can i restrict only for specifc user to get this message.
    Can anybody please advice how can restrict the owner to not get this error message...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 24, 2008 2:18 PM

  • MDT Console with more then 15 machines, How to use the same drivers for more machines.

    Hello,
    I'm am looking for a solution to make our MDT design as effective as possible(as small as posible).
    The Situation:
    The company has more then 15 different computers added to the MDT console for the automated installation of Windows 7. The installations are done in 2 different ways, 1 with a local USB key installation (with the deployment folder on the USB key) and the other
    installation is a network USB key installation (with the deployment folder on the server).
    The local USB key exists for offices in parts of the world where the internet connection is poor.
    The problem:
    We have machines which can use the same driver for different kinds of hardware functions (LAN, WLAN, etc..)
    If we add a new machine to the MDT and we don't check the box for "Import drivers even if they are duplicates of an existing driver" we will automatic use the driver which already exists in the deployment folder. If say half a year
    later we stop using an older machine which "may" have drivers that are being used for other machines and we delete the machine from MDT we should
    NOT check the box "Completely delete these items, even if there are copies in other folders". The problem is that this can also lead to a lot of unused drivers in the deployment folder also because we do not know exactly how many
    computers are using a certain driver.
    At the moment we have another deployment share with for each machine its own drivers installed (so some drivers will be multiple times in the deployment folder) as you can guess this becomes really big.(deployment folder of more then 24 GB). The advantage
    of this is that we can delete a machine from the MDT list without having to worry if the drivers for that machine might be used by other machines. It is now just becoming to big in size(GB).
    The Question:
    Is there not an option within MDT that checks automatically if the drivers connected to a certain machine in MDT are being used by other machines? In this case we would check the box "Completely delete these items, even if there are copies in other folders"
    and MDT would not delete the drivers which are still used for the installations of other computers.
    Thanks in advance.
    Greets,
    Arie

    Arie,
    I think you are over-complicating this. Basically using drivers that already exist is the way to go. Otherwise drivers will be imported a second, third or fourth time. Which also takes up allot of disk space. If you're concerned about driver management,
    then I would suggest to drop your concerns, since there is nothing to less you can do about this particular issue. As long as you don't delete the driver that's been imported earlier by another machine there is nothing to worry.
    Ask yourself:
    - how long am I going to support model x
    - how many times do I want to update drivers
    With selection profiles you can easily target which content needs to go where (on your USB drive of-course)
    I can imagine that managing 25 shares for 25 different models, just because you 'refuse' to have old drivers in your share, or have removed support for some hardware models, isn't really time and energy efficient too.
    If you take a look in your deploymentshare\control folders you will see some XML files. These XML files hold all the entries in your deploymentshare. So your drivers.xml and drivergroups.xml (depending on the number of groups you have) are going to be very
    big XML files. These XML files are read by MDT to identify the objects in MDT and under which folder the objects are located.
    It's not possible to create or have an dependency between driver files and hardware models, other then creating groups under "Out-of-box Drivers" and using selection profiles.
    Another suggestion would be to decrease your number of hardware models drastically. On the other hand, having 25 Gb of offline media isn't really a big deal either. Portable and removable media of those sizes (32 and 64 Gb) isn't that expensive as it used
    to be 5 years ago.
    Don't get me wrong, I perfectly understand your desire to manage this, but MDT doesn't provide any other way, then the things I have pointed out to you here.
    Good luck! :)
    If this post is helpful please click "Mark for answer", thanks! Kind regards

Maybe you are looking for

  • Main content text does not scale down on iPhone

    Hello my Dreamweaver friends, I'm working on a site for a friend -- a simple fixed width layout (header, footer, sidebar and main content). It looks good on Safari and Firefox. But on the iPhone and iTouch the text in the mainContent area does not sc

  • FireFox 5: How Do you get NEW windows to AUTOMATICALLY maximize?

    When you select the option "New Window" (Ctrl + N OR 'Open A New Window' Icon), how do you get your NEW window to AUTOMATICALLY open MAXIMIZED [in FireFox 5]? Is there a "special" option under Tools > Options > "Whatever?", is there a special hotkey

  • Best Practice paper for SSO Security CheckList

    Is there any white papers or guides on how to secure the SSO? THKS

  • [SOLVED] Building perl failed cannot load libperl.so

    I'm trying build base packages on another arch (sh4). Is there any tip about this build error? yaourt -SAb perl omit http://archlinuxarm.org/developers/building-packages ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignor

  • Wrinting into html

    Hello guys, I want to make a content management system. But to keep everything fast, I want to alter html pages automatically from my JSP pages... For example: I add a text in the admin to the database. Then I want to add this text to the index.html