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.

Similar Messages

  • 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.

  • How to use the BAPI_GOODSMVT_CREATE for Transfer posting Sales order

    Hi Friends,
    How to use the Bapi BAPI_GOODSMVT_CREATE for transfer posting sales order to sales order.
    pls, send the list of parameteres to pass to the bapi, if program avail please send it to me.
    Thanks in advance
    Shankar

    You have to pass Header and GM code as the INput parameters for uing this BAPI....GM code would be structure.
    Also you have to pass the INternal table Item for the goods mvt cxreate which will contains
          BATCH.
          MOVE_TYPE.
          ENTRY_QNT.
          MOVE_PLANT.
          MOVE_STLOC.
          MOVE_BATCH.
          MOVE_REAS
    these parameters.
    Regards,
    Sushil.

  • How to use Extensionin, Extensionout FOR BAPI ENHANCEMENT

    Hi,
    I need to do the enhancemen for BAPI. I don't know how to do it.
    if there is any good procedure plz give me.
    Thanks in Advance,
    NV

    Hi ,
    In the EXTENSIONIN param Structure should be BAPI_TE_XXXXX(Which has the custom fields) .
    If you don't know one in se11 search with BAPI_TE_* , I am sure you will one which has ur fields.
    And then in Value part1 should have your data.
    For Ex. you want to send company code , asset no.
    first4 will be your comp code , Next 12 will ur Asset no .
    Please revert back if more help required.
    Also Check for similar work
    [Thread|Re: How to use BAPI]
    Rhea.

  • How to use the API for DATE, MONTH  AND YEAR

    I would like to use the java api in .util.calender in the java api to get the date.
    How to implement the API for the "DATE","MONTH","YEAR" which are available provide by java?
    can someone give me in one complete code?

    From the Java Developers Almanac 1.4:
        Calendar cal = new GregorianCalendar();
        // Get the components of the date
        int era = cal.get(Calendar.ERA);               // 0=BC, 1=AD
        int year = cal.get(Calendar.YEAR);             // 2002
        int month = cal.get(Calendar.MONTH);           // 0=Jan, 1=Feb, ...
        int day = cal.get(Calendar.DAY_OF_MONTH);      // 1...
        int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // 1=Sunday, 2=Monday, ...

  • How to use the GPU for calculations?

    Hello everybody,
    I am working on a project at the Ruhr-University, where i have to determine the calculation speed of ActionScript, e.g. in calculating MD5 Hash values.
    Is it possible to use the GPU for the calculation? It would be the best, when i can use the GPU and the CPU for the calculations.
    I already know that ActionScript is running on the CPU und the GPU is used for video rendering.
    Is there a chance to use specifically the GPU for the calculation?
    Regards
    Patrick

    HOW TO USE Scroll Panes
    The JScrollPane API

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • How to use the method for field-exit to trigger the workflow?

    Dear all,
         I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
         I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
        Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
    Thanks and regards,
    S.Suresh

    Hi
    You want to place your method which is defined for particular filed.right?
    For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI.  So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
    Regards,
    Hemalatha.

  • How to use the Packager for iPhone ?

    Hi What`s up guys??
    I Download the Packager for iPhone and i can`t used this ?
    please help me and show me in picture how to use this.

    my question about http://labs.adobe.com/technologies/packagerforiphone/ package.

  • How to use the Zoom for Pocket PC 2003?

    I try to use the LabVIEW7.1 PDA module zoom feature in my Pocket PC 2003. But I can not make it works right. For example, if I try to zoom to rectangle, the graph does not draw in the selected rectangle.
    I attached my code.
    Attachments:
    sin.vi ‏48 KB

    Hello,
    I have taken a look at your vi and believe I understand your problem. The vi works if you allow the sine wave to draw to completion and then zoom in on a certain part of the graph. You cannot zoom while the graph is still drawing because the Zoom button click is not registered. Your program is looping inside the case structure for the run button so it does not see that the zoom button is pressed.
    Also, I see that when you click Zoom and then draw the sine wave, the wave is not drawn inside the selected area. The graph goes back to its default values. This behavior is because the x and y max and min are set inside the graph properties. Whether this is set by autoscaling or by setting the max and min in the graph properties page, these values overwrite the zoom rectangle values. In LabVIEW for the PC you can set max and min values programmatically through property nodes. However, property nodes are currently not supported in LabVIEW for PDA. So, unfortunately there is no current way to programmatically change the values so that the sine wave is drawn inside the selected zoom region.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • How to use the cloud for music

    How do I upload part of my music to the cloud to share with my laptop when away from the house?

    If streaming music when connected to your carrier's cellular network, it uses cellular data.
    Only the music you purchased from the iTunes Store can be streamed unless you have purchased iTunes Match.
    If there is a slow down at the server where the music is stored or high traffic, steaming can be paused. You can also download a song from the iTunes Store cloud to your iPhone so it doesn't need to be steamed.

  • Instruction for how to use the dirver for a look in amplifier

    Hello,
    I have downloaded an AMETEK SIGNAL RECOVERY (Formerly EG&G/PerkinElmer Instruments) LabView Driver Software for SIGNAL
    RECOVERY Lock-in Amplifiers Models 5109 and 5110 form www.signalrecovery.com
    I would like to know if support materials for the driver. i can not make it run with my computer
    Thank you very much.
    Best regards,
    Fabio Vigliotti

    Hi Fabio,
    You may want to contact AMETEK about this driver. I will only be able to help you minimally.
    But if you describe what is going on, I can do my best to help you out.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the out parameter of a transformation

    Hi All,
    I have a requirement where I need to move all the transformations from process flows to map.SO for each transformation I need to have 1 map which calls this transformation.I have 1 transformation which has both input and output parameter.If I use this transformation in mapping then how to use the out parameter of thsi transformation.This out parameter needs to beused in other mappings.Can soemone please help me.
    Thansk in advance

    Hi,
    I'm not quite sure what you are trying to do.
    What works: Connect the outgroup of a pre- or post-mapping process operator to the mapping output parameter operator..
    What does not work: Connect the outgroup of an operator that can return more than one row (e.g. table operator, filter, joiner ,...) to the mapping output parameter operator. The mapping output parameter just returns "one row", like a pl/sql function call.
    You cannot pass a "data stream" from one mapping to another. Maybe the pluggable mappings is what you are looking for.
    Regards,
    Carsten.

  • How to use the BAPI BAPI_ALM_ORDER_MAINTAIN

    HI experts,
    I am using BAPI_ALM_ORDER_MAINTAIN to update the Object list in ECC 6.0 for a service order txn code IE31.
    I dont know how to use this BAPI_ALM_ORDER_MAINTAIN for object list updation.
    It will be very helpful if anyone who worked on this or know about BAPI_ALM_ORDER_MAINTAIN how to use, plz reply this thread.
    I am really searching for along time about the bapi, but couldnt getany thing.
    the doc of BAPI_ALM_ORDER_MAINTAIN is very vague, that i m not able to understand.
    So, sap persons, plz reply this thread,
    Ntk

    Friends,
    I am getting the following message with the FM BAPI_ALM_ORDER_MAINTAIN,  "Order  is changed, but not created".
    But when i see the Service Order, im not able to see the new equipments added in the Object tab.
    Here is my code...
    DATA: l_alm_bapi TYPE c,
          T_METHODS TYPE STANDARD TABLE OF bapi_alm_order_method,
          ls_methodS TYPE bapi_alm_order_method,
          LS_OBJ type bapi_alm_order_objectlist,
          lt_OBJ type standard table of bapi_alm_order_objectlist,
          lt_operation
             TYPE STANDARD TABLE OF bapi_alm_order_objectlist,
          ls_operation TYPE bapi_alm_order_objectlist,
          lt_oBJ_up
             TYPE STANDARD TABLE OF bapi_alm_order_olist_up,
          ls_oBJ_up TYPE bapi_alm_order_olist_up,
          lt_return TYPE STANDARD TABLE OF bapiret2,
                lt_return1 like BAPIRET2,
          ls_return TYPE bapiret2,
          LS_NUMBERS TYPE   BAPI_ALM_NUMBERS,
         T_NUMBERS TYPE STANDARD TABLE OF BAPI_ALM_NUMBERS.
    CLEAR T_METHODS.
    LS_METHODS-REFNUMBER = 1.
    LS_METHODS-OBJECTTYPE = ''.
    LS_METHODS-METHOD = 'SAVE'.
    LS_METHODS-OBJECTKEY = '%00000000001'..
    APPEND LS_METHODS TO T_METHODS.
    LS_METHODS-REFNUMBER = 1.
    LS_METHODS-OBJECTTYPE = 'OBJECTLIST'.
    LS_METHODS-METHOD = 'CHANGE'.
    LS_METHODS-OBJECTKEY = '%00000000001'..
    APPEND  LS_METHODS TO T_METHODS.
    CLEAR T_NUMBERS.
    LS_NUMBERS-AUFNR_IN = '000004010558'..
    APPEND LS_NUMBERS TO  T_NUMBERS.
    LS_OBJ-COUNTER = 1.
    LS_OBJ-FUNCT_LOC = '5619'.
    LS_OBJ-EQUIPMENT = '0000010000292'.
    LS_OBJ-SORTFIELD = 'X'.
    ls_oBJ-PROCESSING_IND = 'X'.
    ls_oBJ-SERIALNO = ''.
    ls_oBJ-SERMAT = '0010-30000'.
    ls_oBJ-DESCRIPTN = 'MAIN UNIT DR300'.
    APPEND LS_OBJ TO LT_OBJ.
    LS_OBJ_UP-SORTFIELD = 'X'.
    LS_OBJ_UP-PROCESSING_IND = 'X'.
    APPEND LS_OBJ_UP TO LT_OBJ_UP.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        IT_METHODS              = T_METHODS
      IT_HEADER               =
      IT_HEADER_UP            =
      IT_HEADER_SRV           =
      IT_HEADER_SRV_UP        =
      IT_USERSTATUS           =
      IT_PARTNER              =
      IT_PARTNER_UP           =
      IT_OPERATION            =
      IT_OPERATION_UP         =
      IT_RELATION             =
      IT_RELATION_UP          =
      IT_COMPONENT            =
      IT_COMPONENT_UP         =
       IT_OBJECTLIST           = LT_OBJ
       IT_OBJECTLIST_UP        = LT_OBJ_UP
      IT_OLIST_RELATION       =
      IT_TEXT                 =
      IT_TEXT_LINES           =
      IT_SRULE                =
      IT_SRULE_UP             =
      IT_TASKLISTS            =
      EXTENSION_IN            =
       RETURN                  = LT_RETURN
       ET_NUMBERS              = T_NUMBERS.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN = lt_return1.
    Kindly help me out anyone who has worked with these FM. I am not able to do this.

Maybe you are looking for