Payment terms in bapi

Hi im trying to change customer data using the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1.
I manage to change all the fields except the payment terms field.
Whay is it hapenning?

Hi,
Pls check that you are properly passing
PI_OPT_PERSONALDATA
PI_OPT_PERSONALDATAX       internal tables..
if your are passing only PI_OPT_PERSONALDATA without passing PI_OPT_PERSONALDATAX, then it will not have any effect. So check you are passing both tables with same fields.
Regards,
Meet

Similar Messages

  • Changing Payment terms using Bapi

    Hi Gurus,
         I want to change the Payment terms in Purchase order / Scheduling agreement Using Bapi.
        I used BAPI_PO_CHANGE.but Payment terms are not updating.
       Useful Answers will be rewarded with Points.

    Did you use BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE.
    Look also at this <a href="http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm">Sample Abap code on BAPI_PO_CHANGE</a>
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          PURCHASEORDER = T_POHEADER-PO
          POHEADER      = T_BAPI_POHEADER
          POHEADERX     = T_BAPI_POHEADERX
        TABLES
          RETURN        = T_BAPIRETURN
          POITEM        = T_BAPI_POITEM
          POITEMX       = T_BAPI_POITEMX.
      READ TABLE t_bapireturn WITH KEY type = c_err TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_x.
      ENDIF.
    Regards

  • BAPI to UPDATE Payment Terms value in CONTRACT.

    Hi All,
    I have to update Payment Terms value under BILLING DOCUMENT TAB of CONTRACT at ITEM LEVEL.
    I am using BAPI 'BAPI_CUSTOMERCONTRACT_CHANGE' but it's not updating properly...Please see below code which i was using.
      LD_VBELN = '0040029839'.
      LS_BAPISDH1X-UPDATEFLAG = 'U'.
      LT_BAPISDITM-ITM_NUMBER = '000010'.
      LT_BAPISDITM-PMNTTRMS = 'ZP90'.
      APPEND LT_BAPISDITM.
      CLEAR LT_BAPISDITM.
      LT_BAPISDITMX-ITM_NUMBER = '000010'.
      LT_BAPISDITMX-UPDATEFLAG = 'U'.
      LT_BAPISDITMX-CUST_MAT35 = 'X'.
      APPEND LT_BAPISDITMX.
      CLEAR LT_BAPISDITMX.
    *BAPI call to update the customer material number in the sales order
      CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
       EXPORTING
        SALESDOCUMENT               = LD_VBELN
        CONTRACT_HEADER_IN          = LS_BAPISDH1
        CONTRACT_HEADER_INX         = LS_BAPISDH1X
        BEHAVE_WHEN_ERROR           = ' '
        INT_NUMBER_ASSIGNMENT       = ' '
        NO_STATUS_BUF_INIT          = ' '
       TABLES
        RETURN                      = GT_RETURN
        CONTRACT_ITEM_IN            = LT_BAPISDITM
        CONTRACT_ITEM_INX           = LT_BAPISDITMX.
    *BAPI to commit the sales order update in database
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT          = 'X'.
    Pls update me if any other BAPI will help me to my Requirement.Your help will be appriciated.
    With rgds,
    Hari...

    Replace the
    LT_BAPISDITMX-CUST_MAT35 = 'X'.
    by a
    LT_BAPISDITMX-PMNTTRMS = 'X'.
    Regards,
    Raymond

  • Bapi changing payment terms in purchase order

    hi to all abap gurus
    I want to change the Payment terms in Purchase order using bapi_po_change . can u pls give coding for this bapi with all required int tables declarations . points will berewarded for good ansers

    There is a documentation available for this BAPI and there is an example (although it is a bit confusing). You need to send the folowing parameters:
    Parameter: PURCHASEORDER = <PO number>
    Parameter: POHEADER                          
    PMNTTRMS             =                    <payment term value>
    Parameter: POHEADERX                         
    PMNTTRMS             =                    X  
    Declare your structures/tables using the same type as in BAPI - just copy/paste.

  • Payment Terms in Simulate BAPI

    Hello Experts
          I'm new to SDN and I don't know if this is the correct place for my question. But please try to help me out.
          We have a .Net application where we call BAPI_SALESORDER_SIMULATE and it does work great. It default the payment terms to configured values in case user does not send in payment term code which is great too. My only problem that the bapi does not return the payment term code used. I need to display the payment term code/description used, how could I acheive it? Your help will be very much appreciated!

    Hi,
    as a suggestion, once the sales order is created (and thus knowing the sales order number) why don´t you try to read it with another bapi like BAPI_SALESORDER_GET.
    in this way you could retrieve the payment term.
    Best regards.

  • BAPI - Change Payment Terms - FI Document

    Hi,
    I need a BAPI to change the payment terms and the payment method supplement of FI documents. I'm trying the Function Module FI_ITEMS_CHANGE, even though I can change the payment block and some other fields with this one, I'm not able to change the 2 above fields mentionned.
    Thanks for your collaboration!
    Martin

    Hi,
    I'm doing it with transaction FB02. But I would like to do it with a BAPI and I'm looking for it. Are you sure there is not?
    Anyway, this is my BDC code, you can get it doing a recording of the transaction you want in the SM35.
    data: lt_bdcdata   type table of bdcdata,
             lwa_bdcdata  type bdcdata,
             lv_pos(2)    type n,
             lv_buzei(15) type c,
             lv_line      type i.
      define bdc_dynpro.
        clear lwa_bdcdata.
        lwa_bdcdata-program  = &1.
        lwa_bdcdata-dynpro   = &2.
        lwa_bdcdata-dynbegin = 'X'.
        append lwa_bdcdata to lt_bdcdata.
      end-of-definition.
      define bdc_field.
        clear lwa_bdcdata.
        lwa_bdcdata-fnam = &1.
        lwa_bdcdata-fval = &2.
        append lwa_bdcdata to lt_bdcdata.
      end-of-definition.
      bdc_dynpro 'SAPMF05L' '0100'.
      bdc_field  'BDC_OKCODE' '/00'.
      bdc_field  'RF05L-BELNR' if_belnr.
      bdc_field  'RF05L-BUKRS' if_bukrs.
      bdc_field  'RF05L-GJAHR' if_gjahr.
      if if_buzei <= 31.
        lv_pos = if_buzei.
      else.
        lv_line = if_buzei.
        while lv_line > 31.
          bdc_dynpro 'SAPMF05L' '0700'.
          bdc_field  'BDC_OKCODE' '=P+'.
          lv_line = lv_line - 31.
        endwhile.
        lv_pos = lv_line.
      endif.
      concatenate 'RF05L-ANZDT(' lv_pos ')' into lv_buzei.
      bdc_dynpro 'SAPMF05L' '0700'.
      bdc_field  'BDC_OKCODE' '=PK'.
      bdc_field  'BDC_CURSOR' lv_buzei.
      bdc_dynpro 'SAPMF05L' '0301'.
      bdc_field  'BDC_OKCODE' '=ZK'.
      bdc_dynpro 'SAPMF05L' '1301'.
      bdc_field  'BDC_OKCODE' '=ENTR'.
      bdc_field  'BSEG-ZLSCH' if_zlsch.
      bdc_dynpro 'SAPMF05L' '0301'.
      bdc_field  'BDC_OKCODE' '=AE'.
      call transaction 'FB02'  using lt_bdcdata
                               mode  if_mode
                               messages into et_msg.
    Hope this helps you.
    If anyone knows a BAPI for this, please tell me.
    regards,
    Ainara

  • Need BAPI to update 'Payment terms' for service contract

    Hi ,
    I need to update 'Payment Terms' for a large set of Service contracts. Can you pls suggest me a BAPI to do this. Can I use CRM_ORDER_MAINTAIN function module for my requirement. If yes, what are the parameters need to be passed?
    Thank you,
    Regards,
    Rajesh.

    Replace the
    LT_BAPISDITMX-CUST_MAT35 = 'X'.
    by a
    LT_BAPISDITMX-PMNTTRMS = 'X'.
    Regards,
    Raymond

  • BAPI/FM to Change Payment Terms ZTERM of FI Invoice

    Hi,
    I am trying to chnage Payment Terms(BSEG-ZTERM) using FM FI_DOCUMENT_CHANGE and FM FI_ITEMS_MASS_CHANGE but none of these FM is working.
    For FI_DOCUMENT_CHANGE it is giving error "You cannot change Payment Terms(ZTERM) and inFM FI_ITEMS_MASS_CHANGE it is not providing option to change Payment Terms (I have checked Coding of the FM FI_ITEMS_MASS_CHANGE).
    Can anyone guide me on this? How can I change Payment Terms(ZTERM) of FI Document.?
    Thanks.

    Sapan,
    My requirement is to Develop an Interface, through which you can change payment terms of Customer open line items.
    Manually in FB02 I am able to change the Payment Terms but when I am not able to change it using FM FI_DOCUMENT_CHANGE and FM FI_ITEMS_MASS_CHANGE.

  • Payment terms not update thru BAPI?

    HI,
    I am creating PO through BAPI_PO_CREATE1. PO is created succesfully and Payments field is not updaed in the PO.
    I am passing the value to the field POHEADER-PMNTTRMS. Along with this is there any value we have to pass to get this payment term update in PO.
    Please help me to solve this issue.
    Thanks

    Consult ABAPER..It should get updated..

  • Getting split payment terms in case of customer credit memo(Doc type DG)

    Hi Guys,
    Is there any FM available for getting split payment terms in case of customer credit memo(Document type DG). There will be no invoice/billing doc for this document type and will be created from FB75 transaction. For billing document i am using FM SD_PRINT_TERMS_OF_PAYMENT_SPLI. Please let me know if there is any FM for accounting document also.
    Thanks,
    Vinod.

    Hi,
    Try this bapi
    BAPI_AR_ACC_GETSTATEMENT

  • Payment terms for open sales order

    Hi All,
    we are using a bapi in to create a open sales order:
    BAPI_SALESORDER_CREATEFROMDAT1.
    for this the payment terms are being checked against the t052 table .we have no errors in the test run .But when we upload the order it shows the payterm say 'z500' is not defined.
    please let provide the info.
    Thanks and regards
    Anitha T S

    Payment terms comes from the Customer Master ? have u cross checked that one ?
    regards
    Prabhu

  • Problem in Payment term field in invoice posting through MIRO

    We are using BAPI_INCOMINGINVOICE_CREATE FM to post the invoice in MIRO transaction.
    We are passing the following things in the BAPI FM
         CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
            EXPORTING
              headerdata       = l_wa_header
            IMPORTING
              invoicedocnumber = l_v_belnr
            TABLES
              itemdata         = l_i_itemdata
              accountingdata   = l_i_accountingdata
              taxdata          = l_i_taxdata
              return           = l_i_msg.
    Its successfully creating the invoices but when we check in MIR4 for the created invoice all the fields are populated properly except the 'Pmnt terms' field in the Payment Tab.
    Note we are getting the Number of days in payment tab
    and even the Basic data tab has values like 'Paymt terms : 30 Days net'
    What could be the possible problem?
    Please help me ASAP.
    Thanks in advance.
    Bhaskar R

    Hi,
    Currently, we are also facing the same problem.
    The payment term are not getting populated after posting the invoice.
    Could you please help to overcome the issue.
    Thank you.
    Warm Regards,
    Kalyani

  • Unable to Create PO for a Vendor with Particular payment terms

    Hi All,
    we have a scenarion in SRM 7.0 system where  the PO is ending up in error in SRM  for a vendor. In BBP_PD the error message says "Enter payt terms"  " enter GR Non Valuated".
    Now in my SRM system i can see the PO has got the payment terms and PO is for single account assignment.  i have generated the BAPI data for the BAPI_PO_CREATE1 and can confirm the erro is coming form backend and in the bapi the paymnet terms is correctly passed in the header record.
    I am not sure why this error from backend..   have anyone encountered similar issue.
    anything to check with paymet terms in backed. i have another payment terms working  and few of them are not working.
    cheers
    Iftekhar Alam.

    Note 1350184 - Payment terms from PO not transferred to backend
    BBP_PDHGP-PMNTTRMS
    Check payment term is available
    Have you creted this payterm from SRM or pulled from ECC ?
    Note 1350185 - Payment terms from PO not transferred to backend
    check each data in BBP_PAYTERM in the value and match with ecc payterm table. some times some conditions are misinterupted in SRM
    for ex.
    Muthu

  • Change Open Item Payment terms

    First I want to change the payment terms for a certain number of vendors. I do this either vendor by vendor or using the MASS transaction.
    BUT, I have a number of open Items for those vendors. Is there a way to change the Payment Terms for those existing open items?
    In FBL1N - Mass changes I dont see such a possibility.
    Can I do this using an ABAP program and is there any BAPI suitable for this purpose?  I see that the ZTERM field exists both in BSEG and BSIK tables
    Please any hint will be wellcome

    Thanks for your response,
    In FBL1N-MassChanges.
    I leave the BaseLine Date field unchanged.
    I change in the PaymentData block, the First field in Conditions (ZBD1T field) say from 30 Days to 60 Days.
    Will this change my open item DueDate from BaseLine30 to BaseLine60 ?
    Please Confirm if the above is correct.

  • Payment terms by plant.

    Hi sap gurus!
    I have diferents payment terms for each plant, when I do a purchase order, I want to get payment terms from the inforecord, but in info records payment terms don´t exist, ¿Is there an enhancement or a SAP note in order to be able to add the payment terms to inforecords?
    Thanks.

    Hello fhernandoz,
    I do not see this is the actual business case. Generally one vendor would have agrred to terms and condition with the purchase organization and then it remains same across all the plants under that organization so as per system it is not possible to have this.
    Please explain your business requirement.
    You can write user exit like maintain one table for the combination of vendor and plant (can add pur org also)... to populate payment term from that table everytime you create PO. In PO create BAPI you can add that user exit.
    Revert if any further query.
    Thanks And Regards,
    Krupesh Kothari.

