BAPI / Tool: Upload documents against Business Partner BP

Hello,
i've to do a mass upload of documents(f.e. pdf, xls ...) to business partners.
Is there a standard tool to do that?
Perhaps you could name me a BAPI?
Regards,
TomSd

solved myself

Similar Messages

  • Writing an Upload Program for Business Partner, its address and Attributes

    Hi SAP Gurus,
    I am in process of writing a tech design and code for an upload program which requires uploading a list of million Business Partners, its address (primarily Zip Code) and a list of Marketing Attributes of those Business Partners. The data will come in a .csv extract which will contain the BP Name, Zip Code, Marketing Attributes (X, Y, Z, etc) and then through this upload we will be creating BPs in the system and then updating its address and then Marketing Attributes.
    The approach that I have chosen is -
    1) Select the file from the presentation server using the class/method CL_GUI_FRONTEND_SERVICES /GUI_UPLOAD FM
    2) Call the FM TEXT_CONVERT_XLS_TO_SAP to transfer the content of the MS Excel file to an internal table for further processing.
    3) Call the FM - BAPI_BUPA_CREATE_FROM_DATA and pass the necessary parameters to upload/create the Business Partner and then call the FM BAPI_TRANSACTION_COMMIT to ensure the upload is complete.
    4) Once the upload of BP is complete, then upload the address (Zip Code) data through the FM - BAPI_BUPA_ADDRESS_ADD and then call the FM BAPI_TRANSACTION_COMMIT to ensure the address upload is complete.
    5) Post the upload of BP and address data, call the FM CRM_MKTBP_PROCESS_BP_LIST to upload the Marketing Attributes of the Business Partners to the relevant tables and then again call the BAPI_TRANSACTION_COMMIT.
    I just wanted to check if the above steps are correct or am I missing something important there??
    Would appreciate expert opinion/guidance on this.
    There is a time constraint on completing this; hence would appreciate a quick and reliable response to it.
    BR,
    Ravi

    Hi Clemens,
    Thanks for your input.
    So, just wanted to re-iterate the points you highlighted -
    1) Instead of presentation server, you want the file to be read from application server and schedule this program as a background job? Am I following you correctly?
    2) Link the address upload along with the BP upload only (at the same time instead of separately) to ease of double processing through one FM - BAPI_BUPA_CREATE_FROM_DATA
    3) Calling BAPI_TRANSACTION_COMMIT every 1000 BPs or so for faster processing.
    However, you did not mention anything about attribute upload. Is that approach fine? or do I need to include anything more there?
    Please confirm and then I can close this question.
    BR,
    Ravi

  • Is there any BAPI for Upload Documents of WBS elements?

    Hi Guys,
                 Can anbody tell me is there any BAPI for Uploading Documents  of WBS elements ?
    Thanks,
    Gopi.

    hi
    check these BAPI
    Change WBS Elements Using BAPI                                                                               
    BAPI_BUS2054_CHANGE_MULTI           
    Create WBS Elements Using BAPI 
    BAPI_BUS2054_CREATE_MULTI                                                               
    Delete WBS Elements Using BAPI                                                                               
    BAPI_BUS2054_DELETE_MULTI                                                               
    Detail Data for WBS Elements                                                                               
    BAPI_BUS2054_GETDATA                                                                      
    Reading the GUIDs using the WBS Key
    BAPI_BUS2054_GET_GUID_FROM_KEY                                                     
    Reading the WBS Key using the GUIDs                                              
    BAPI_BUS2054_GET_KEY_FROM_GUID                                                                               
    Check Existence of a WBS Element                                                 
    BAPI_PROJECT_EXISTENCECHECK                                                                               
    Element                                                 
    thnks
    sitaram

  • LSMW what BAPI to use to load Business Partner?

    Could anyone tell me what BAPI to use for business partner? i think its part of CRM..... I'll work out what a BAPI is later! But i gather batch recording is not the go?
    I don't know anything about SAP, BAPIs and Idocs and Batch recordings!!! I have a number of flat files, I want to import please show be some direction, would be appreciated.
    mike

    Thanks,
    Yes we have used the recording tool and actually loaded one file in the SAP system, as a test, however we have fields in "tabs" ie one customer has many phone numbers - a multi structure record. I believe the recording tool is no good for such cases!
    I'm not sure whether I have need to have one input file or whether I need to have two files one for cutomer and another for phone details.
    The 2nd question is my original question what BAPI or other method can I use for customer (business partner) details, as the recording method is no good for data with 1 to many relationships. HELP!

  • BAPI to Update Title of Business Partner ( Table BUT000 )

    Hi
    Which BAPI can be used to Update the TITLE field of Business Partner ( Table BUT000 ) ?
    Warm Regards
    Moderator message - this forum is not meant to replace research that can be EASILY done by the OP.  Please read the Research Resources and Rules of Engagement sticky for links.
    Edited by: William Eastman on Nov 16, 2009 2:59 PM

    BAPI_ISUPARTNER_CHANGE
    Use this bapi
    pass corresponding X in PARTNERDATAX along with PARTNERDATA
    Regards,
    Prajakta

  • BAPI in CMR for Vehicle Business Partner Link

    Hi
    Is there a BAPI that I could use in CRM Automotive to create the link between a Vehicle and Business Partner?

    Hi Anne,
    Sorry about that..The correct function is BAPI_TRANSACTION_COMMIT.
    As you are using the BAPI_TRANSACTION_COMMIT before BAPI_BUPA_ROLE_ADD, the BAPI BAPI_BUPA_ROLE_ADD is probably called before the data is actually commited onto the DB.
    So while calling the BAPI_TRANSACTION_COMMIT set the WAIT parameter. This should do the trick.
    Also after the BAPI_BUPA_ROLE_ADD you have to do another COMMIT using BAPI_TRANSACTION_COMMIT.
    Let me know if it worked.
    Regards, Debasish

  • Function module for Change document for Business partner

    Hi Experts,
    Could any one send me the sample code of function module for CDHDR and CDPOS tables for extracting the change date along with role.
    Eg :
    BPRole Changd on crtd by crtd on Business partner
    ZCASH 30.11.2011 NHALLAL 24.11.2011 0001000237
    CRM000 03.12.2011 NHALLAL 24.11.2011 0001000237
    I wanted to catch up the changed date and changed role from CDHDR (base table) and CDPOS(cluster table - item level).
    Might be involved with creation of extract structure.
    Any sample codes are appreciated. Thanks.
    Regards,
    Janardhan

    resolved

  • Archive Link Authorization problem for Business Partner.

    Hi Experts,
    Currently we are attaching documents to respective objects through Tr. OAWD & these documents are available in service for object as attachment, until this it is working fine.
    But we are facing problem of authorization for archive link of ISU- Business Partner. Letu2019s say we had two users USER-A & USER-B responsible to upload documents of Business partners started with 1 & 2 respectively.
    We needed authorization control for USER A&B so that,
    USER-A should upload documents for Business Partner 1001 to 1999
    & USER-B should upload documents for Business Partner 2001 to 2999
    we need to know can we restrict USER A&B so that they can not upload documents for Business Partner for which they are not responsible. we allready checked the roles "SAP_BC_SRV_ARL_*  " but not found useful to restrict USER A&B.
    Thanks in advance....

    Hi Sam,
    as this sounds like you search for suitable authorization objects I think that the authorization trace in transaction ST01 could be useful for you. For further information please see the following link: http://wiki.sdn.sap.com/wiki/display/PLM/AuthorizationTraceintransactionST01
    Best regards,
    Christoph

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • Business Partner : Mass upload

    Hi Experts,
         I have to upload some15 million Business partner through BP transaction .
    I want to know what will be the most suitable method to attain that.
    Should I use BAPI, BDC , LSMW ??
    I am not clear at all, what should be the most appropriate solution to this.
    Please help me out.
    Its very urgent.
    Regards
    Sourabh Verma

    Hi,
    You can use LSMW for this. Check transaction KCLJ and KCLL for resolving this issue too. For smaller number of data even ELM is very simple and effective upload method which provides facility to upload Marketing attributes data too.
    External Data Transfer for Business Partner using KCLJ
    The steps for business partner upload using the SAP standard program are as follows:
    1.     The transaction code for the report is KCLJ.
    2.     In the transfer program in kclj you have to give the sender structure name which is maintained in transaction KCLL.
    3.     While creating this sender structure (KCLL) specify the Transfer type as ‘015’ for the business partner and then give the dictionary structure. This dictionary structure should contains the fields which are available in the structure ‘BUS_DI’
    4.     After specifying the sender structure in KCLJ, specify the input and output file name, file system, editing mode and file type.
    5.     Finally execute the report in test run mode to check the correctness of the data.
    6.     If the test run is successful, run the report without test run to start the actual transfer.
    7.     You can also define the transfer rules (KC7R) to assign the constant values while the transfer.
    8.     The documentation is available in SPRO->Cross-Application components->SAP Business Partner->External Data Transfer.
    With regards
    Ambar Adhav

  • Upload Business Partner Attachments

    Hi Experts,
            I am working in CRM7.0, I want know the transaction code to upload attachments for Business Partner. And i also want to know corresponding tables being used to store it. Please suggest some solution to read the attachments of the Business Partner.
    Please help me on this.
    Thanks and Regards,
    Peter Dinesh.

    Hi Peter,
    You can upload documents in trx. BP tab documents.
    Check this thread [;
    Best regards,
    Caíque Escaler

  • Block documents due to missing business partner

    Hello to everyone,
    I have problem with blocked documents in GTS due the missing external business partner account. I have to give for every blocked document, the business partner account manually in order to release the document. Eventhough the vendor master record has been correctly maintained, also on purchasing organization, I can not understand why the business partner account is missing in GTS. In Screedshot you can see first line is always blocked with block sign.
    Can anybody help me to find the solution for that ?  Thanks in advance.
    Please see attached screenshot (unfortunately avaliable in German language only, I hope you would understand).

    Hi Aman,
    Thanks for your replay. I have again tested the Business parter transfer by changing in name field. The data was transfered sucessfully from R/3 to GTS.
    Regards,
    Iftikhar

  • BAPI Needed of uploading document in already existing Dispute Case

    Hi,
      I need BAPI for  uploading document in already existing Dispute Case...
    Thanks,
    Ajit

    I tried to use the following program to upload a document and it is not working, any feedback would be helpful:
    *& Report  ZTEMP_DISPUTE_12
    REPORT  ztemp_dispute_12.
    PARAMETER : l_fname TYPE char255.
    DATA : l_file TYPE string,
          lv_xstring  TYPE xstring,
           l_return TYPE  bapiret2,
           l_filecontent TYPE bapiconten,
           i_case TYPE REF TO if_scmg_case_api,
            l_initial_dir     TYPE string,
            l_window_title    TYPE string,
            l_filename_disp   TYPE string,
            l_filename_string TYPE string,
            l_user_action     TYPE i,
            l_rc              TYPE i,
           l_v_lines TYPE i,
           l_mime TYPE skwf_mime,
           l_filelength TYPE i,
           l_component TYPE  bapidoccomp,
           l_skwf_filnm TYPE skwf_filnm,
           li_file_tab        TYPE filetable,
           lwa_file_tab        TYPE file_table,
           li_bin_content  TYPE STANDARD TABLE OF bapiconten,
           l_v_size TYPE i.
    DATA: BEGIN OF itab OCCURS 0,
           line TYPE sdok_sdatx.
    DATA: END OF itab.
    DATA: BEGIN OF i_component OCCURS 0,
            comp_count  TYPE bapipos,
            comp_id     TYPE bapidocid,
            mimetype    TYPE bapimimetype,
            comp_size   TYPE bapipos,
            binary_flag TYPE bapigsbool,
            comp_num    TYPE bapipos.
    DATA: END OF i_component.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR l_fname.
      l_window_title = 'Upload Document'(001).
    Call the file selection dialog
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = l_window_title
          initial_directory       = l_initial_dir
        CHANGING
          file_table              = li_file_tab
          rc                      = l_rc
          user_action             = l_user_action
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc = 0.
        READ TABLE li_file_tab INTO lwa_file_tab INDEX 1.
        IF sy-subrc = 0.
          l_file = lwa_file_tab-filename.
          l_fname = lwa_file_tab-filename.
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = l_file
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          data_tab                      = itab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      DESCRIBE TABLE itab  LINES l_v_lines.
      l_v_size = l_v_lines * 255.
      l_filename_string = l_file.
      CALL METHOD cl_gui_frontend_services=>file_get_size
        EXPORTING
          file_name = l_filename_string
        IMPORTING
          file_size = l_v_size
        EXCEPTIONS
          OTHERS    = 1.
    convert binary255 to binary1024 table
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = l_v_size
        IMPORTING
          buffer       = lv_xstring
        TABLES
          binary_tab   = itab
        EXCEPTIONS
          failed       = 1
          OTHERS       = 2.
      IF sy-subrc <> 0.
           rv_failed = 'X'.
           RETURN.
      ENDIF.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer     = lv_xstring
        TABLES
          binary_tab = li_bin_content.
      l_skwf_filnm = l_file.
      CALL FUNCTION 'SKWF_MIMETYPE_OF_FILE_GET'
        EXPORTING
          filename                   = l_skwf_filnm
      X_USE_LOCAL_REGISTRY       =
       IMPORTING
         mimetype                   = l_mime.
      l_component-comp_count    = 1.
      l_component-comp_id       = l_fname.
      l_component-mimetype      = l_mime.
      l_component-comp_size     =  l_v_size.
      l_component-binary_flag   = 'X'.
      l_component-comp_num      = 1.
      APPEND l_component TO i_component.
      DATA:
      lo_case_api TYPE REF TO  cl_scmg_case_api,
       lo_case_api_intf       TYPE REF TO if_scmg_case_api.
      CALL METHOD cl_scmg_case_api=>if_scmg_case_api~open_case
        EXPORTING
          im_case_guid    = 'E99B284FC272B720E100000092D79319'
          im_enqueue      = 'X'
        RECEIVING
          re_case         = lo_case_api_intf
        EXCEPTIONS
          failed          = 1
          enqueue_failed  = 2
          invalid_guid    = 3
          cx_srm_gsp_back = 4
          OTHERS          = 5.
      lo_case_api ?= lo_case_api_intf.
    *DATA : l_if_case_api      TYPE REF TO if_scmg_case_api.
           CALL METHOD cl_scmg_case_api=>open_case
             EXPORTING
               im_case_guid    = 'E99B284FC272B720E100000092D79319'
             RECEIVING
               re_case         = l_if_case_api
             EXCEPTIONS
               failed          = 1
               enqueue_failed  = 2
               invalid_guid    = 3
               cx_srm_gsp_back = 4
               no_authority    = 5
               OTHERS          = 6.
      CALL FUNCTION 'UDM_BD_CREATE_ATTACHMENT'
        EXPORTING
          i_guid      = 'E99B284FC272B720E100000092D79319'              "E99B284FC272B720E100000092D79319
          i_case      = lo_case_api
          i_testrun   = space           " '003A3A4FAD54D97CE100000092D79319'
        TABLES
          bin_content = li_bin_content
          components  = i_component
        CHANGING
          es_return   = l_return.
      IF sy-subrc = 0.
        COMMIT WORK.
      ENDIF.
      CALL FUNCTION 'DEQUEUE_ALL'.
      break 50120i1120.

  • Which BAPI to list all Business Partner on CRM?

    Hi All,
    Can someone let me know the BAPI which lists all the business partner available on particular CRM system based on some criterion such as country or date Range.
    Regards,
    Naveen

    Use BAPI_BUPA_SEARCH
    It takes input parameters such as:
    Partner Number
    Business Partner Role,
    Partner Category (Person, Org or Group).
    First Name, Last Name
    Telephone
    Email
    Address data etc
    Easwar Ram
    http://www.parxlns.com

  • How to read Business partner attachment in SAP-CRM

    Hi Experts,
         I am working in SAP CRM, i am uploading attachments for Business partner through T-code : BP.  My requirement is to read the attachment of the particular business partner in the form binary or XML. Please suggest some BAPI for class to read the attachment of business partner.
    Thanks and Regards,
    Peter Dinesh.

    Class CL_CRM_DOCUMENTS is the one that manages everything with attachments in BP transaction

Maybe you are looking for

  • CSS layout check

    Hi all, I was wondering if a few of you would mind having a look at this code. IE7 is rednering it just as I'd like it, but Firefox is not. I'm sure I could use a different method interms of Float and Position, but I can't think of it. Any advice wou

  • Exchange rate in PO / GR/ IR

    Is there any configuration part to set exchange rate in Purchase Order / Goods Receipt / Invoice receipt ?

  • ORA-12008: error in materialized view refresh path... Bug?

    SQL> select * from v$version; BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE    11.2.0.3.0      Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version

  • WP with Virtual PC on powerbook 867?

    Anyone ever tried Windows XP with virtual pc on powerbook 867? Does it guarantee any reasonable speed and stability?

  • Workshop 8.1 and .svn (subversion control dir)

    Hi everybody. Is there any way of to configure Workshop to "ignore" some directories ? We are using subversion, but Workshop is trying to scan every .svn directory. How can i disable this behaviour ? Thanks in advance.