Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI Information needed

Former Member
0 Kudos

Hi,

Is there any BAPI for transaction KBK6, KL01 and KP26?

Pls. let me know.

Thanks,

Pratik

7 REPLIES 7

Former Member
0 Kudos

BAPI_ACTTYPE_CHANGEMULTIPLE

BAPI_ACTTYPE_CREATEMULTIPLE

0 Kudos

Hi,

Thanks for you mail.

I think these BAPIs are only related to trancation KL01.

Can you please let me know exact BAPI for transaction KBK6. In this trancation i have to create 2500 records based on some report, twice a month.

If BAPI is not available for transaction KBK6, then what is the alternate method other than BDC. And if BDC is only the available solution, is it advisable to do it.

Please let me know.

Thanks,

Pratik

0 Kudos

Hi,

Check this BAPI for KBK6 transaction.

<b>BAPI_ACC_MANUAL_ALLOC_POST</b>

Thanks

vijay

0 Kudos

Hi,

Thanks for your reply.

I came across this BAPI before and tired it but it did not work. Could you please give me an example. Also,i came across another BAPI <b>BAPI_ACC_ACTIVITY_ALLOC_POST</b>. What does this BAPI do. Is this useful to me? If yes, then let me know if you have any example using these BAPIs.

Thanks,

Pratik

0 Kudos

BAPI_ACC_ACTIVITY_ALLOC_POST

This method posts the entered activity allocation document.

The DOC_HEADER structure contains the document header data. The CO_AREA field must contain the controlling area in which you want to post. For an external number range, the DOC_NO field is intended for the document number. The filling of the DOCDATE (document date) and POSTGDATE (posting date) fields is optional. With empty fields, the current date is added. The OBJ_KEY field allows you to enter the number and organization of a reference document (10 characters). The OBJ_TYPE field is for the object type of the reference document for the sending system.

You should only fill the LOGSYSTEM field if this document belongs to a non-SAP system. You can enter a document header text in the DOC_HDR_TX field. If you know a suitable screen variant, you can store it in the VARIANT field. Filling the VERSION field is only advisable if you are posting on a business process, because if Activity-Based Costing is active as a parallel accounting system, you must enter a delta version. Otherwise you can post only in version 0, which you can also set as the default.

The USERNAME field is a required field.

The document item data is transferred to the DOC_ITEMS table.

check out this program <b>RBUS6010</b> how this is used

0 Kudos

Hi,

Thanks for your reply.

But i still have a question that is this BAPI useful for transaction KBK6.

Here is my exact requirement.

When an employee is hired, re-hired, or inter-company transferred, i am creating an Activity Type (T.Code KL01) with the same Activity type number as Personnel number( LSTAR = PERNR )

Time data for employee are being posted from external system to SAP. i am doing activity type planning in using transaction KP26 to established a relationship between cost center and activity type in controlling.

The final step is, a custom reports run at twice every month to get the hourly rates for some set of employee. the activity price will be pulled from the payroll clusters. Wage type 9230 will store the Y-T-D actual rate for each employee.

<b>Now my task is </b>, for each employee (exprox. 2500) i have to enter this calculated price in CO using transaction KBK6. I only have to enter this value for each employee in the field <b>"FxdActPrice Area"</b> on the second screen.

I do not want to do BDC since i have 2500 records and i do not know if it is advisable. SO i am looking for the BAPI for transaction KBK6.

So please let me know if i can use BAPI <b>BAPI_ACC_ACTIVITY_ALLOC_POST or BAPI_ACC_MANUAL_ALLOC_POST</b> for this prupose. If yes, then pls. give me an suitable example with some test data.

Thanks,

Pratik

Former Member
0 Kudos

Hi Pratik,

These are the BAPI's for the transactions mentioned.

1. BAPI_ACTTYPE_CHANGEMULTIPLE

2. BAPI_ACTTYPE_CREATEMULTIPLE

3. BAPI_ACTIVITYTYPE_GETDETAIL

4. BAPI_ACTIVITYTYPE_GETLIST

5. BAPI_ACTIVITYTYPE_GETPRICES

Thanks

Kannan