Code undefined business partners error

Hello,
I am new to SAP and my company requires tu upload all business contacts to SAP Business One. I am trying to use Excel Export tool bu I get the error "code undefined business partners". What could be the reason and solution?
Thanks

Are you trying to use the tool in Data Migration-Import from excel? If so, you need to use the Material Transfer Workbench instead.
You need to link to the BP Partners header first in oBusinessPartners... Then import the BP Contacts. If this is the problem you are having send a reply and I will give you more detail.
If you are new at SAP you may want to get help to do your data migration. (Unless you are using and know how to query SQL tables) I only have experience doing this on SQL.

Similar Messages

  • SAP MRS - Business Partners Error

    Working with MRS 700 (0005) in an ECC EhP5 system.
    Our client wants to explore the use of Business Partners, so as to avoid the conifguration and support of Infotype 0007 on the HR mini-master (among other reasons).
    I made what I think are the appropriate MRS configuration changes - and I am able to see the resource planning node and associated business parterns within the planning board.  I can also make an assignment of a demand to an individual business partner.  However, when I try to save the planning board, I get the following error message: "Business partner ## does not exist" where ## is actually the personnel number.  On the BP record, I did specify the personnel number.
    Any ideas as to why I would be getting this error message?
    To summarize master data set-up:
    - HR mini-master created wtih infotypes 0000 (Organizational Assignment), 0001 (Personal Data), 0105 (Communication) and 0185 (Personal IDs)
    - Business partner created with Employee role - and Personnel number added to the Identification tab
    - Created new org unit and position in HR organization structure - and added business partner to the position
    - Create new work center - and linked to HR org unit
    Thank you in advance for any advice.

    You could try installing it in the local package ($tmp) itself.

  • Error in transferring data from Catalog , in Managing business partners,SRM

    When I post data of Suppliers from ROS , and then check the <b>Manage business partners in mySAP SRM ( ITS) pages</b> , it pops a message <b>" Data cant be transeferred from Catalog".</b>
    Can anyone please explain ,,how to overcome this problem,,,
    Is it a config problem or some problem in Codes ?
    Its giving error for the Standard SAP ROS page also.
    Gautam

    Hi
    <u>Seems like some BASIS issue related to Roles/ Profiles / Authorization object missing for the log on user. Try giving SAP_ALL and SAP_NEW profiles to the user and see whether the same error happens or not.</u>
    Also ensure, number range configuation settings in SPRO are correctly maintained.
    <u>The Preselect Vendors transaction is delivered with the single roles. In order to use the transaction, you must enter the URL for supplier screening in the single role. Then you must update and activate the composite role.</u>
    <b>Supplier Screening with ERP</b> <u>You have logged onto the supplier registration system with the role SAP_EC_SUS_ROS_ PROCESSOR.</u>
    Refer to these links for details.
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/77/a498403de08368e10000000a1550b0/frameset.htm</b>
    http://help.sap.com/saphelp_srm50/helpdata/en/b8/92303fdcf66d37e10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    Regards
    - Atul

  • Error when assigning  business partners to positions in org. mgmt.

    Hello,
    I've got the following problem. I want to assign business partners to a position in organisation management. When doing this, the following error occurs:
    "Object cannot be assigned to object xxx in the period xx.xx.xxxx - xx.xx.xxxx"
    (xxx is the position to which the business partner should be assigned)
    The number of this error message is 5A368.
    Diagnosis in the detailed description of this message:
    "The object period of object '1st Level Support' is not within the relationship period 26.03.2007 - 31.12.9999."
    I've changed the object period of the position "1st Level Support" to several other dates, but it did not solve the problem.
    The described problem does not occur, when assigning an user to this position.
    Can anybody help me with this problem? I'm using SolMan 4.0.
    Thank you in advance!

    Thanks for your answer so far. Unfortunately it's not possible for me to upgrade to SP11. So I tried to solve the problem the way you described. I double-clicked the position on the left, the desired position is shown in the main screen and I try to assign the business partner to the position. But the same error appears.
    Are there any other possible solutions?
    What are the consequences of assigning users to a position instead of business partners?

  • Initial Load of IS-U business partners to CRM - bdoc error

    Hi Gurus,
    i try to do an initial download from R/3 IS-U to CRM. Several objects from customizing have already been downloaded successfully. When downloading the business partners i get a bdoc error message for every single BP saying that
    'business partner role MKK is not available' Number R1206
    I figured out that the business partners in IS-U do have that role 'Contract partner' (which is technical 'MKK') and that data is maintained there. I also checked CRM and figured out that a business partner role 'contract partner' is not available there.
    Should i create it manually?? It is nowhere mentioned that a CRM role 'contract partner' should be created manually. Shouldn't the middleware do that? I found a document on service marketplace called 'IS-U specifics on the setup and load guide for the business partners' where i can read:
    'Sold-to-parties in CRM are replicated as contract partners in the OLTP system and vice versa'
    Does that mean that this mapping of roles is hardcoded? Is it customizeable? Does somenone know where to customize the mapping of business partner roles?
    Thank you
    Edited by: sapgipsy on Mar 19, 2010 4:21 PM
    Edited by: sapgipsy on Mar 19, 2010 4:22 PM

    Looks like as if you haven't activated the IS-U specific FM "COM_BUPA_MWX_BPS_FILL_ISU" in the BP middleware framework where the conversion between the IS-U role "MKK" and the CRM role "CRM000" takes place:
    Check via SM30 table com_bupa_call_fu in the IS-U system if the above FM is activated.
    Regards,
    Alexander

  • Error adding new business partners

    Hi all,
    When we try to add new business partners, we get the system error message stating "Accounts receivable/payable is missing [Business Partner - Accounts Receivable/Payable]  [Message 3502-14].   This is a bit of a worry as it does note happen in the test database, and this occurs with every account that tries to carry the action out. Anyone got any ideas?
    Cheers,
    Nick Reese

    Hi Nick,
    the application is telling you that one of the mandatory control accounts is not pre-defined under Administration -> Set-up -> Financial -> GL account deteremination -> Purchasing -> General tab.
    Not all localisations come with all default GL accounts pre-determined & the company accountant should either enter their preferred default accounts in the GL account determination or manually enter it/them in the individual BP master record. The system will not allow addition of a BP is the mandatory accounts are not defined & return with the error message you experience.
    Therefore, either enter all accounts in the GL account determination, or, while you're creating the new BP, go to the tab 'accounting' -> tab 'general' & enter the accounts payable account. Click on the button with the 3 dots toalso  define the DP receivables & open debts accounts if necessary.
    It happens quite often that an accountant pre-defines the most common control accounts, but leaves the more rarely used ones blank, such as the EU Accounts payable, for example. So if you create an EU vendor & don't enter the account manually, the error message is triggered.
    All the best,
    Kerstin

  • How to add a Journal Entry - Error "Code undefined"

    Hi, i want to add a simple journal entry by using DI-Api. The problem is, i always get the error message "Code undefined" when I use the Debitor-AccountCode.
    My code is like that:
    oJ.TaxDate=dTaxDate;
    oJ.AutoVat=BoYesNoEnum.tNO;
    oJ.Lines.AccountCode="2000";    //Customer
    oJ.Lines.ContraAccount="4020";
    oJ.Lines.Credit=dCredit;
    oJ.Lines.Debit=dDebit;
    oJ.Lines.TaxDate=odTaxDate;
    oJ.Lines.ShortName="23121089";
    oJ.Lines.LineMemo="Ausgangsrechnung";
    oJ.Lines.Add();
    oJ.Lines.AccountCode="3500";   //VAT
    oJ.Lines.ContraAccount="23121089";
    oJ.Lines.Credit=dCredit;
    oJ.Lines.Debit=dDebit;
    oJ.Lines.TaxDate=odTaxDate;
    oJ.Lines.ShortName="23121089";
    oJ.Lines.LineMemo="Ausgangsrechnung";
    oJ.Lines.Add();
    oJ.Lines.AccountCode="4020";
    oJ.Lines.ContraAccount="23121089";
    oJ.Lines.Credit=dCredit;
    oJ.Lines.Debit=dDebit;
    oJ.Lines.TaxDate=odTaxDate;
    oJ.Lines.ShortName="23121089";
    oJ.Lines.LineMemo="Ausgangsrechnung";
    oJ.Add();

    Hi,
    Here is the code to find the BP account number:
    oRecordset = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
                        oRecordset.DoQuery("SELECT [LinkAct_3] FROM [dbo].[OACP]");
                        oRecordset.MoveFirst();
                        if (oRecordset.EoF == true) // We have a Error
                            oCompany.GetLastError(out vmp_B1_Error_Code_int, out vmp_B1_Error_Message_string);
                            SBO_Application.MessageBox("Add-On Error (Forgestik Inc.): ERR-789 \n " + "Cash Account does not Exist "+ vmp_B1_Error_Message_string, 1, "Ok", "", ""); // My Error Code
                        else
                            vm_CachAccountNumber_string = Convert.ToString(oRecordset.Fields.Item("LinkAct_3").Value);
    ...Then you have to use the system account number "_SYS00000000353" not the displayed account number in B1...
    Thank you,
    Rune

  • Error updating business partners

    Hi,
    I have a routine to add/updat business partners, but when I update them I get the message  "Cannot add multi bill.to address to non supplier BP", but I am doning nothing with the addresses.
                    If bp.GetByKey(rs.Fields.Item(0).Value) Then
                        bp.CardType = SAPbobsCOM.BoCardTypes.cLid
                        bp.CardName = compname
                        bp.Phone1 = telnr
                        bp.ContactPerson = contactp
                        bp.Website = website
                        bp.UserFields.Fields.Item("U_HUIDPAKK").Value = huidigpak
                        If bp.UserFields.Fields.Item("U_BELVERSL").Value.length > 0 Then
                            bp.UserFields.Fields.Item("U_BELVERSL").Value += contact
                        Else
                            bp.UserFields.Fields.Item("U_BELVERSL").Value = contact
                        End If
                        bp.UserFields.Fields.Item("U_MAILDATM").Value = caldate
                        Dim rc As Integer = bp.Update
                        If rc <> 0 Then
                            SBO_Application.MessageBox("UPDATE: " + oCmp.GetLastErrorDescription + vbCrLf + bp.CardCode)
                        End If
                    Else
                            SBO_Application.MessageBox(rs.Fields.Item(0).Value + " niet gevonden")
                        End If
                    End If

    Hey Ad,
    Looks like it is not possible.
    BusinessPartners Object has a BPAdresses object, which contains all adressses (ship to and bill to). But The BPAdresses object only contains an add function, no remove function.
    So you'll should delete the business partner, and add it again...
    Good luck!
    Edit:
    You'll can also delete the address entry in table CRD1 (that's the adresses table according to the DI-API. Not supported by SAP though, (you'll lose support) so take care with it...
    Message was edited by: R. Schwachofer

  • DTW Error65171 when Updating Business Partners

    I have gotten the following error multiple times when attempting to update Business Partners in the DTW:  "Can not find this object in B1Application-defined or object-defined error65171".  I have tried many different things as well as only trying to import one record with only the line num, card code, and card type and still I get this error when trying to update BP's.  I have also tried using both a tab delimited and a comma delimited file.  Pleae let me know if you have any related information.  Thanks!

    Hi Sarah,
    a typical situation where this kind of error occurs is when there is data in the line to be imported/updated which is not defined in SAP, e.g. in the import-file I used a tax-code which was not defined in SAP.
    Furthermore I had problems with a newer version of DTW (no time to look for the version number right now). With this version it is NOT possible to UPDATE business partners. I installed an older version of DTW which was part of SAP BO 2005A SP01 PL16 (if I remember it corretly) and did the update of business partners.
    To solve your problem you should inform us on the versions of SAP and DTW you are currently using, as Suda already asked you for in his reply!
    Regards,
    Frank Romeni

  • Downloading Business Partners - change message of wrong bank account

    Hi Pros,
    I just have a question. Actually we download Business Partners from oure R/3 System, and sometimes we have error-bdocs in SMW01.
    The problem is, that in oure R/3 we changed the message of a wrong postal code to a warning instead of an error, so in R/3 the bank account check is very soft, and in oure CRM it is standard.
    Now I can not find the place where I can change the message type. The message is R1 227 bank account number is invalid.
    Thanks a lot for yopur help.
    best regards
    Christian

    You should check if you have the bank account in both systems. If the data is in the BP will flow to CRM. And if the bank account does not exist there, you will get the error. Just ensure that you have downloaded first the bank accounts.
    Thanks,
    Iván
    P.D.: Please give points if the answer helps!

  • DTW Updating Business Partners

    Hello Guys
    I am trying to upload the Business Partners via DTW to SAP B1, its returning me with an error key="DocEntry" Reason="Can not find this onjects in B1Application-defined or object-defined error65171" i used the same template lastime to upload and it worked fine i dont know what the problem is, do you guys have any clue on this one.
    Thanks

    Well one thing you should take note of is if you're using a CSV file to import in your data, you should make sure there arent any comma's in the sheet as B1 DTW will 'flow' the data into a new field after the comma. We've seen this happen over and over again.
    The values in the whole column of 20 000 BP codes are fine, empty, all good. Then 12 000 BP codes into the DTW and it starts kicking up a fuss.
    Best way to trouble shoot this is to do a test and cut out the last row BEFORE the error line, the actual error line and 1 row after the error. Then do a test import and see if there are any errors. If there isnt, then you should focus on the 3 rows of data

  • Problem updating business partners - "Bank does not exist in the company"

    Hi
    I have written a small program to update business partners ( SP01 PL 34 ) and I am getting a message saying "Bank does not exist in the company"
    I am only updating simple information such as telephone, fax and email addresses.
    Does anyone know why I am getting that error ?
    Thanks
    Regards Andy

    Paul,
    Other than the code that you have written, are there any other add-ons installed with Business One such as the Payment Engine?
    I have not heard of this issue.  You may want to create a message with SAP Support since you are getting the same error through the DTW which also uses the DI API.
    Also, is there any difference between what you manually key in and what you try to push in?
    Eddy

  • Add/Update Business Partner Error 5002

    Hi,
    I'm having problem with the DI API. We are testing our application with SAP B1 SP1 PL 34. With this version, it seems impossible to add or update a business partner. oBP.add and oBP.update always return the error -5002 with no description.
    I even have the error if I remove every line of code that change something on the bp. So, I have a code like this that return the error -5002
    oBP.GetByKey(intBPID)
    oBP.Update
    How this can return an error if we change nothing otherwise it is a bug ?
    Anybody has an idea or suggestion ?
    Thank you for your help
    Jodérick Picard

    Hi,
    I've more details.
    I was testing the update with my code :
    oBP.GetByKey(intBPID)
    oBP.Update
    and I found some business partner where the code works ok, BUT most of the business partner doesn't work.
    All business partners update without error in SAP B1. So how could it not work with the SDK when the data itself is valid for SAP B1 when using the GUI?
    Thank you
    Jodérick Picard

  • Email Notification for multiple business partners

    Hi,
    I can send email to a single partner based on my action. Is it possible to send the emails to multiple partners for a single action.
    Thanks in advance.
    Regards,
    M.R

    Hi;
    Email notification to multiple business partners is not provided in standart SAP functions via actions. It is not related with actions and conditions. Below is the code for the related method... I may send the screenshots if you can give me your mail address... Use this method with smartform: CRM_IST_ORDER_CONFIRMATION_01
    CLASS : CL_DOC_PROCESSING_CRM_ORDER
    METHOD NAME: ....
    METHOD DEFINITION:
    IS_ARCHIVE_INDEX     Importing     Type     TOA_DARA
    IS_ARCHIVE_PARAMETERS     Importing     Type     ARC_PARAMS
    IS_CONTROL_PARAMETERS     Importing     Type     SSFCTRLOP
    IS_OUTPUT_OPTIONS     Importing     Type     SSFCOMPOP
    IO_APPL_OBJECT     Importing     Type Ref To     OBJECT
    IP_SMART_FORM     Importing     Type     TDSFNAME
    IS_MAIL_APPL_OBJ     Importing     Type     SWOTOBJID
    IS_MAIL_RECIPIENT     Importing     Type     SWOTOBJID
    IS_MAIL_SENDER     Importing     Type     SWOTOBJID
    IO_PARTNER     Importing     Type Ref To     CL_PARTNER_PPF
    IP_USER_SETTINGS     Importing     Type     TDBOOL
    IP_APPLICATION_LOG     Importing     Type     BALLOGHNDL
    ES_DOCUMENT_OUTPUT_INFO     Exporting     Type     SSFCRESPD
    ES_JOB_OUTPUT_INFO     Exporting     Type     SSFCRESCL
    ES_JOB_OUTPUT_OPTIONS     Exporting     Type     SSFCRESOP
    ET_ERROR_TAB     Exporting     Type     TSFERROR
    CT_ARCHIVE_INDEX_TAB     Changing     Type     TSFDARA
    METHOD z_anahtar_kullanici_yeni.
    *This Method is used to print service order.
    generally used constants of generic order
      INCLUDE: crm_direct.
      DATA:
            control_parameters TYPE ssfctrlop.
    function name
      DATA: function_name TYPE rs38l_fnam,
            dummy(254)        TYPE c,
            ls_archive_index  TYPE  toa_dara,
            ls_orderadm_h     TYPE  crmt_output_orderadm_h_com,
            ls_activity_h     TYPE  crmt_output_activity_h_com,
            ls_opport_h       TYPE  crmt_output_opport_h_com,
            ls_orgman_h       TYPE  crmt_output_orgman_h_com,
            lt_partner_h      TYPE  crmt_output_partner_h_comt,
            ls_partner_h      TYPE  crmt_output_partner_h_comt,
            ls_pricingdata_h  TYPE  crmt_output_pricingdata_h_com,
            ls_sales_h        TYPE  crmt_output_sales_h_com,
            ls_shipping_h     TYPE  crmt_output_shipping_h_com,
            lt_payplan_d_h    TYPE  crmt_output_payplan_d_h_comt,
            ls_customer_h     TYPE  crmt_output_customer_h_com,
            ls_cumulat_h      TYPE  crmt_output_cumulat_h_com,
            lt_billing_h      TYPE  crmt_output_billing_h_comt,
            lt_cancel_h       TYPE  crmt_output_cancel_h_comt,
            lt_appointment_h TYPE   crmt_output_appointment_h_comt,
            lt_billplan_d_h  TYPE   crmt_output_billplan_d_h_comt,
            lt_billplan_h    TYPE   crmt_output_billplan_h_comt,
            lt_status_d_h    TYPE   crmt_output_status_d_h_comt,
            lt_status_h      TYPE   crmt_output_status_h_comt,
            lt_srv_subject_h TYPE   crmt_output_srv_subject_h_comt,
            lt_srv_reason_h  TYPE   crmt_output_srv_reason_h_comt,
            lt_srv_result_h  TYPE   crmt_output_srv_result_h_comt,
            ls_acs_h         TYPE   crmt_acs_h_com,
            lt_srv_subject_i TYPE   crmt_output_srv_subject_h_comt,
            lt_srv_refobj_h  TYPE   crmt_output_srv_refobj_h_comt,
            lt_srv_refobj_i  TYPE   crmt_output_srv_refobj_h_comt,
            lt_orderadm_i    TYPE   crmt_output_orderadm_i_comt,
            lt_orgman_i      TYPE   crmt_output_orgman_i_comt,
            lt_pricingdata_i TYPE   crmt_output_pricingdata_i_comt,
            lt_pricing_i     TYPE   crmt_output_pricing_i_comt,
            lt_product_i     TYPE   crmt_output_product_i_comt,
            lt_sales_i       TYPE   crmt_output_sales_i_comt,
            lt_service_i       TYPE   crmt_output_service_i_comt,
            lt_shipping_i    TYPE   crmt_output_shipping_i_comt,
            lt_schedlin_i    TYPE   crmt_output_schedlin_i_comt,
            lt_customer_i    TYPE   crmt_output_customer_i_comt,
            lt_partner_i     TYPE   crmt_output_partner_i_comt,
            lt_item_cstics_i TYPE   crmt_item_cstics_tab,
            lt_billing_i     TYPE   crmt_output_billing_i_comt,
            lt_cancel_i      TYPE   crmt_output_cancel_i_comt,
            lt_finprod_i     TYPE   crmt_output_finprod_i_comt,
            lt_ordprp_i      TYPE   crmt_output_ordprp_i_comt,
            lt_appointment_i TYPE   crmt_output_appointment_i_comt,
            lt_billplan_d_i  TYPE   crmt_output_billplan_d_i_comt,
            lt_billplan_i    TYPE   crmt_output_billplan_i_comt,
            lt_orderadm_i_qt TYPE   crmt_output_orderadm_i_qt_comt,
            lt_schedlin_i_cf TYPE   crmt_output_schedlin_i_cf_comt,
            lt_status_i      TYPE   crmt_output_status_i_comt,
            lt_working_set_e_s_bbp TYPE /1cn/working_set_e_s_bbp_t,
            lv_language LIKE  sy-langu,
            lo_order TYPE REF TO cl_doc_crm_order,
            lv_object_guid TYPE crmt_object_guid,
            lv_status TYPE jstat,
            lt_status TYPE TABLE OF jstat,
            lv_error_tab_wrk TYPE ssferror,
            ls_output_options TYPE ssfcompop,
    for assignments - begin
            lt_service_i_assi TYPE  crmt_output_service_i_***_comt
    for assignments - end
    fill internal structure for the output options
      ls_output_options = is_output_options.
    get the function name for this smart form
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
           EXPORTING
                formname           = ip_smart_form
            VARIANT            = ' '
            DIRECT_CALL        = ' '
           IMPORTING
                fm_name            = function_name
           EXCEPTIONS
                no_form            = 1
                no_function_module = 2
                OTHERS             = 3
      IF sy-subrc <> 0.
      add an error message to processing protocol
        MESSAGE i015(sppf_media) WITH ip_smart_form INTO dummy.
        CALL METHOD cl_log_ppf=>add_message
          EXPORTING
            ip_problemclass = '1'
            ip_handle       = ip_application_log.
        EXIT.
      ENDIF.
    determine the tables of the application
      CALL FUNCTION 'CRM_OUTPUT_SINGLE_READ'
           EXPORTING
                iv_object                 = io_appl_object
                iv_smart_form             = ip_smart_form
                ir_partner                = io_partner
           IMPORTING
                es_output_orderadm_h      = ls_orderadm_h
                es_output_activity_h      = ls_activity_h
                es_output_opport_h        = ls_opport_h
                es_output_orgman_h        = ls_orgman_h
                es_output_pricingdata_h   = ls_pricingdata_h
                es_output_sales_h         = ls_sales_h
                es_output_shipping_h      = ls_shipping_h
                et_output_partner_h       = lt_partner_h
                et_output_payplan_d_h     = lt_payplan_d_h
                es_output_customer_h      = ls_customer_h
                es_output_cumulat_h       = ls_cumulat_h
                et_output_billing_h       = lt_billing_h
                et_output_cancel_h        = lt_cancel_h
                et_output_appointment_h   = lt_appointment_h
                et_output_billplan_d_h    = lt_billplan_d_h
                et_output_billplan_h      = lt_billplan_h
                et_output_status_d_h      = lt_status_d_h
                et_output_status_h        = lt_status_h
                et_output_srv_subject_h   = lt_srv_subject_h
                et_output_srv_reason_h    = lt_srv_reason_h
                et_output_srv_result_h    = lt_srv_result_h
                et_output_srv_refobj_h    = lt_srv_refobj_h
                et_output_srv_refobj_i    = lt_srv_refobj_i
                et_output_srv_subject_i   = lt_srv_subject_i
                es_output_acs_h           = ls_acs_h
                et_output_orderadm_i      = lt_orderadm_i
                et_output_orgman_i        = lt_orgman_i
                et_output_pricingdata_i   = lt_pricingdata_i
                et_output_pricing_i       = lt_pricing_i
                et_output_product_i       = lt_product_i
                et_output_sales_i         = lt_sales_i
                et_output_service_i       = lt_service_i
                et_output_shipping_i      = lt_shipping_i
                et_output_schedlin_i      = lt_schedlin_i
                et_output_partner_i       = lt_partner_i
                et_item_cstics_i          = lt_item_cstics_i
                et_output_customer_i      = lt_customer_i
                et_output_billing_i       = lt_billing_i
                et_output_cancel_i        = lt_cancel_i
                et_output_finprod_i       = lt_finprod_i
                et_output_ordprp_i        = lt_ordprp_i
                et_output_appointment_i   = lt_appointment_i
                et_output_billplan_d_i    = lt_billplan_d_i
                et_output_billplan_i      = lt_billplan_i
                et_output_orderadm_i_qt   = lt_orderadm_i_qt
                et_output_schedlin_i_cf   = lt_schedlin_i_cf
                et_output_status_i        = lt_status_i
                et_output_wrk_set_e_s_bbp = lt_working_set_e_s_bbp
                ev_language               = lv_language
    for assignments - begin
                et_output_service_i_assi  = lt_service_i_assi
    for assignments - end
    set mail title
    SELECT SINGLE caption INTO ls_output_options-tdtitle
       FROM stxfadmt WHERE
       formname = ip_smart_form AND
       langu    = lv_language.
    IF ls_output_options-tdtitle  IS INITIAL.
       SELECT SINGLE caption INTO ls_output_options-tdtitle
        FROM stxfadmt WHERE
        formname = ip_smart_form.
    ENDIF.
      CONCATENATE 'Servis Masas&#305; - Yeni bir sorun aç&#305;ld&#305;:'
      ls_orderadm_h-object_id INTO ls_output_options-tdtitle
      SEPARATED BY space.
    is_mail_appl_obj -
    fill this parameter if your application object is a BOR object
    the output will be connected with the BOR object via SAP Office
    this is done for mail and fax but not for print outputs
      ------>
    is_mail_appl_obj-LOGSYS    =
    is_mail_appl_obj-OBJTYPE   =
    is_mail_appl_obj-OBJKEY    =
    is_mail_appl_obj-DESCRIBE  =
      ------>
    language of smart form----
    determin here the language of the smart form
      control_parameters = is_control_parameters.
      control_parameters-langu = lv_language.
    fill archive parameters for archive link -
      IF is_output_options-tdarmod = '2' OR
         is_output_options-tdarmod = '3'.
      archive_index_tab
        READ TABLE ct_archive_index_tab INTO ls_archive_index INDEX 1.
        ls_archive_index-object_id = ls_orderadm_h-guid.
        IF ls_archive_index-object_id IS INITIAL.
          DELETE ct_archive_index_tab INDEX 1.
        ELSE.
          MODIFY ct_archive_index_tab FROM ls_archive_index INDEX 1.
        ENDIF.
      ENDIF.
      DATA : zzpartner TYPE crmt_output_partner_h_com .
      DATA : zzadres TYPE so_name .
      DATA : zobjkey TYPE swotobjid-objkey .
      DATA: lv_user           TYPE syuname,
            lv_mailaddr       TYPE so_name,
            lv_type_id        TYPE so_escape,
            lv_partnno        TYPE ppfdpartno,
            lv_partner_no     TYPE bu_partner,
            lv_partner        TYPE crmt_object_guid,
            ls_mail_recipient TYPE swotobjid.
      LOOP AT lt_partner_h INTO zzpartner .
        CLEAR zzadres.
        CHECK zzpartner-ref_partner_fct EQ 'ZSLFN001'.
        SELECT SINGLE smtp_addr FROM adr6 INTO zzadres
                               WHERE addrnumber = zzpartner-addr_nr.
        CHECK sy-subrc EQ 0.
        lv_mailaddr = zzadres.
        lv_type_id = 'U'.
        CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
          EXPORTING
            ip_mailaddr       = lv_mailaddr
            ip_type_id        = lv_type_id
          IMPORTING
            ep_recipient_id   = ls_mail_recipient
          EXCEPTIONS
            invalid_recipient = 1
            OTHERS            = 2.
    delete the old recipient object
        CALL FUNCTION 'DELETE_RECIPIENT_OBJECT_PPF'
          EXPORTING
            is_recipient_id = is_mail_recipient.
    call function to process smart form
        CALL FUNCTION function_name
             EXPORTING
                  archive_index        = is_archive_index
                  archive_index_tab    = ct_archive_index_tab
                  archive_parameters   = is_archive_parameters
                  control_parameters   = control_parameters
                  mail_appl_obj        = is_mail_appl_obj
               mail_recipient       = is_mail_recipient
                  mail_recipient       = ls_mail_recipient
                  mail_sender          = is_mail_sender
                  output_options       = ls_output_options
                  user_settings        = ip_user_settings
                  orderadm_h           = ls_orderadm_h
                  activity_h           = ls_activity_h
                  opport_h             = ls_opport_h
                  orgman_h             = ls_orgman_h
                  partner_h            = lt_partner_h
                  pricingdata_h        = ls_pricingdata_h
                  sales_h              = ls_sales_h
                  shipping_h           = ls_shipping_h
                  payplan_d_h          = lt_payplan_d_h
                  cumulat_h            = ls_cumulat_h
                  customer_h           = ls_customer_h
                  acs_h                = ls_acs_h
                  billing_h            = lt_billing_h
                  cancel_h             = lt_cancel_h
                  appointment_h        = lt_appointment_h
                  billplan_d_h         = lt_billplan_d_h
                  billplan_h           = lt_billplan_h
                  status_d_h           = lt_status_d_h
                  status_h             = lt_status_h
                  srv_subject_h        = lt_srv_subject_h
                  srv_reason_h         = lt_srv_reason_h
                  srv_result_h         = lt_srv_result_h
                  srv_subject_i        = lt_srv_subject_i
                  srv_refobj_h         = lt_srv_refobj_h
                  srv_refobj_i         = lt_srv_refobj_i
                  orderadm_i           = lt_orderadm_i
                  orderadm_i_qt        = lt_orderadm_i_qt
                  orgman_i             = lt_orgman_i
                  pricingdata_i        = lt_pricingdata_i
                  pricing_i            = lt_pricing_i
                  product_i            = lt_product_i
                  sales_i              = lt_sales_i
                  service_i            = lt_service_i
                  schedlin_i           = lt_schedlin_i
                  schedlin_i_cf        = lt_schedlin_i_cf
                  shipping_i           = lt_shipping_i
                  partner_i            = lt_partner_i
                  item_cstics_i        = lt_item_cstics_i
                  customer_i           = lt_customer_i
                  billing_i            = lt_billing_i
                  cancel_i             = lt_cancel_i
                  finprod_i            = lt_finprod_i
                  ordprp_i             = lt_ordprp_i
                  appointment_i        = lt_appointment_i
                  billplan_d_i         = lt_billplan_d_i
                  billplan_i           = lt_billplan_i
                  status_i             = lt_status_i
                  working_set_e_s_bbp  = lt_working_set_e_s_bbp
                  language             = lv_language
    for assignments - begin
                  service_i_assi      =  lt_service_i_assi
    for assignments - end
             IMPORTING
                  document_output_info = es_document_output_info
                  job_output_info      = es_job_output_info
                  job_output_options   = es_job_output_options
             EXCEPTIONS
                  output_canceled      = 1
                  parameter_error      = 2
                  OTHERS               = 3.
        IF sy-subrc = 0.
    determine header guid to set status printed
          lo_order ?= io_appl_object.
          lv_object_guid = lo_order->get_crm_obj_guid( ).
    set status printed into the crm order
          CALL FUNCTION 'CRM_STATUS_SET_INTERN'
            EXPORTING
              iv_objnr            = lv_object_guid
              iv_status           = gc_status-printed
              xnoauto             = true
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ELSE.
          CASE sy-subrc.
            WHEN 1.
              MESSAGE e016(sppf_media) INTO dummy.
            WHEN 2.
              MESSAGE e017(sppf_media) WITH function_name INTO dummy.
            WHEN 3.
              MESSAGE e018(sppf_media) WITH function_name INTO dummy.
          ENDCASE.
          CALL METHOD cl_log_ppf=>add_message
            EXPORTING
              ip_problemclass = '1'
              ip_handle       = ip_application_log.
        ENDIF.
    get error table
        CALL FUNCTION 'SSF_READ_ERRORS'
          IMPORTING
            errortab = et_error_tab.
    fill error into crm_order status
        LOOP AT et_error_tab INTO lv_error_tab_wrk
                 WHERE msgty = gc_msgtype-error.
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
               EXPORTING
                    iv_caller_name     = gc_object_name-order
                    iv_msgno           = lv_error_tab_wrk-msgno
                    iv_msgid           = lv_error_tab_wrk-msgid
                    iv_msgty           = lv_error_tab_wrk-msgty
                    iv_msgv1           = lv_error_tab_wrk-msgv1
                    iv_msgv2           = lv_error_tab_wrk-msgv2
                    iv_msgv3           = lv_error_tab_wrk-msgv3
                    iv_msgv4           = lv_error_tab_wrk-msgv4
                IV_ERROR_RELEVANCE = FALSE
                    iv_msglevel        = gc_msglevel-administrator
               EXCEPTIONS
                    not_found          = 1
                    appl_log_error     = 2
                    OTHERS             = 3.
        ENDLOOP.
      ENDLOOP .
    ENDMETHOD.

  • Cannot retrieve business partners in SAP mobile iPad

    Hello Colleagues,
    since some days I'm not able to retrieve business partners in my SAP mobile App.
    Neither in iPad nor in iPhone.
    I tried it on 2 different test servers.
    A couple of day's before I saw all the business partners.
    The only change I did in the last days was executing the steps regarding the Java JRE that was recommended by SAP Note 1582526.
    In the Message-Log I've found the following:
    The SQL-Exception with the ErrorCode 242 points to a conversion error from the given Date-String to a DateTime Value.
    The Date-String is automatically inserted by the (whatever) system, it is the current date.
    Is there a possibility to change the DateTime Format so the query can pass thru and I can see the business-partners?
    Thank you in advance
    Rudy.

    Problem solved
    After setting the language of the sql server "sa" from german to english, everything works fine.
    I don't know why this problem occurred. I never changed the language before...
    Cheers
    Rudy

Maybe you are looking for

  • Billing Document with Reference to Delivery Doc

    Hi Guru's, Just wanted to know why thus my billing document still get the quantity in reference to sales doc even my item category settings in VOV7 has Billing Relevance = 'A'. Note that my doc floow has.. SO>DEL>G.I.-->BILLING. Thank you in advance.

  • Duke's bookstore2 displays only one book title

    When I run Duke's bookstore2 from the Tutorial (Chapter 12: JavaServer Pages Technology: The Example JSP Pages), I'm not getting any error messages, but instead of seeing the graphical "Duke's Bookstore" heading followed by a horizontal line and "Ple

  • ZENworks Imaging Loop

    Sorry for posting again, but here is some more information, as well as some extra things we have tried. Hi, The screen results with this exit code after the workstation has been imaged, prior to booting back into PXE and then re-imaging, along with c

  • Time machine "Exclude these items from backups" keeps re-adding my external drive

    I have several external hard drives that contain data I wish to backup.  With Lion I had them removed from the "Exclude these items from backups" list and all was well. Since upgrading to Mountain Lion I have been not so lucky.  I was able to keep on

  • Can't get iPhoto to play vids

    Hi I can't get iPhoto to play videos - I double click but nothing. If I drag the video to the desktop and double click it opens fine?? Help anyone