SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to create Returns Lot (FP09)

Former Member
0 Kudos
1,659

Hi to all,

We want to create a Z program and use a BAPI to create return lots, is this possible? Have anyone done this?

The problem is that the bank is reporting us two cases for lot payment orders

1. success payment of order

2. unsuccessfully payments on orders

Both cases are mix in one big file.

We are planning clear the ones successful ones with the bapi BAPI_CTRACPAYMINC_CREATE... and all the ones required to create and post lots. (similar to fp45)

But we want to do something similar to FP09 for the unsuccessful ones with the Z program

By doing this all can be done with one step.

We can not find any BAPIs of FM which can be used to do this.

Thanks

Sergio

1 ACCEPTED SOLUTION

Former Member
0 Kudos
695

FKK_LOT_KEY_CREATE

FKK_PAYMENTLOT_KEY_CREATE

FKK_PAYMENT_BATCH_ADD_CLARIF

FKK_PAYMENT_BATCH_ANALYZE_ITEM

FKK_PAYMENT_BATCH_ARCH_IND_CRE

FKK_PAYMENT_BATCH_CLARIFY_ITEM

FKK_PAYMENT_BATCH_CLOSE

FKK_PAYMENT_BATCH_FIND_ARCH_PM

FKK_PAYMENT_BATCH_FIND_PAYMENT

FKK_PAYMENT_BATCH_GET_STATUS

FKK_PAYMENT_BATCH_LOCK_ITEM

FKK_PAYMENT_BATCH_NEW_FIKEY

FKK_PAYMENT_BATCH_POST

FKK_PAYMENT_BATCH_RELEASE

FKK_PAYMENT_BATCH_REVERSE_PYMT

FKK_PAYMENT_BATCH_SHOW_DETAIL

FKK_PAYMENT_BATCH_STATUS

FKK_PAYMENT_BATCH_STATUS_ADJST

FKK_PAYMENT_BATCH_UNLOCK_ITEM

FKK_SEARCH_PAYMENTS_IN_LOTS

These are few FMs ...

FKK_PAYMENT_BATCH_STATUS can be used to get the status of the LOT

Hope some of these will be helpful

View solution in original post

6 REPLIES 6

Former Member
0 Kudos
696

FKK_LOT_KEY_CREATE

FKK_PAYMENTLOT_KEY_CREATE

FKK_PAYMENT_BATCH_ADD_CLARIF

FKK_PAYMENT_BATCH_ANALYZE_ITEM

FKK_PAYMENT_BATCH_ARCH_IND_CRE

FKK_PAYMENT_BATCH_CLARIFY_ITEM

FKK_PAYMENT_BATCH_CLOSE

FKK_PAYMENT_BATCH_FIND_ARCH_PM

FKK_PAYMENT_BATCH_FIND_PAYMENT

FKK_PAYMENT_BATCH_GET_STATUS

FKK_PAYMENT_BATCH_LOCK_ITEM

FKK_PAYMENT_BATCH_NEW_FIKEY

FKK_PAYMENT_BATCH_POST

FKK_PAYMENT_BATCH_RELEASE

FKK_PAYMENT_BATCH_REVERSE_PYMT

FKK_PAYMENT_BATCH_SHOW_DETAIL

FKK_PAYMENT_BATCH_STATUS

FKK_PAYMENT_BATCH_STATUS_ADJST

FKK_PAYMENT_BATCH_UNLOCK_ITEM

FKK_SEARCH_PAYMENTS_IN_LOTS

These are few FMs ...

FKK_PAYMENT_BATCH_STATUS can be used to get the status of the LOT

Hope some of these will be helpful

0 Kudos
695

Hi Prajakta,

Thank you for replying, the problem is that the functions that you sent me are used to create lots, but payment lots (field KEYZ1)

The lots I'm trying to create use KEYR1.

I think the R stands for Returns.

Thanks

Serio

0 Kudos
695

FKK_RLS_STATUS to get the status of the Returns lot

FKK_RLS_CLOSE

FKK_RLS_CREATE_FROM_TEMPLATE

FKK_RLS_EXISTS

FKK_RLS_HDR_DELETE

FKK_RLS_HDR_READ

FKK_RLS_HDR_STARS_SET

FKK_RLS_HDR_UPDATE_STATS

FKK_RLS_HISTORY_SHOW

FKK_RLS_ITEMS_READ

FKK_RLS_ITEM_DETAILS

FKK_RLS_ITEM_PREPARE

FKK_RLS_LOCK

FKK_RLS_NEW_FIKEY

FKK_RLS_OPERATION_ALLOWED

FKK_RLS_PLAN_JOB

FKK_RLS_POST_LOT

FKK_RLS_SELECT

are few Function modules related to Returns lot

0 Kudos
695

Hi Prajakta,

I was able to resolve the problem by using the following FM

FKK_REFUSAL_BATCH_CREATE

FKK_REFUSAL_BATCH_APPEND

FKK_RLS_CLOSE

FKK_RLS_POST_LOT

Thanks for all the help

Sergio

Former Member
0 Kudos
695

Hi Sergio,

Please use function module FKK_REFUSAL_POST.

This function module requires parameters like the return reason, posting/document dates, document info that got returned, etc.

Hence put a break-point in this function module and perform FP09. Then you can identify what are all the parameters sent to this FM by FP09 transaction.

Regards,

Sakthi.

0 Kudos
695

Hi Sakthi,

I put a break on the begging of the function FKK_REFUSAL_POST and did the process with FP09 and it did not stop, in the function it seems the Tx FP09 does not use this function module.

I also revised the code for the program SAPLFKR2DLG and it does not refer to the FM.

I'm trying to run the FKK_REFUSAL_POST but I'm having problems using it.

Do you know the way to complete this FM to create a refusal?

Thank you

Regards

Sergio