Maybe you are looking for

  • MacBook won't turn on all the way

    So for the past few weeks my battery has gone from having over an hour of charge to barely a half hour of charge.  I still bring it with me to class.  Yesterday my computer finally lost its charge during the spinning wheel of death as it was trying t

  • How to identify combination of created and deleted Bank Details

    Hi Experts, I will develop a report similar to standard report RFKABL00. The requirement is to display the date, time, vendor number, vendor name, changed by, field name, company, purchasing org, new value and old value everytime a user make a change

  • Changing HOST Name in Oracle 10G AS

    Hi, I am using "Oracle 10g Application Server". I have installed oracle 10G AS in Windows 2003 Server(32-bit) ,2G RAM Machine is UTI ...Every Thing is Working Fine ..... After the Successful Installation of 10G AS Suddenly i got requirement to the Ch

  • Issue with Network configuration - ACS 4113 Appliance

    We are having issues with two particular devices. I am trying to remove and add the devices, but when I do a search and go to their IP, I receive. Failed to edit blahblah.ourdomain.... Reason: The Host no longer exists. How do I get rid of this so I

  • How to refresh changes on the host/node

    Hi, I checked the documentation and didn't find the information which would help me answer the following question: Say I have couple of databases on a four node RAC and I have disabled a four instance RAC database to two instance RAC database. But fo