Application Development and Automation 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: 
Read only

KB61 BDC load

Former Member
0 Likes
2,156

I've created a program which utilises BDC to perform a data load using transaction KB61.

The question is - How do I perform a page down within the BDC ??

I've used transaction SM35 to record the KB61 transaction, and I get a BDC_OKCODE of /00 stored when I scroll down the item page.

But when I incorporate this value into my program, it doesn't perform the page down.

Any ideas ???

I've created a program which utilises BDC to perform a data load using transaction KB61.

The question is - How do I perform a page down within the BDC ??

I've used transaction SM35 to record the KB61 transaction, and I get a BDC_OKCODE of /00 stored when I scroll down the item page.

But when I incorporate this value into my program, it doesn't perform the page down.

Any ideas ???

10 REPLIES 10
Read only

Former Member
0 Likes
1,930

Hi,

Do not press the page down with in the table control, you need to press the page down in the above of the application tool bar, there you will find pageup, page down .. press page down,

page down ok code will be P+

regards

Sudheer

Read only

0 Likes
1,930

Sudheer, the application toolbar is greyed out, so page up & down are not available.

Read only

Former Member
0 Likes
1,930

Instead of coding a BDC why dont you go for the standard SAP BAPI "BAPI_ACC_PRIMARY_COSTS_POST "

Read only

0 Likes
1,930

I've only just come across this BAPI, so I might re-design the program. Unfortuanately I've inherited this program from a sub-contractor who did the initial work, and it was he who created the BDC data load routine.

Many thanks for your answer.

Read only

0 Likes
1,930

Dear Matt Daniel, could you share the code as it fills the bapi BAPI_ACC_PRIMARY_COSTS_POST.

Regrads

Read only

0 Likes
1,930

While recording when you enter the transaction press Button Select All.

Then Press F2 (Edit Row) and Now put your values and Press Next Item (Shift F11) And SAVE finally.

Read only

0 Likes
1,930

My friend Vinitt, I need to know or see an example of how the structures and tables fill the BAPI

Read only

0 Likes
1,930

Hi Aniruddha,

I am trying to post kb61 with the BAPI you have mentioned. But it is posting kb11 and not kb61. I am getting this warning in return table "Transfer prices are active. Use reposting for line items."

I am passing the following in header

CO_AREA                        COGB

DOCDATE                        27.08.2013

POSTGDATE                      27.08.2013

DOC_HDR_TX                     TEST

TRANS_CURR                     GBP

and in item table

SEND_CCTR                      10029970

COST_ELEM                      519992

VALUE_TCUR                                          200.0600

QUANTITY                                     0.000

REC_ORDER                      PP1000000008

Read only

suresh_namani
Participant
0 Likes
1,930

Hi All,

We are also facing same issue to post the KB61 data through BAPI 'BAPI_ACC_PRIMARY_COSTS_POST'. But it is posting KB11 instead of KB61 where reference invoice link should be there.

Any idea or suggestion please?

Read only

moshenaveh
Community Manager
Community Manager
0 Likes
1,930
Hello, While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.
I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.
If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.
Here are some tips to help you craft an effective question for our community: https://community.sap.com/resources/questions-and-answers, https://developers.sap.com/tutorials/community-qa.html, https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-a....
I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.
I hope you find this advice useful!