1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Error with ar_receipt_api_pub.create_cash

Discussion in 'Oracle Financials' started by suryaK, Sep 14, 2016.

  1. suryaK

    suryaK Active Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    55
    Location:
    BANGALORE
    Hi All,
    I am creating cash receipt using the above API with the below script.


    l_attribute_rec.attribute5 :='BANK NAME';
    --
    l_attribute_rec.attribute6 := 'BRANCH NAME';
    ar_receipt_api_pub.create_cash
    (p_api_version => 1.0,
    p_init_msg_list => Fnd_Api.g_true,
    p_receipt_number => 'TEST-RCT',
    P_AMOUNT => 500,
    P_LOCATION => value,
    P_RECEIPT_DATE => value,
    P_CUSTOMER_ID => value,
    p_receipt_method_id => value,
    p_gl_date =>value,
    P_CURRENCY_CODE =>value,
    --p_ATTRIBUTE_REC_TYPE =>L_ATTRIBUTE_REC_TYPE,
    p_attribute_rec => L_attribute_rec,
    p_cr_id => l_cash_receipt_id,
    P_COMMENTS => 'creation of receipt',
    P_ORG_ID => value,
    x_return_status => L_return_status,
    x_msg_count => L_msg_count,
    x_msg_data => L_msg_data
    );

    The script is completing with the below errors.

    ----------------------------------------------------------------------
    Message.Please correct the cash account assignment.
    Message.The entered values for the descriptive flexfield AR_CASH_RECEIPTS is invalid.


    Please help me with the suggestions as i have to give it to the customer.

    Regards,
    Surya.