Using BAPI for Quotations: BAPI_SLSTRANSACT_CREATEMULTI

Hi everyone,
I am working with the BAPI: BAPI_SLSTRANSACT_CREATEMULTI  to create an enquiry OR even a quotation. Using t.code SE37, in the following tables I enter:
Header: (2 fields)
Process_Type: ZAG (t.type for enquiry)
Description: description of the enquiry
Partner: (3 fields)
Partner_Fct: (partner function) - e.g. 00000001 (SP)
Partner_No: (partner number) - BP ID
KIND_OF_ENTRY
(Entered 5 partners; 1 that was entered manually (SP) and the other four which are determined auto.)
HENCE in the INPUT FIELD I have 5 BP's
INPUTFIELDS (1 Field)
Fieldname : entered 5 BP's
On execution, the return table shows three errors:
E CRM_ORDER_CUST       004 System error: Incorrect call of read module for table CRMC_OBJECTS!
W CRM_ORDER                003 Object type  cannot be processed
A CRM_ORDER                 009 Program error: Incorrect values in interface parameters
I entered handle 00000001 for header and 0000002 for the partner and specified the same in the INPUTFIELDS: REF_HANDLE, it leads to more errors
Any solutions please? Deserving points shall be awarded.
Best Regards,
Jacob.
Edited by: Jacob Raj on Mar 14, 2008 1:50 PM

Hi,
May be following code is useful for you.
******************************Header  Data***********************************
DATA: lwa_header TYPE bapibus20001_header_ins,
            lwa_input_fields TYPE bapibus20001_input_fields.
lwa_header-handle = '0000000001'.
  lwa_header-process_type = lwa_crmd_orderadm_h-process_type.
  APPEND lwa_header TO i_header.
  lwa_input_fields-ref_handle  = '0000000001'.
  lwa_input_fields-objectname  = 'ORDERADM_H'.
  lwa_input_fields-ref_kind    = 'A'.
  PERFORM populate_input_field_name  USING 'PROCESS_TYPE' CHANGING lwa_input_fields
********************************Partner Data********************************
DATA:lwa_partner TYPE bapibus20001_partner_ins,
       lwa_input_fields TYPE bapibus20001_input_fields,
lwa_partner-ref_handle            = '0000000001'.
  lwa_partner-ref_kind              = 'A'.
  lwa_partner-ref_partner_handle    = '0001'.
  lwa_partner-kind_of_entry         = 'C'.
  lwa_partner-partner_fct           = '00000001'.
  lwa_partner-partner_no            = <partner no>.
  lwa_partner-no_type               = 'BP'.
  lwa_partner-display_type          = 'BP'.
  APPEND lwa_partner TO i_partner.
  lwa_partner-ref_partner_handle    = '0002'.
  lwa_partner-partner_no = <partner no>..
  lwa_partner-partner_fct = '00000014'.
  APPEND lwa_partner TO i_partner.
  lwa_partner-kind_of_entry         = 'A'.
  lwa_partner-ref_partner_handle    = '0003'.
  lwa_partner-partner_no = <partner no>.
  lwa_partner-partner_fct = '00000012'.
  APPEND lwa_partner TO i_partner.
  CLEAR lwa_input_fields.
  lwa_input_fields-ref_handle    = '0000000001'.
  lwa_input_fields-objectname  = 'PARTNER'.
  lwa_input_fields-logical_key = '0001'.
  lwa_input_fields-ref_kind    = 'A'.
  PERFORM populate_input_field_name  USING 'DISPLAY_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'KIND_OF_ENTRY' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'NO_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_FCT' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_NO' CHANGING lwa_input_fields.
  CLEAR lwa_input_fields.
  lwa_input_fields-ref_handle    = '0000000001'.
  lwa_input_fields-objectname  = 'PARTNER'.
  lwa_input_fields-logical_key = '0002'.
  lwa_input_fields-ref_kind    = 'A'.
  PERFORM populate_input_field_name  USING 'DISPLAY_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'KIND_OF_ENTRY' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'NO_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_FCT' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_NO' CHANGING lwa_input_fields.
  CLEAR lwa_input_fields.
  lwa_input_fields-ref_handle    = '0000000001'.
  lwa_input_fields-objectname  = 'PARTNER'.
  lwa_input_fields-logical_key = '0003'.
  lwa_input_fields-ref_kind    = 'A'.
  PERFORM populate_input_field_name  USING 'DISPLAY_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'KIND_OF_ENTRY' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'NO_TYPE' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_FCT' CHANGING lwa_input_fields.
  PERFORM populate_input_field_name  USING 'PARTNER_NO' CHANGING lwa_input_fields.
