ABAP Object Using standard BAPI

When running ABAP program to convert Accounts Payable conversion documents, the program results indicate the document in the load program were created and returns the relevant document numbers.  However when validating the documents in BKPF, BSEG, or BSIK the documents are not in the table.
There are no SM13 update log data listing entries for the missing documents.
Example the conversion load file contained 50 documents, the program results indicated all 50 documents were created and provided 50 document numbers.  When those document numbers are run in SE16/BKPF only 41 of the documents are returned on the query. 
The program was run with a Basis trace active and there were no errors. 
The program run successfully without losing documents in our DE, QE and one SE client, the problem occurs in the second of our SE client.  There are no transport differences and no functional config differences between the two SE clients. 
However, the SE cliient was created via a copy of PRD.

you just forgot to give us information about this program (name if it's a standard one, and if it's a custom program you should investigate more because we can't help without having in-depth details)

Similar Messages

  • Obligatory parameter when using standard BAPI

    Hello,
    We are creating a OData service using standard BAPI, BAPI_PO_GETITEMSREL.
    we are getting following error after executing the purchase order collection:
    Kindly help.
    Regards,
    Ajay

    This is the error again:
    Receiver channel 'CC_Contrct_Recivr' for party '', service 'BS_SHD_901' (internal name 'RfcClient[CC_Contrct_Recivr]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=900, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=337710, jco.client.sysnr=55, jco.client.ashost=172.17.48.55}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=900, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=333333, jco.client.sysnr=55, jco.client.ashost=172.17.48.55}
    Current pool size: 5, maximum pool size : 50

  • Issue while creating Outbound Delivery using Standard BAPI

    Hi all,
    I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
    Regards,
    Vimala P

    Hi Vimala,
    I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
    1) Delivery Type
    2) Delivery selection date
    Needs to be passed in import parameters.
    Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
    Thanks in Advance..
    Regards,
    Rajasekar .M

  • BAPI-VB, Unable to call method GetDetail of USER Object using SAP.BAPI.1

    Hi,
    I am trying to call SAP Methods using Excel VBA.
    In the below example, I am trying to get the user details.
    I can solve this, if I use SAP.Functions object, but not when I use SAP.BAPI.1 object.
    The Procedure GetUserDetails() works fine, but the 2nd one GetUserDetails2() fails?
    Can you tell what is the difference in calling SAP method with SAP.Functions and SAP.BAPI.1 ?
    Also how can I run the program GetDetails2() using SAP.BAPI.1
    Const CNT_STR_USR As String = "XXXXX"
    Const CNT_STR_PWD As String = "XXXXX"
    Const CNT_STR_APPLN_SRVR As String = "ides47"
    Const CNT_STR_SYSTEM As String = "IDS"
    Const CNT_STR_SYS_NUM As String = "00"
    Const CNT_STR_CLIENT As String = "800"
    Const CNT_STR_LOGON_LANG As String = "EN"
    Const CNT_STR_LOG_FILE As String = "C:sap_vb.txt"
    Const CNT_INT_LOG_LEVEL As Integer = 9
    'Works Fine
    Public Sub GetUserDetails()
    'Using SAP Functions
    Dim obSAPFn As Object
    Dim obFuncUsrDtl As Object
    Dim obFuncRtrn As Object
    Dim obFuncLogDtl As Object
    Dim sRetStatus As String * 1, sErrText As String, sUsrGroup As String * 12
    Dim iRetRowCount As Integer, iLoop As Integer
    Dim bErrFlag As Boolean
    'Set obSAPFn = New SAPFunctions
    Set obSAPFn = CreateObject("SAP.Functions")
    obSAPFn.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSAPFn.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSAPFn.Connection.User = CNT_STR_USR
    obSAPFn.Connection.Password = CNT_STR_PWD
    obSAPFn.Connection.Language = CNT_STR_LOGON_LANG
    obSAPFn.Connection.Client = CNT_STR_CLIENT
    obSAPFn.LogLevel = CNT_INT_LOG_LEVEL
    obSAPFn.LogFileName = CNT_STR_LOG_FILE
    'Check For Connection
    If obSAPFn.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
    Exit Sub
    Else
        If obSAPFn.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    'Get User Details.
    Set obFuncUsrDtl = obSAPFn.Add("BAPI_USER_GET_DETAIL")
    obFuncUsrDtl.Exports("USERNAME") = CNT_STR_USR
    obFuncUsrDtl.Call
    Set obFuncRtrn = obFuncUsrDtl.Tables("RETURN")
    iRetRowCount = obFuncRtrn.RowCount
    bErrFlag = False
    For iLoop = 1 To iRetRowCount
        If obFuncRtrn(iLoop, "TYPE") = "E" Then
    '        ErrorUsuario = True
            sErrText = "E" & obFuncRtrn(iLoop, "ID") & obFuncRtrn(iLoop, "NUMBER") & _
                         " " & obFuncRtrn(iLoop, "MESSAGE")
            MsgBox sErrText
            bErrFlag = True
            Exit For
        End If
    Next
    If bErrFlag = False Then
    Set obFuncLogDtl = obFuncUsrDtl.Imports("LOGONDATA")
    sUsrGroup = obFuncLogDtl("CLASS")
    MsgBox sUsrGroup
    End If
    Set obFuncRtrn = Nothing
    Set obFuncLogDtl = Nothing
    Set obFuncUsrDtl = Nothing
    obSAPFn.Connection.LogOff
    Set obSAPFn = Nothing
    End Sub
    ' Does not work
    Public Sub GetUserDetails2()
    'Using BAPI Object
    Dim obSapBAPICtrl As Object 'BAPI control object
    'Dim obSAPConn As Object 'Connection object
    Dim obSAPUSER As Object ' To Get Details of USER Object
    Dim obLogondata As Object, obDefaults As Object, obAddress As Object, obCompany As Object
    Dim obSnc As Object, obParameter As Object, obProfiles As Object, obActivitygroups As Object
    Dim obReturn As Object, obAddComrem As Object, obAddRml As Object, obAddPag As Object
    Dim obAddUri As Object, obAddSsf As Object, obAddPrt As Object, obAddRfc As Object
    Dim obAddX400 As Object, obAddSmtp As Object, obAddTlx As Object, obAddTtx As Object
    Dim obAddTel As Object, obAddFax As Object, obParameter1 As Object
    Dim sRetStatus As String * 1, sTransId As String, sUsrGroup As String
    Dim iRetRowCount As Integer, iLoop As Integer
    Set obSapBAPICtrl = CreateObject("SAP.BAPI.1")
    obSapBAPICtrl.Connection.ApplicationServer = CNT_STR_APPLN_SRVR
    obSapBAPICtrl.Connection.SystemNumber = CNT_STR_SYS_NUM
    obSapBAPICtrl.Connection.User = CNT_STR_USR
    obSapBAPICtrl.Connection.Password = CNT_STR_PWD
    obSapBAPICtrl.Connection.Language = CNT_STR_LOGON_LANG
    obSapBAPICtrl.Connection.Client = CNT_STR_CLIENT
    obSapBAPICtrl.LogLevel = CNT_INT_LOG_LEVEL
    obSapBAPICtrl.LogFileName = CNT_STR_LOG_FILE
    'Don't show the logon details
    'Connect to SAP
    If obSapBAPICtrl.Connection.Logon(0, True) = False Then
        MsgBox "R/3 connection failed"
        Exit Sub
    Else
        If obSapBAPICtrl.Connection.IsConnected Then
    '    MsgBox "Connected"
        Else
        MsgBox "Not COnnected"
        Exit Sub
        End If
    End If
    ‘Could not find a way to pass the User Id?
    ‘ Is this the right way to pass the user Id for this Object?
    Set obSAPUSER = obSapBAPICtrl.GetSAPObject("USER", CNT_STR_USR)
    Set obLogondata = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Logondata")
    Set obDefaults = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Defaults")
    Set obAddress = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Address")
    Set obCompany = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Company")
    Set obSnc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Snc")
    Set obParameter = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter")
    Set obProfiles = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Profiles")
    Set obActivitygroups = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Activitygroups")
    Set obReturn = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Return")
    Set obAddComrem = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddComrem")
    Set obAddRml = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRml")
    Set obAddPag = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPag")
    Set obAddUri = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddUri")
    Set obAddSsf = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSsf")
    Set obAddPrt = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddPrt")
    Set obAddRfc = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddRfc")
    Set obAddX400 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddX400")
    Set obAddSmtp = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddSmtp")
    Set obAddTlx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTlx")
    Set obAddTtx = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTtx")
    Set obAddTel = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddTel")
    Set obAddFax = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "AddFax")
    Set obParameter1 = obSapBAPICtrl.DimAs(obSAPUSER, "GetDetail", "Parameter1")
    sTransId = obSapBAPICtrl.CreateTransactionID()
    'obSapBAPICtrl.TransactionId = sTransId
    obSAPUSER.GetDetail Logondata:=obLogondata, Defaults:=obDefaults, Address:=obAddress, _
    Company:=obCompany, Snc:=obSnc, Parameter:=obParameter, Profiles:=obProfiles, _
    Activitygroups:=obActivitygroups, Return:=obReturn, AddComrem:=obAddComrem, _
    AddRml:=obAddRml, AddPag:=obAddPag, AddUri:=obAddUri, AddSsf:=obAddSsf, _
    AddPrt:=obAddPrt, AddRfc:=obAddRfc, AddX400:=obAddX400, AddSmtp:=obAddSmtp, _
    AddTlx:=obAddTlx, AddTtx:=obAddTtx, AddTel:=obAddTel, AddFax:=obAddFax, _
    Parameter1:=obParameter
    iRetRowCount = obReturn.RowCount
    If iRetRowCount > 0 Then
        For iLoop = 0 To iRetRowCount
            sRetStatus = obReturn(iLoop, "TYPE")
            If sRetStatus = "S" Then
            sUsrGroup = obLogondata("CLASS")
            MsgBox sUsrGroup
            End If
        Next
    End If
    Set obSAPUSER = Nothing
    obSapBAPICtrl.Connection.LogOff
    'Set obSAPConn = Nothing
    Set obSapBAPICtrl = Nothing
    End Sub
    Regards,
    Vikas

    The problem was occuring because, the structure Return was not holding any values.
    But the other tables which returned values were getting populated.
    Regards,
    Vikas

  • Mass loading of customers using Standard bapi

    Hi All ,
    I have developed a RFC to load customers which internally calls standard BAPI "BAPI_CUSTOMER_CREATEFROMDATA2"
    this RFC was used to load about 50,000 customers Initially.
    The program as done 21 million DB reads and took 4 hrs to finish , Is this normal,
    I am populate Structures for KNA , KNVV,KNVP,KNB5,KN  ,
    Before passing data I am doing some checks About 4 reads to DB for each record
    Thank And Regards
    Vinay kolla

    Hi Radha ,
    thanks For your reply but Would like to know if the number of DB reads 21 miilion normal ,
    Direct Read                 15835,986           219033711              23,058   
    Sequential Read             1,046,389          212464956              29,630   
    Insert                        179,688           229127611             179,688   
    Update                              0                   0                   0   
    Delete                              0                   0                   0   
    Sources                     1,320,333  (Bytes)                                  
    RSQL                        9,943,437  (Bytes)                                  
    Commit                                                  0                       
    DB Procedure Calls                  0                   0                       
    Roles / Memory                 Number              Time (usec)                
    Roll In                             1                 213                       
    Roll Out                            0                   0                       
    Roll                          188,416  (Bytes)                                  
    Page                           73,728  (Bytes)                                  
    Memory (Total)                            429,669,860  (Bytes)                  
    Memory(Total Private)                     504,208,576  (Bytes)                  
    Memory (used)                             425,477,992  (Bytes)                  
    Memory (Max. Transaction)                 429,659,425  (Bytes)                  
    Memory (Max. Dialog Step)                 429,659,425  (Bytes)

  • Creation of Opportunity using standard BAPI

    Hello,
            I am using BAPI_OPPORTUNITY_CREATEMULTI for creating opportunity. It is generating GUID and Oject ID. But the data is not storing in data base table except GUID in CRMD_OPPORT_H table. And even it is not displaying all the data which is i am passing through flat file in t-code : 'CRMD_ORDER' .

    Hello Nizam,
    I am also working on the  same requirement.
    I am able to create the Opportunity successful through the BAPI "BAPI_OPPORTUNITY_CREATEMULTI".
    and it is also updating all the required fields.
    But issue which i am facing is, I am able to see the opportunity in the GUI but not in the WEB UI.
    Could you please help me on this?
    Which parameter I need to set in order to Pass the opportunity on the WEB UI.
    I would really appriciate if you share the code.
    Thanks & Regards
    Sachin

  • Delimiting relationship in ABAP HR using standard program RHGRENZ4

    Hello Experts,
                    I am using the standard program RHGRENZ4 for delimiting the relationship. I want to enter conditions for the delimitation. .
    There is a  tab called Set Structure Conditions... Is this tab useful? How to enter conditions using this tab...
    Please help,
    Thanks,
    Praitbha

    hi,
    the tab Set Structure Conditions is useful if you need to filter the data, in order  to give more conditions that the selected data have to proof.
    Click on the button Set Structure Conditions  and use the F1 help fro each section of the displayed pop-up. The system help will give you a lot of information.
    Regards luiigi.

  • How to put in put fields in abap objects using HTML documents

    Hallo Every body,
    I have got a problem in my program actually I have created 4 splitters. in this two are for Document search and the other two are for material search, The other two splitters are for HTML. I wanted to give the end user five i in put fields in Document search and Four fields in material search. So that the data is retrived from the data base ( DRAW, MARA). all these fields must have search help (F4).  after this it should have the drag and drop behavior.
    I have created the html but the F4 help is not working and when I am trying to get the data from data base it is processing but the result is zero.
    Is there any other way of doing this. If so can you tell me if possible send me one example too.
    Thank you in advance.
    Regards

    check this sample program
    DD_ADD_FORM_INPUT

  • Creating a business object using bapi

    can some one tell me how to create a business object using a bapi and is it possible to create bapi using business object.which is dependent on which one.

    >
    jayashankar wrote:
    > can some one tell me how to create a business object using a bapi and is it possible to create bapi using business object.which is dependent on which one.
    No....
    First read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]...

  • How to Maintain documentation (se38) using standard text (SO10)

    Hi,
    I have created standard text using SO10. Now I want to include the standard text in documentation (SE38) section of my ABAP program.
    I tried using /: INCLUDE 'YTEST' OBJECT TEXT ID ST LANGUAGE EN
    But the standard text is not showing up when I click the documentation icon in the selection screen.
    Can you please let me know how to maintain documentation for ABAP programs using Standard Texts.
    Thanks in advance.
    Sincerely,
    Vidya

    Hi Mahesh,
    In SO10, which format key has been used (AS, /*, /:, *.... to show up in documentation). when you used insert->text-> did you use 'expand immediately' check box. If expand immediately option is used, it won't serve our purpose.
    =
      (space)
    Example
    SO10 Yeurope_terms
    Inside Yeurope_terms
    Terms: For Europe
    /*           No Tax for Italy
    Waiting for your reply.
    Sincerely,
    Vidya

  • Standard BAPI or wrapped in a ZBAPI?

    Hi folks,
    Iu2019m doing a scenario File to RFC (BAPI_PO_CREATE).
    The file has several purchase orders to create and Iu2019m wondering which the best approach to follow? Iu2019ve been thinking in the following two approaches:
    1 u2013 As BAPI_PO_CREATE only creates one PO per call, with help of ccBPM and a block ParForEach I can call BAPI_PO_CREATE synchronously for each header line plus items. However, this scenario must be atomic (or we create the entire POu2019s or nothing is created) so Iu2019ve to set the test parameter of this BAPI, collect each exception and in a switch step ask if there is exceptions. In case of exceptions a new message is created with all exceptions and mailed to the business process responsible. If everything is ok, Iu2019ve to repeat the BAPI calls but now without the test parameter set, in order to crate all PO in R/3.
    I didnu2019t try it before but I think it can work.
    2 u2013 Wrapping the BAPI_PO_CREATE, BAPI_TRANSACTION_COMMIT and respective rollback in a ZBAPI; with this I can model the development as I wish. I can create a ZBAPI to receive all POu2019s and inside it in a loop create each PO and also do the exception handling there.
    The first approach seems aligned with SAP best practices; however it seems complex to handle and heavy for PI system performance compared with second approach.
    Another point is we are going to upgrade SAP ERP; therefore we will get the local integration engine to develop ABAP proxies. I think with the 2ª approach we can move quickly (migrate) these developments to ABAP proxy.
    Which are the best practices for integration with RFC adapter? Should I always use standard BAPIs or in this case is recommended to wrap the BAPI?
    Thanks in advance,
    Jorge.

    Hi,
    >>Which are the best practices for integration with RFC adapter? Should I always use standard BAPIs or in this case is recommended to wrap the BAPI?
    there are a few alternatives to your approach because of which
    I wouldn't use any of those two which you proposed
    this is what I'd so:
    since you don't have ABAP proxies yet - you should use IDOC
    PORDCD101 to create purchase orders - this way you can send all of them
    in one call (IDOC bundling) but in ERP they will appearch as one by one
    so even if one of them will not work you will know which one is it
    (this is not the case with RFC calls as they are not persistent in ERP)
    if you can wait for abap proxies - you can also choose the abap proxy approach (also does not matter if you do them one by one or all at once
    as they will be persistent in ERP so you will know which one failed
    and you can reprocess - the same as with IDocs)
    since RFCs in your two scenarios are not persistent you'd
    have to build some functionality to cover that - but there is no need to do it
    as you have :
    1. stasdanrd IDOC
    2. you can do it with proxies
    Regards,
    Michal Krawczyk

  • Header In ALV with abap objects

    Hi friends,
    How can we print the header in abap Objects using class ??
    thanks,
    Prashant patil

    Create a local class:
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS: handle_top_of_page FOR EVENT print_top_of_page
                                   OF cl_gui_alv_grid.
      PRIVATE SECTION.
    ENDCLASS.
    *       CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_top_of_page.
      WRITE: / 'Header info'.  
      ENDMETHOD.
    ENDCLASS.
    Then in your main program before you <i>set_table_for_first_display</i>, make sure you register your event handler:
    DATA:  grid                   TYPE REF TO  cl_gui_alv_grid,
             event_receiver    TYPE REF TO  lcl_event_receiver.
        CREATE OBJECT grid EXPORTING i_parent = container.
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_top_of_page FOR grid.

  • How to Fill custom table data using standrad BAPI

    Hello Team,
    I have some clarification on usage of Standard BAPI :  BAPI_Material_savereplica.
    I have some custom fields in MARA and MARC tables so i have used BAPIExtensionin and able to pass custom field of MARA and MARC.
    My issue is in material master the MARC custom fields of a material are going to update in a Z table along with MARC table.
    So can we achieve this functionalioty using BAPI : BAPI_Material_savereplica menas can we upadate custom table by using standarda bapi
    Please let me know the available options ..

    Hi Some,
    You are saying most of the data is resides out of sap, then you try with mapping of those data in sap standard tables if match or if not then develop a custom interface which will read data from outside & will put in your pay roll processor interface,
    and normally your SAP data you can interface through PU12.
    If you want single interface then you need to develop unique interface program.
    All the best.

  • Need standard Bapi or FM for creating General Ledger (FS00 transaction)

    Hi,
    I need to upload (create) Master General Ledger data.
    My requirement is to use standard Bapi or FM for this purpose.
    Please tell me which Bapi or FM i can use for this purpose.
    Thanks in advance.

    Hi Suresh,
    The Function module you specified is not released. So, I cant use it. Thanks for your suggestion.
    Hi friends,
    My requirement is to create General Ledger Account (FS00 or FS01) using a standard Bapi or FM. Please tell me which Bapi or FM I can use for this purpose.
    I identified one related Bapi for this purpose (BAPI_ACC_GL_POSTING_POST). But my functional consultant says it is for posting General Ledger and cannot be used for ceating General Ledger account.
    Please clarify me.

  • Change the Standard BAPI

    Dear All,
    I am using standard BAPI Name is BAPI_AR_ACC_GETBALANCEDITEMS.This BAPI also using in Interface on J2ee AND SAP.Now I am Added in One New Field.Name is USNAM.But USNAM Field is Not Available in the above BAPI.How to Add the USNAM field.Please Help me.AND Standrad BAPICopy is Possible.IF it Possible How to Copy the standard  bapi.
    NOTE: I will try for developement system Is need to Accesskey.
    regards,
    raj a

    1. When trying to enhance a standard BAPI, you can make use to the new enhancement framework to extend the interface. However, you will need to have at least mySAP 2005 based on SAP NW 2004s.
    2. Copy the BAPI to a Z_BAPI and use that. Go to transaction SE80 and display the function module (BAPI) to be copied. Press left mouse button on FM in the tree on the left and choose copy. In some cases it might be better to copy the whole function group since in the top include of the function group, all global variables are declared which are used in your function module. so instead of declaring them yourself, it would be faster to copy the whole function group.
    3. Change the interface via modification, you will need an access key.

Maybe you are looking for