cancel
Showing results for 
Search instead for 
Did you mean: 

SKF upload via BAPI_ACC_STAT_KEY_FIG_POST in only 1 document

Former Member
0 Kudos

Hi,

I successfully uploaded several SKF via BAPI. However this process created as many document numbers as all SKFs updated. Is there a way to have them only in 1 document no.?

thank you

Kind regards

Salvatore

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All

I have actually solved the issue via batchman.

thank you all

S

coleti
Active Contributor
0 Kudos

Hello Salvatore,

Yes it is, you can use the same BAPI BAPI_ACC_STAT_KEY_FIG_POST filling the DOC_ITEMS table with your SKF items. It´s created a document for each BAPI call, so maybe you have a loop calling this BAPI for each item, but in this case is just fill the DOC_ITEMS table with all SKF items and post using the same BAPI.

Just one document is created:

Former Member
0 Kudos

Hi Gabriel,

in which segment is that DOC_ITEMS? I cannot find it in the mapping and conversion rules list.

I use this BAPI in the LSMW.

Do I need to update something at BAPI level?

thank you

BR

Salvatore

iklovski
Active Contributor
0 Kudos

Ciao Salvatore,

Items are introduced in this structure:

Regards,

Eli

Former Member
0 Kudos

Hi Eli,

is this cross client?

thanks

Salvatore

iklovski
Active Contributor
0 Kudos

I'm not following you... What is cross-client?

Former Member
0 Kudos

Just wondering how to I add that component...never done before...thanks

iklovski
Active Contributor
0 Kudos

Still not following you You don't have to add anything. This component is a part of a BAPI you are using in your LSWM. Can't you see it in 'Maintain Structure Relations' step?

Former Member
0 Kudos

No, I do not have it.

coleti
Active Contributor
0 Kudos

Hello Eli,

If you are using LSMW for that BAPI, I believe that your source structure should have the following structure and then you can do the relationship between the source and structures

E1BPDOCHDRP and E1BPSKFITM.

Former Member
0 Kudos

This is the structure I have

coleti
Active Contributor
0 Kudos

You have the same structure in the header and in the item this is a 1:1 relationship.

You should have two separated source structure, check the second step in the Maintain Source Structures and split in two, one for the header and another one for the items and make a relationship 1:n (1 header to n items).

Best regards,

Gabriel Coleti

Former Member
0 Kudos

Despite the relationshio structure...shouldn't that DOC_ITEMS field be present in the below structure?

coleti
Active Contributor
0 Kudos

Yes, it´s the same structure as DOC_ITEMS in the BAPI structure BAPISKFITM:

Former Member
0 Kudos

Sorry, I am probably missing some pieces here...what actually determines the creating of 1 document only? I don't understand the logic...

coleti
Active Contributor
0 Kudos

You have to define 2 source structures, one for the header and another one for the items.

Like this:

Assign the structures to the following relation:

Define two files, one for the header and another one for the items:

Assign the header file to the header source structure and the items file to the line items source structure:

Note that one header and two items is being read:

I hope this helps you to get where you want.

Best regardsm

Gabriel Coleti

Former Member
0 Kudos

Yes now it makes sense but when I start the IDoc generation I get this error

Former Member
0 Kudos

Hi

I followed every single step.

created 2 source fields

assigned the structure

specified the 2 files

Assigned the file to the structure.

but when generating the IDoc document, I get this error...

Probably the files I created are not correct?

Former Member
0 Kudos

Hi Gabriel,

when trying to change the relationships within the structure, I get the following info.

Former Member
0 Kudos

Hello Gabriel ,

I'm using this BAPI , but i'm facing an issue with it .

E    BK    073    Enter only one cost accounting object for each item

i'm entering only one cost center for each item . could you please help me