FORM populate_input_field_name  USING lv_field_name TYPE string
                                      CHANGING lwa_input_fields TYPE bapibus20001_input_fields.
  lwa_input_fields-fieldname  = lv_field_name.
  APPEND lwa_input_fields TO i_input_fields.
ENDFORM.
***************************CALL  BAPI_SLSTRANSACT_CREATEMULTI*********************************
CALL FUNCTION 'ZBAPI_SLSTRANSACT_CREATEMULTI'
        TABLES
          header           = i_header
          return           = i_return
          sales            = i_sales
          partner          = i_partner
          input_fields     = i_input_fields
          created_process  = i_created_process
          saved_process    = i_saved_process
COMMIT WORK.
If helpful kindly reward me.
Thanks & Regards,
Anirban

Similar Messages

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

  • Using BAPIs for sales contracts

    Hi,
    I'm having this situation that I have to upload sales contracts into SAP from flat files. We planned to use BAPIs for this purpose. Is it a good option. Can anyone suggest better ideas. If BAPI is a good option, has anyone used standard BAPIs for sales contracts updation in SAP System. If yes, can you guide me through the process.

    Hi,
      You can start off with a program with:
    Get the filename of the convert file
      IMPORT /SAPDMC/LSMEMORY FROM MEMORY ID '/SAPDMC/LSMW'.
      V_PROJECT = /SAPDMC/LSMEMORY-PROJECT. " Project
      V_SUBPROJ = /SAPDMC/LSMEMORY-SUBPROJ. " Subproject
      V_OBJECT  = /SAPDMC/LSMEMORY-OBJECT.  " Object
      IF V_PROJECT IS INITIAL.
        V_PROJECT = 'XXXX_LOC'.
      ENDIF.
      IF V_SUBPROJ IS INITIAL.
        V_SUBPROJ = 'SD'.
      ENDIF.
      IF V_OBJECT IS INITIAL.
        V_OBJECT = 'XXXX_VA41'.
      ENDIF.
    Function will return path of converted file by LSMW object
      CALL FUNCTION '/SAPDMC/LSM_FILE_INFO_GET'
        EXPORTING
          PROJECT           = V_PROJECT  " /sapdmc/lsmemory-project
          SUBPROJ           = V_SUBPROJ  " /sapdmc/lsmemory-subproj
          OBJECT            = V_OBJECT   " /sapdmc/lsmemory-object
          X_ONLY_USED_FILES = 'X'
        IMPORTING
          FILE_CONV         = V_DSNAME   " Path of converted file
        EXCEPTIONS
          NO_SUCH_OBJECT    = 1
          OTHERS            = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    I am not much of an LSMW expert so wont be able to comment much.
    regards
    Aveek

  • Creating a PO Using BAPI For Multiple PLants Or Multiple Line Items

    Hi All
        Can you please suggest me how to create a Purchase Order Using BAPI_PO_Create1 for Multiple Plants Or for Multiple Line items. The Requirement is like the PO is for single material for single vendor but for mulple stores i.e plants
    NOte:  Suggest me the  Creation of PO for MUltiple Line items or for multiple plants Using BAPI . Hope you people will give me the needful.
    Regards
    Shivakumar Bandari

    Hi,
    Here is the sample code to do that...
    *---> po header data
      wa_poheader-vendor    =  your vendor..
      wa_poheader-doc_type  =  Your doc type..check with Functional contact....
      wa_poheader-purch_org =  Purchasing Org..
      wa_poheader-pur_group =  Purchasing Group
    *---> po header data (change toolbar)
      wa_poheaderx-vendor    =  'X'.
      wa_poheaderx-doc_type  =  'X'.
      wa_poheaderx-purch_org =  'X'.
      wa_poheaderx-pur_group =  'X'.
    *---> poitem data
    data: item like ekpo-ebelp.
    item = '0010'.
    loop at t_parts.
      it_poitem-po_item  =  '00010'.
      IT_POITEM-PLANT    =  Plant..
      IT_POITEM-STGE_LOC =  Sloc...
    *---> poitemx (item data change toolbar)
      it_poitemx-po_item  =  '0010'.
      it_poitemx-po_itemx  =  'X'.
      IT_POITEMX-PLANT    =  'X'.
      IT_POITEMX-STGE_LOC =  'X'.
    *---> add record's to internal table
      APPEND:  it_poitem,
             it_poitemx.
    endloop.
    *call bapi_po_create1
      CLEAR v_ebeln.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = wa_poheader
          poheaderx        = wa_poheaderx
        IMPORTING
          exppurchaseorder = v_ebeln
        TABLES
          return           = it_return
          poitem           = it_poitem
          poitemx          = it_poitemx.
    *---> check the return table for error message
      READ TABLE it_return WITH KEY type = 'E'.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      endif.
    Thanks,
    Murali

  • Using BAPI for outbound delivery processing "BAPI_DELIVERYPROCESSING_EXEC"

    Hi all,
    I am using this bapi "BAPI_DELIVERYPROCESSING_EXEC" for Outound delivery processing. But How can I use this BAPI for Batch Split functionality. Because Here we have to enter batch also while processing outbound delivery with reference to Sales Order. Please reply anyone on high priority
    Regards,
    Venkat
    Ph: 9990417848

    Hi,
    When u r using BAPI then include in it this batch Split fnality like do the recording in SHDB and transfer recording and in this recording record the batch split.
    Also what u can do is create a BDC and include the std bapi with this batch split in it.
    Regards
    Krishna

  • SAP ECC 6.0 - Using BAPIs for C# to extract data out

    I have had a client recommend a strategy of extracting data usin C# (Visual Studio 2005) to extract data from SAP ECC using BAPIs.
    We do have an existing methodology in place using flat files to extract data to non SAP systems
    We have purchase XI which we intend to implement next year.
    I basically wanted to keep things tidy and continue with the flat file interface strategy just to keep things simple going forward to XI.
    THen there is also the security piece, the developer has had to slowly build a profile / roles that alows him to come in thru visual studio to access these BAPIs
    I am looking for anyone who has had experience with this and what your experiences are.  As well, what are the SAP best practicies concerning this strategy
    Thank YOU ALL who will reply

    I think that SAP's strategy toward exposing BAPI is leaning toward leveraging their AS-JAVA stack.  With the AS-JAVA Enterprise Services and standard delivered web content, SAP is already exposing many existing BAPI/Business Functionality outside of the ABAP world.   However, that's not saying that traditional flat files have no place in the future.  Matter of fact, I don't see flat/delimited files going away any time soon.
    It all really comes down to what you are doing, you may even end up with a landscape that's a mix of files/RFCs.  Here inhouse, we leverage file based transfers for large data sets such as SAP BI OHS extracts, and daily R/3 FI extracts.  Why file?  because it's simple, easy to control, and you can see the data being transferred.  A file can be "hold in my hands" if you will, at best there's just a few characters in-flight.
    As for RFCs, any type of RFCs in fact (Anything from sap .net connector to AS-JAVA ESOA Based ES), are basically designed for transactional data.  Here, you are looking at things that are high in transactional count but small in individual size.  Your client's call using C#, it all really depends on how you are doing it.  MOST IMPORTANTLY:  Make sure you are using a proven, standarized, and SAP supported way, PERIOD.  NEVER EVER go into production with a "hack".
    For the high-transactional-count-small-individual transactions, we leverage BizTalk Server (BTS) here.  I'll be frank, we are not using BTS because we wrote it.  We are using BTS because it just works better for us, in our environment.  BTS now support SAP 2.0 connector (registered program ID) and SAP 3.0 (WCF based, direct SAP RFC call, supported by Microsoft AND SAP).  We are leveraging these adapters and BTS (as distribution and transformation) in our environment more and more.
    So, long story short:  Determine the transaction type, multiple solutions is ok, make sure the solution is supported!

  • How to update data using BAPI for MD61

    Hello,
    IN my zprogram i used to bapis for uploading data from flat file to sap-system
    1)BAPI_requirement_create
    2)BAPI_requirement_change
    i)my program is taking data from my flat file but it is wipping out old data i nned to update not to overwrite is there any BAPI for this query
    ii)One more thing if data is already entered in on date (i.e 10.07.2009) and when he upload data from flat file for another date same month (12.07.2009) old date data sholud not removed ...
    Please reply me if my query is not understand..
    Thanks in advance..

    Assuming you have your new requirements in table IT_REQ.
    You could do something like:
    DATA: it_req TYPE TABLE OF BAPISSHDIN.
    DATA: l_req TYPE BAPISSHDIN.
    DATA: it_req_out TYPE TABLE OF bapisitmeo.
    DATA: l_req_out TYPE bapisitmeo.
    *   Get existing requirements
        CLEAR it_req_out[].
        CALL FUNCTION 'BAPI_REQUIREMENTS_GETDETAIL'
             EXPORTING
                  material         = p_matnr
                  plant            = p_werks
                  requirementstype = p_bedae
                  version          = p_versb
                  reqmtsplannumber = ''
             TABLES
                  requirements_out = it_req_out[]
                  return           = lt_return[].
    *   Append old requirements to requirements table
        LOOP AT it_req_out INTO l_req_out.
          MOVE: l_req_out-date_type TO l_req-date_type,
                l_req_out-req_date TO l_req-req_date,
                l_req_out-req_qty TO l_req-req_qty,
                l_req_out-unit TO l_req-unit.
          APPEND l_req TO it_req.
        ENDLOOP.
    *   Change requirements
        CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
             EXPORTING
                  material                 = p_matnr
                  plant                    = p_werks
                  requirementstype         = p_bedae
                  version                  = p_versb
                  reqmtsplannumber         = ''
                  vers_activ               = p_vervs
             TABLES
                  requirements_schedule_in = it_req[]
                  return                   = lt_return[].

  • Using BAPI for calling transaction from NON-SAP system

    hi all,
    im new to BAPI , i m working in producton firm we r short of license of SAP, we have given few authourisations to our venders and  we also have implemented HR portal and we r having shortage of license in that too. so my question is that can we use BAPI to reduce the use of SAP on vendors side and also for HR portal? like by using non-sap system on vendors side and for portal we can resolve the issue of licenses..???
    if yes then i want to do it that will be good for my carrer point of view. plzz help me out and give me the simple solution on it. we can not afford to buy the licenses bcoz of financial issues..
    thanxx....

    Hi Nilesh,
    Depending on the Scenario you need to decide what BAPI you will use. what solution are you excepting?
    Regards
    Shital

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • How to update the Weekly data using BAPI for MD61

    Hi All,
    i have used two BAPI's in my Z program to upload data from flat file to sap-system (BAPI_REQUIREMENTS_GETDETAIL and BAPI_REQUIREMENTS_CHANGE) and i uploaded the Monthly Data from the flat file on sap system successfully.
    but i have to also upload the Weekly Data on the sap system using BAPI.
    is there any BAPI for the same or what can be the solution for the uploading weekly data on sap system ?
    Please reply me.
    Thanks in advance..
    Edited by: Prajapati_Shyam on Dec 29, 2010 4:19 PM

    Hi Jovito,
    thanks for your reply,
    i developed a Z program to upload monthly data as well as weekly data into tcode MD61 by selecting the radio button weekly or monthly but i am not able to upload the weekly data as i didnt' get any BAPI OR any other logic to upload weekly data Or not able to use the existing BAPI BAPI_Requirement_create , because the upload file is in monthly format.
    MD61 tcode can be used for both data (Monthly or weekly data).
    can you suggesst me any BAPI to upload the weekly data or any other logic for the same
    thanks & regards
    Prajapati

  • How to use BAPIs for Infopackage execution : loading multiple files

    Hello
    I have been told that BAPIs can be used to load multiple csv files at once for which some BAPIs exists (BAPI_IPAK_CREATE_FROM_REF , BAPI_IPAK_CREATE , etc)
    I have users who will be dropping their standard files in a directory (this should be a local one or server one ?) according to one of 3 types of formats defined.
    As they wont be trigering the IP but instead plan to use a Process chain need a way to collect all files and trigger a IP that can process them all
    Can somebody lead me into using the appropriate ones in the right way?
    thanks

    First if you are using process chain then the files should be placed in Application Server only and process chain can not work with IPs which are using Local Files.
    Instead of BAPI in the infopackage there is a feature to select the file using routines. May be you  can pick the necessary file in the routine itself.
    In the extraction tab you can find this option.
    Regs
    Gopi
    Assign points if it is useful

  • LSMW issue using BAPI for changing Purchase Order G/L Account

    Wonder if anyone can help as I'm tearing my hair out!!
    Have used LSMW lots of times using the transaction recorder, but tried using a BAPI as we have a mass update to do of G/L Accounts for Purchase Orders and it seems the tidiest and most efficient way to do it.
    Got my LSMW project working as a test by changing the Short Text on a purchase order, this works fine.  However, when I add the Account Assignment details in (Structure E1BPMEPOACCOUNT and E1BPMEACCOUNTX) everything seems to run fine, the IDOC posts and gives message 'Document xxx changed'.  Yet when I look into the order it hasn't actually changed the G/L.
    If I go into the purchase order in change mode in another session and run the LSMW again it recognises the purchase order is locked so it seems to be doing everything right, just not updating the G/L Account field.  Anyone got any ideas ? It updated the short text fine so I'm sure everything is set up OK but for some reason it ignores the G/L that I upload.  Anything relating to the Account Assignment (Unloading Point, GR, Cost Center) just gets ignored if I try and upload a change.
    I seem to be so close it seems a shame not to be able to get it sorted !!!
    Thanks,

    Helen Smith wrote:
    HI Praveen,
    >
    > Thank you very much for your response.  I tested the BAPI as per yor instructions and the return message comes back 'Eng & other PO xxxx changed' so it seems to indicate a success message again (like the LSMW does) but the actual data doesn't update.
    >
    > I thought I'd found it as I searched OSS and found note  0001382965 which seemed exactly my problem.  I imported it and applied it but yet I still get the same issue - LSMW runs, says app doc posted and purchase order has been saved but no Account Assignment field will update.
    >
    > So it seems as if it's the BAPI not doing what it should - so I'm considering logging with SAPNET just to see if they can help as getting desperate with this one now! Felt sure I had it sorted when I found that note!
    >
    > Thanks
    >
    > Helen
    >
    > ** I should add I also ran the test above altering something in the item detail (the short text) - and that worked and updated.  So it still seems to point to the Account Assignment part of the BAPI not updating.
    >
    > Edited by: Helen Smith on Nov 2, 2010 4:35 PM
    Hi Helen,
    Just wondering whether you have found solution to your issue.
    We also encounter the same issue and have implemented the note without any positive result.
    Please share if you found the solution.
    Thank you.
    Abraham

  • Error while using BAPI for F-47 posting.

    Hi,
    I am using the BAPI - 'BAPI_ACC_DOCUMENT_POST' to do a Down Payment Request Posting (F-47).
    Since this is a single line posting, BTE RWBAPI01 was implemented as given in the below link.
    [Re: BAPI or Function Module for F-47 (Down payment request)]
    Inside the BAPI i have passed details in tables :account payable , currency amount & extension1.
    However i get the error " Balance in transaction currency".
    Please let me know if i need to pass any other details. Also what is the exact data that needs to be passed to extension table?
    Thanks,
    Meera

    hi ,
    check this threads
    Check these threads
    Balance in transaction currency 
    Balance in Transaction Currency
    error in Balance in transaction currency
    error in Balance in transaction currency
    Balance in Transaction Currency
    Balance in transaction currency
    if this could help .
    Regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 19, 2010 11:21 AM

  • BAPI for Quotations

    Hi,
    is there any BAPI to list the customer quotations ? I'm looking for any "quotations-equivalent" to salesorder-BAPI : BAPI_SALESORDER_GETLIST.
    Thanks
    Martin Omamik

    Hi,
    is there any BAPI to list the customer quotations ? I'm looking for any "quotations-equivalent" to salesorder-BAPI : BAPI_SALESORDER_GETLIST.
    Thanks
    Martin Omamik

  • Field on Document Header using BAPI for posting

    Hi there.
    I need to fill the BKPF-BRNCH field (the Branch Number header field in transaction FB01) to post a document by means of the BAPI_ACC_DOCUMENT_POST function module, but I haven't find the field in the DOCUMENTHEADER table, and I can't figure out how to fill it.
    Can anyone help me...?
    Thanks in advance.

    Hi
    U can use the extension structure in order to transfer fields not managed by BAPI structure.
    The BAPI BAPI_ACC_DOCUMENT_POST manages the extensions by 2 different way:
    - BTE RWBAPI01
    - BADI acc_document
    In both methods u need to fill the BAPI structure for extension: parameter EXTENSION1 (BTE) like BAPIACEXTC and EXTENSION2 (BADI) like BAPIPAREX and then read the data of the extension and transfered them to ACCIT structure in the method above.
    This is an example from my old program using BTE:
    Fill extension paramenter:
    ZSDFI_BAPI_EXTENSION-ITEMNO_ACC = ITEMNO_ACC.
    ZSDFI_BAPI_EXTENSION-ESENZIONE  = W_VENDOR-KIDNO.
    MOVE ZSDFI_BAPI_EXTENSION TO EXTENSIONS.
    APPEND EXTENSIONS.
          CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
            EXPORTING
              DOCUMENTHEADER = BAPIACHE09
            TABLES
              ACCOUNTGL      = ACCOUNTGL
              ACCOUNTPAYABLE = ACCOUNTPAYABLE
              ACCOUNTTAX     = ACCOUNTTAX
              CURRENCYAMOUNT = CURRENCYAMOUNT
              EXTENSION1     = EXTENSIONS
              RETURN         = RETURN.
    Where ZSDFI_BAPI_EXTENSION is dictionary structure with the new fields.
    In the BTE function module I transfer the data to ACCIT:
    TABLES: ZSDFI_BAPI_EXTENSION.
      DATA: _REPRF TYPE LFB1-REPRF.
      LOOP AT EXTENSION.
        MOVE EXTENSION TO ZSDFI_BAPI_EXTENSION.
        LOOP AT IT_ACCIT WHERE POSNR = ZSDFI_BAPI_EXTENSION-ITEMNO_ACC.
          IT_ACCIT-KIDNO      = ZSDFI_BAPI_EXTENSION-ESENZIONE.
          IT_ACCIT-ZLIFNR     = ZSDFI_BAPI_EXTENSION-ZLIFNR.
          IT_ACCIT-ZJ_3AKVGR6 = ZSDFI_BAPI_EXTENSION-CANALE.
          IT_ACCIT-J_3AKVGR8  = ZSDFI_BAPI_EXTENSION-NEGOZIO.
          IT_ACCIT-ZZAREAG    = ZSDFI_BAPI_EXTENSION-AREA_GEOGRAFICA.
          MODIFY IT_ACCIT.
        ENDLOOP.
      ENDLOOP.
    Max

Maybe you are looking for

  • Clearing values of input boxes

    Can any one Help me with the problem i am having with clearing the values for several input text fields from the generated HTML page. so the user can press the back button and all the fields are clear in the previous page. this is my line of thought

  • CSV-Delimiter in SQL Developer Version 1.5.1

    I have a problem with data export as CSV format. I want to use a semicolon instead of a comma as value separator and with version 1.2.1 this worked as expected by configuration of the paramter Preferences/Database/General Export Parameter/Column Deli

  • Results (totals) row in spry datasets

    Hi everybody. I spent a lot of time on the problem how to get row with result of the spry dataset. And I found it: Javascript code: // This is our dataset var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm", {path:"rows"}); // This is dataset f

  • Where did the text justification feature in Pages for iPad Doc Setup go?

    In previous versions of Pages for iPad ( pre iOS8) there used to be text justification option in document  setup  mode. In latest version, 2.4.2, the justification feature is missing for the headers and footer . There does not seem to be any way to c

  • Email PDF without pop up

    Hi all, I have a form with an ordinary button, I want this form (PDF) to be sent to the recipient email without any pop ups. Currently when I click the button MS Outlook pops up with the PDF attached and expect me to click Send. I dont want this, I