‎2016 Mar 17 6:19 AM
Hi,
Is there any BAPI available for Posting Vendor down payment entry(F-48)?
FYI, I tried BAPI_ACC_DOCUMENT_POST. But i'm sure this won't work for down payment.
The search engine couldn't give the appropriate results, So i'm posting here. Please suggest me if you know any.
‎2016 Mar 17 9:07 AM
But i'm sure this won't work for down payment.
Should work after implementation of 2274732 - Incorrect document status when posting noted items with BAPI_ACC_DOCUMENT_POST .
Regards,
Raymond
‎2016 Mar 17 6:58 AM
‎2016 Mar 17 7:35 AM
Thank you for your kind reply.
I tried that too. But it is not considering the values I'm passing. It all remains as a deadcode.
‎2016 Mar 17 9:07 AM
But i'm sure this won't work for down payment.
Should work after implementation of 2274732 - Incorrect document status when posting noted items with BAPI_ACC_DOCUMENT_POST .
Regards,
Raymond
‎2016 Mar 17 11:03 AM
Thank you Raymond.
The description is well explained and satisfies my needs.
But while implementing it is throwing syntax error(e.g., GD_EXIT is not avail, But there is one variable called G_EXIT). But somehow it got implemented and now when executing the program it is going dump when it reaches the BAPI call. So, my functional consultant told me to revert the changes since it is impacting the custom code.
Thanks,
Priya
‎2016 Mar 18 10:09 AM
‎2016 Mar 19 4:23 PM
Thank you for your reply again.
No. It is not raising that kind of error messages. Moreover the problem is with the version in the system and the corresponding note. I should've mentioned in my previous message itself. Sorry for that.
I am really eager to know if it can be attained via BADI. i.e., "BADI_ACC_DOCUMENT".
‎2016 Mar 21 5:35 AM
Hi,
Do you want to use a BADI or a BAPI? You don't normally use BADIs for posting documents; they are typically used for making adjustments during the posting process.
cheers
Paul
‎2016 Mar 21 8:03 AM
Thank you for the reply.
ya I understand the difference. I raised a query in BADI because in return parameters in normal posting(BAPI_ACC_DOCUMENT_POST) it is capturing error like 'Withholding tax amount exceeds total bank line item amounts'(attached screen shot for your kind reference). So I thought If I maintain 'Special G/L Indicator(UMSKZ)' or 'Document Status(BSTAT)' the downpayment vendor document would get posted.
Thanks,
Priya
‎2016 Mar 21 8:15 AM
Hi Priya,
You can change the values in the BADI for Special GL indicator and BSTAT in the method CHANGE of the BADI ACC_DOCUMENT. Also check class CL_EXM_IM_ACC_DOCUMENT for Sample implementation of the method.
Hope this helps.
‎2016 Mar 21 10:24 AM
Thank you.
I tried that too with the below piece of code.
IF wa_extension-structure = 'BASE_AMOUNT'.
READ TABLE c_accit INTO wa_accit
WITH KEY posnr = wa_extension-valuepart1.
IF wa_accit-umskz = 'A'.
wa_accit-bstat = 'S'.
IF sy-subrc eq 0.
MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING bstat. " umskz.
ENDIF.
ENDIF.
ENDIF.
But in return it is capturing "Posting key 50 does not permit specification of a special G/L indicator".
‎2016 Mar 21 5:49 AM
Hi,
pls check if you can maintain the special GL indicator in any field at the line item level of BAPI. Also use posting key 29 (Special GL Debit).
best regds
Subha
‎2016 Mar 21 8:08 AM
Thank you for the reply.
Yes. I'm maintaining the special gl indicator. i.e., If the posting key is 29 then corresponding special gl indicator will be passed.
Thanks,
Priya
‎2016 Mar 21 12:24 PM
Hi Priya,
try to understand the accounting entries of vendor downpayment. It should be
Vendor a/c Dr.....50,000
To Bank A/c Cr.....50,000
Vendor Acount Debit (with Posting key as 29). Also you have to indicate the advance payment type.
Bank Account Credit ( with posting key as 50).
best regds
Subha
‎2016 Mar 21 3:41 PM
Thank you.
Ya. I have clear view in different set of posting keys and also the relevancy in down payment.
But Can you please suggest me how to write the logic with advance payment type ?
Thanks,
Priya
‎2016 Mar 21 4:47 PM
Hi,
can you pls specify what is your exact requirement ? All advance payments can be dealt with Special GL indicator configuration. Once you are clear on that you can check the BAPI you had mentioned in your first post. You will be able to see the field to be used . Pls refer the screen shot of BAPI_ACC_DOCUMENT_POST, I have marked the filed you need to create advance payment down payment transaction.
best regds
Subha
‎2016 Mar 22 6:12 AM
Thank you.
My requirement is to post the document in two scenarios..
1.) Invoice Scenario(Usual one) 2.Payment Scenario(i.e., Vendor DownPayment)
While I pass special GL Indicator, it is showing like "No accts maintained for company code clearing between comp.cds 'X1' and 'X2' ". I checked in FS00. It shows like the account has been maintained for corresponding company code.
Thanks,
Priya
‎2016 Mar 22 8:01 AM
‎2016 Mar 22 10:22 AM
Since it is capturing like "No accts maintained for company code clearing between comp.cds 'X1' and 'X2' " in BAPI I check FS00 to know that whether that GL Account exists for that company code or not.
Ya. I am aware of the tcode that it is a functional customization. I didn't raise any functional question. Subhadeep Das was suggesting me some good amount of information and while I'm passing those input I'm getting that error. Before posting in SCN i surf in search engine and ended up in this tcode FS00. So I posted along with that. And Before all I asked my functional too. He says everything is configured properly as per the requirement.
Thanks,
Priya
‎2016 Mar 22 10:39 AM
‎2016 Mar 22 10:41 AM
did you check the inter company code transaction configuration ? It is done through OBYA. The error message you highlighted suggests the issue is with intercompany code transaction and not your special gl transaction.
best regds
Subha
‎2016 Mar 23 5:07 AM
Thanks @ Raymond, Subha..
I asked my functional. He said Intercompany code settings are not required in this case.
I'm really confused and Now I'm thinking like I can use BDC for this down payment posting.
Thanks,
Priya
‎2016 Mar 24 12:01 PM
‎2019 Sep 16 5:23 PM
Hey, does anybody own a full example for posting a vendor down payment via BAPI_ACC_DOCUMENT_POST ?!
Normal posting is okay, also parking but I struggl with down paymant.
KR
Simon