01-27-2021 11:23 PM
Hello,
I am using BDC to allow users to input invoice/credit memos into SAP through FV60. So far, I have the program working for submitting invoices; however, when it comes to credit memos, I get an error message saying "Specify payment period baseline date".
I've decided to try and record what I've done in FV60 using T-Code SHDB, and tried incorporating the recorded fields into my program; however, I receive the error message stated in the title of this question.
Please help, thanks.
Phillip
01-28-2021 5:33 AM
Executing the BDC in 'E' or 'A' mode to verify the screen no./field name/inputs at front-end;
Focus on this screen/tab:
you can try BAPI instead of BDC as well: BAPI_INCOMINGINVOICE_PARK Invoice Verification: Park Invoice
01-28-2021 8:04 PM
Hi Jigang,
Thank you for your answer. However, I don't think I clarified my question well enough, so I will try my best to do so in this response.
From using SHDB, I was able to obtain the program name, screen number, and screen field that you've presented in your screenshot. I've tried incorporating those variables in my program when using BDC:
PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.
PERFORM bdc_field USING 'BDC_OKCODE' '/ECCDE'.
... (this contains other header information)
PERFORM bdc_field USING 'INVFO-ZFBDT' inv_date2.
inv_date2 is the same date I've been using to input the invoice date 'INVFO-BLDAT', and so I believe inv_date2 could also be used with INVFO-ZFBDT. When I try inputting a credit memo using these lines of code, I receive the error "Field INVFO-ZFBDT. does not exist in the screen SAPMF05A 1100".
Is there a way to incorporate INVFO-ZFBDT using BDC? I prefer to use BDC because I've already have a working program using BDC for invoice reports.
01-29-2021 12:55 PM
have you tried testing the program created BDC session by SM35 using Error mode?
check your code and may refer to this.
01-29-2021 8:44 PM