BAPI Create Contract Account in Module PSCD

Hi all,
I have a requirement create Contract Account (TCode CAA1) in module PSCD by BAPI.
I use BAPI : BAPI_CTRACCONTRACTACCOUNT_CR1.
I set value for some required parameters and Perform BAPI, i receive 2 error messages in RETURN parameter :
- Enter a value in field Account Determ. ID
- Enter a value in field Payment Terms
I don't know where to set value for Account Determ.ID and Payment Terms in BAPI.
I searched description of BAPI parameters but there is no BAPI parameter suitable.
I also searched on this forum but no topic found.
Pls help,
Thank.
nvsinh.

Hi all,
The problem is solved.
The proplem comes from release version of ECC6.
Thanks all,
Sinhto

Similar Messages

  • Data Conversion to Create Contract Account

    What would be the best solution to use to create Contract Accounts from legacy data?  I am weighing the options of using LSMW and Emigall.  How would you weigh these options based on ease of use and performance?
    Thanks,
    Jeremy

    Hi, Jack
    Did you go to the path I indicated? In there, for each company code, you need to maintain which budget billing procedures you allow.
    0 means no BB procedure.
    SAP says:
    "If you enter 1 (statistical procedure), budget billing requests are managed as statistical items in the Contract Accounts Receivable and Payable (FI-CA) component and do not affect the general ledger.
    If you enter 2 (debit entry procedure), budget billing requests are posted as partial bills.
    If you enter 3 (payment plan procedure), the budget billing amount is requested as the new bill amount instead of the bill amount determined by billing and invoicing. The difference between the actual bill amount and the payment plan amount is managed in a special item. This procedure is used for monthly billing.
    If you enter 4 (payment scheme procedure), the bill amount is integrated into the budget billing plan. The bill can no longer be paid separately. The budget billing requests are posted as statistical items in the same way to the installment plan.
    If you enter 5 (down payment request plan), a special payment plan is created for industry customers. This plan is suitable for industry customers with monthly periods as the down payment plan for the month after next. To use this procedure, establish the settings in Customizing."
    After that, you need to maintain all the activities related to the BB procedures you want to use, in SAP Utilities / Invoicing / Budget Billing Plan. Check all activities and see what you need to customize.

  • Authorization when creating contract account

    Dear gurus,
    I am now have a problem with authorization when creating Contract Account for Business Partner with the scenario: each user only have right to create Contract Account for some BP Number Range that I determine in their Role. Is that possible to do this scenario?
    Pls help me,
    Thanks a lot

    Hi,
    May be you can set the same in the User Authorization roles where in you can restrict the user to create Contract account for certain BP only. May be you can work along with your Basis consultant to solve this issue or you can also try for validation rules if it works for this scenario.
    regards,
    radhika

  • How to Create Contract Accounts through Data Conversion?

    What would be the best solution to use to create Contract Accounts from legacy data?  I am weighing the options of using LSMW and Emigall.  How would you weigh these options based on ease of use and performance?
    Thanks,
    Jeremy

    Hi Jeremy.
    Another option that I have used is the use of a start routine program that creates the master data on the fly.  Essentially, you create an internal table in the form of the master data or text table.  Then you call the function RSDMD_WRITE_ATTRIBUTES_TEXTS.  The code would look something like
    DATA: lt_text_data type standard table of /BIC/TZIOBJ,
              ls_text_data like line of lt_master_data.
    loop at DATAPACKAGE.
         ls_text_data-ZIOBJ = DATAPACKAGE-field.
         ls_text_data-ZATTR = DATAPACKAGE-text.
         appens ls_text_data to lt_text_data.
    endloop.
    call function 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
         exporting
               i_iobjnm = 'ZIOBJ'
              i_tabclass = 'T'
          tables
              i_t_table - lt_text_data.
    Hope that helps.
    Adam

  • Unable to create Contract account

    I am unable to create contract account. I am getting the error message as "Key selection not defined for application R company code List of budget billing proceuders(R301)"
    How to go further?

    Hi, Jack
    Did you go to the path I indicated? In there, for each company code, you need to maintain which budget billing procedures you allow.
    0 means no BB procedure.
    SAP says:
    "If you enter 1 (statistical procedure), budget billing requests are managed as statistical items in the Contract Accounts Receivable and Payable (FI-CA) component and do not affect the general ledger.
    If you enter 2 (debit entry procedure), budget billing requests are posted as partial bills.
    If you enter 3 (payment plan procedure), the budget billing amount is requested as the new bill amount instead of the bill amount determined by billing and invoicing. The difference between the actual bill amount and the payment plan amount is managed in a special item. This procedure is used for monthly billing.
    If you enter 4 (payment scheme procedure), the bill amount is integrated into the budget billing plan. The bill can no longer be paid separately. The budget billing requests are posted as statistical items in the same way to the installment plan.
    If you enter 5 (down payment request plan), a special payment plan is created for industry customers. This plan is suitable for industry customers with monthly periods as the down payment plan for the month after next. To use this procedure, establish the settings in Customizing."
    After that, you need to maintain all the activities related to the BB procedures you want to use, in SAP Utilities / Invoicing / Budget Billing Plan. Check all activities and see what you need to customize.

  • Creating Contract Account "With Sample" at migration with emigall?

    Hi!
    Is it possible to define a "With Sample" type of a creation of Contract Account (and Contract Object) as it is possible at manual creation/posting? I was looking for a standard field and haven't find it.
    Thanks for your help!
    Best regards,
    Peter

    Theres a button "Create with Sample" in manual posting of ContractAccout: [screen-shoot|http://www.shrani.si/f/r/S7/4SYcJ9N4/cac.jpg]
    ...and also at ContractObject.
    Thanks for help.
    Best regards,
    Peter

  • Reg : BAPI create GL account

    Hi ,
    I need to create the GL (Company code data thro FSS1 transaction) .Data is available in Excel file . Is there any BAPI to create GL for this transaction?....
    Regards,
    Krishna.

    Hi
    This is a small BDC program which is enough to upload this GL accounts
    see the sample code
    ABAP Name   :   ZFI_GL_FSS0
    Description :   This Program is used to Upload the
                     GL Account Master using Transaction FSS0.
    REPORT zfi_gl_fss0
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Standard Include for Selection Screen
    INCLUDE bdcrecx1.
    Internal Table for Upload Data
    DATA: BEGIN OF i_gl OCCURS 0,
            saknr(010),            " GL Account
            bukrs(004),            " Company Code
            waers(005),            " Currency
            xsalh(001),            " BAl Local Curr Ind
            mwskz(002),            " Tax Category
           xopvw(001),            " Open Item Ind
           xkres(001),            " Line Item Ind
            zuawa(003),            " Sort Key
            fstag(004),            " Field Category
          END OF i_gl.
    Data Variables & Constants
    CONSTANTS : c_x             VALUE 'X',  " Flag
                c_tax           VALUE '0'.  " Tax Category
    Parameters
    PARAMETERS: p_file LIKE ibipparms-path.  " Filename
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start of Selection
    START-OF-SELECTION.
    Open the BDC Session
      PERFORM open_group.
    Upload the File into internal Table
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = i_gl
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Upload the Data from Internal Table
      LOOP AT i_gl.
    Initial Screen
        PERFORM bdc_dynpro      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN'
                                         '2001'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ACC_CRE'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'GLACCOUNT_SCREEN_KEY-SAKNR'.
        PERFORM bdc_field       USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
                                      i_gl-saknr.
        PERFORM bdc_field       USING 'GLACCOUNT_SCREEN_KEY-BUKRS'
                                      i_gl-bukrs.
        perform bdc_dynpro      using
                           'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=TAB02'.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-WAERS'
                                      i_gl-WAERS.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-XSALH'
                                      i_gl-XSALH.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
                                      i_gl-MWSKZ.
        perform bdc_field       using 'BDC_CURSOR'
                                      'GLACCOUNT_SCREEN_CCODE-ZUAWA'.
       perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-XOPVW'
                                     i_gl-XOPVW.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-XKRES'
                                      c_x."i_gl-XKRES.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
                                      i_gl-ZUAWA.
        perform bdc_dynpro      using
                             'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=SAVE'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'GLACCOUNT_SCREEN_CCODE-FSTAG'.
        perform bdc_field       using 'GLACCOUNT_SCREEN_CCODE-FSTAG'
                                      i_gl-FSTAG.
    Call The Transaction
        PERFORM bdc_transaction USING 'FSS0'.
      ENDLOOP.
    Close the BDC Session
      PERFORM close_group.
    Regards
    Anji

  • Creating contract reference with Quotation - using bapi or fm

    Hi Friends
    Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    how to create contract referenced with particular line item in the quotation.
    where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    thanks
    Gowrishankar

    gowrishankar p wrote:
    Hi Friends
    >
    > Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    >
    > Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    >
    > how to create contract referenced with particular line item in the quotation.
    >
    > where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    >
    > thanks
    > Gowrishankar
    is it really SD_SALEORDER_CREATE? if yes, which version are you in?
    Have you thought about 'BAPI_CONTRACT_CREATEFROMDATA'. Documentation available for this bapi.
    If not, just an FYI, REF_DOC field in (BAPISDHD1) -Contract_header_in structure can be used to pass the ref document and check for the type. You will also need to pass the type for this ref_doc.
    Assuming you have the configuration in place already.
    Search forum for this BAPI to get the sample code.

  • Contract Account Custom view not called when replicating thru CRM

    Hi All,
    We have modified the Contract account screen through BDT.
    Functionality -
    We have a custom table, that needs to be updated during contract account creation when reference contract account is used for creation.
    The update is successful when creating contract account via ISU, but when creating thru CRM, the custom view is not getting triggerred.
    I have checked in debugging as well, the process flow triggered via CRM is different than that from ISU. When Business Agreement is created via CRM, neither of PAI / PBO event is triggerred defined for the custom view created in BDT.
    When we have the custom field passed from CRM, it is getting updated correctly, but if the field is not passed from CRM view and we are updating using code logic in BDT modules, it is not successful.
    Could you please help in case I have missed on some config or is there any alternate way to get the custom requirement achieved.
    The requirement is to have custom table updated in both Create and Change mode.
    Thanks in Advance!!
    Regards,
    Rajesh Popat

    Hi Siva,
    Contract Account was replicating correctly for the ISU system. The issue was, we want to update some custom fields that are not passed as a part of CRM data, but using BDT and some validations, we were trying to populate that field and also update the custom table and link the same to sub screen attached for the contract account screen.
    The issues is now resolved. The custom view is getting triggered through CRM. There was some config missing for the BDT.
    When using BDT, only the PAI module gets called for all the views defined for the BDT.
    Thanks!!
    Regards,
    Rajesh Popat

  • Contract Account Number Range

    Hi All,
    I have assigned number ranges (Internally) to create Contract Account Master Data. When the Contract Account Master Data is created, the numbers are not assigning sequentially. For example:
    000200000008  
    000200000016      
    000200000024  
    000200000032 
    Please advise...
    Thanks,
    Kumar

    Hi All,
    Contract Account number range is adding 8 for every (SD and CCS) Contract Account created.
    I have the following setting for object FKK_KONTO:
    Number Lengh Domain: VKONT_KK
    No Interval Rolling       : Flag Checked
    Number Range transaction: FPN2
    Warning: 10,0
    Main Memory Buffering: Flag Checked
    No:of Numbers in Buffer: 100
    While debugging the program, I could see that it is adding 8 for each number created. But was unable to figure where it is adding.
    Thanks for the help.
    Kumar

  • BAPI/FM for creation of CONTACT RECORD for the contract account

    Hi All,
    I need to create a contact record for the a contract account.
    The contact record details will be maintained in the table BCONT.
    Let me know if there is a function module/BAPI/any othere way to create a contact record.
    Regards
    Shiva

    Hi,
    You can use the function module - BCONTACT_CREATE to create Contact record
    (or)
    make a BDC of the Tcode - BCT1(Contact creation) and use the same for creation of contacts in batch
    Note: Contact is created against Business Partner and not Contract Account. So you will have to include your logic of finding out the respective Business Partner for the Contract Account for which you need to create Contact record.
    regards
    Gagan

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • CRM - function module to create card account in deposit mangement

    Hi All,
    I need to function module to <b>display the details of business patner in CRM sytem</b>
    1. Function module to display address details of Business patner
    2. FM to display details of Identification number and identification type of Business patner.
    3. FM to display tax details of business patner.
    4. FM to display card details of Business patner
    5.)<b> Fm to create card account in deposit Mangement.</b>
    what is the transaction code to create card account in deposit management.
    Points will be awarded.
    Regards,
    vinoth.

    Hi Stefan,
    Thanks for the quick response.
    As you have suggested i am using the same set of Function Modules to create the service contracts.
    However can you please suggest how can i also change the address of the business partners i.e ship-to-party, sold-to-party, payee etc..
    And can you also suggest how to upload the header status of the service contract. (the value is getting set to default 'open')
    Thanks in advance

  • Create Sales Order with Contract Accounts Receivable and Payable Set

    I have successfully created a Sales Order using BAPI BAPI_SALESORDER_CREATEFROMDAT2. Then, I need to set value to Contract Accounts Receivable and Payable in the Sales Order Header Data (Goto -> Header -> Accounting).
    How do I do that? Can I assign a value to Contract Accounts during creation of Sales Order using BAPI BAPI_SALESORDER_CREATEFROMDAT2?

    Hi Andrew Tan,
    iam trying to creats sales order but i cannot able to creats sales order.
    I had used BAPI_SALESORDER_CREATEFROMDAT2 to create
    iam getting an message as
    SALES_HEADER_IN has been processed successfully             
    SALES_ITEM_IN has been processed successfully               
    Order receipt/delivery not possible, credit customer blocked
    help me out of this problem
    Pleases send me the code for this creation.
    Waiting for your reply.
    Thanks,
    sayyed.

  • BAPI / FM to Create Contract (Real Estate RE)

    Hi,
    Is there an available BAPI or Function module which will allow us to create contracts (RE module) without going through tcode FOIM / FOIO? These 2 tcodes are tedious to use manually.
    Hope to hear a response from the experts here soon. Thank you in advance!

    Hi Dennis,
    Actually I'm not an expert in RE but I'm an expert searching in SE37
    Could this function module be useful for you?
    BAPI_RE_CN_CREATE
    Cheers,
    Ana Luisa.
    Edited by: Ana-Luisa Sixtos on Jul 29, 2010 10:06 AM

Maybe you are looking for