cancel
Showing results for 
Search instead for 
Did you mean: 

Create Earmarked Fund document with Function Module

muhammad_waseem
Participant
0 Kudos
1,539

Dear Experts,

In FMX1 I am able to create Fund Reservation document successfully which is reserving the budget commitment.

We have a business requirement to create Earmarked Funds Reservation through ABAP.

For this purpose, I need to test the relevant BAPI and provide to ABAP consultant.

I have come to know the relevant Function Module is FMFR_CREATE_FROM_DATA however I am facing difficulty in its testing. Upon execution following error appears:

"Document category 000 does not exist. Message no. RE130"

I am using standard Document Type 11 in FMX1.

My required fields are:

Header Level: Document Type, Document date, Posting date, Company code, Currency

Line Item Level: Amount, GL, Commitment Item, Cost Center, Funds Center, Fund

Please guide.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

iklovski
Active Contributor
0 Kudos

Hi Muhammad,

You have to fill BLTYP (document category) on the header with the type of earmarked fund. For reservation use 030.

Regards,

Eli

muhammad_waseem
Participant
0 Kudos

HI Eli,

Thanks very much for really helpful feedback.

Apparently the BLTYP is showing as BLT on Header Level screen of BAPI which I have filled with value 030.

Now upon execution, system shows error message as:

"Fill out all required entry fields" Message no. 00055"

Overall following data is filled:

Header Level:

BLTYP = 030

BLDAT = Present date

BUDAT = Present date

WAERS = Local Currency (SAR)

BUKR = Client's Company Code (1000)

Line Item Level:

BLP = Line item number (001)

FIPOS = Commitment Item value

FISTL = Funds Center value

GEBER = Fund Value

SAKNR = G/L number

KOSTL = Cost Center

WRBTR = Total Value (e.g. 1000)

PTEXT = Text

This is all the data I am entering in FMX1 and system is successfully posting the document so what could be the missing field in BAPI?

Thanks & Best Regards,

muhammad_waseem
Participant
0 Kudos

HI Eli,

I found that apart from Document Category (BLTYP), the Document Type (BLART) is also missing. So i filled it with 11 value and BAPI is now posted.

Regards,

iklovski
Active Contributor
0 Kudos

I actually understood that you added document type (BLART) 11, and what missing was only the category. Since the posting is succeeded, there is no problem 🙂

Answers (0)