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

BDC for FB02 to upload REFERENCE KEY2 Field.

Former Member
0 Likes
1,350

Hi All,

I'm currently working on the BDC for the Tcode FB02 to upload the details for the field REFERENCE KEY2 field for the line item.

The Scenario goes like this, After entering the Header Details for the Document to Post, like DOCUMENT NUMBER, COMPANY CODE, & FISCAL YEAR and when Enter button is pressed, the 2nd screen displays the Line Item details with the Posting Keys and other combinations.

When the respective Line Item chosen to make modifications, the More Data button which is under the Additional Details screen for that line Item is clicked and there the Reference Key2 value is filled from the flat file. Here the biggest issue is, the screens for the Additional Details (Tax Screen) for different line items will be different respectively, so as for the More Data Popup.

How to bypass the Additional Details screen so I can directly go to More Data Popup and fill the data and then save the Tcode????

Useful answers will be rewarded...

Thanks in Advance,

-Syed.

Hi All,

I'm currently working on the BDC for the Tcode FB02 to upload the details for the field REFERENCE KEY2 field for the line item.

The Scenario goes like this, After entering the Header Details for the Document to Post, like DOCUMENT NUMBER, COMPANY CODE, & FISCAL YEAR and when Enter button is pressed, the 2nd screen displays the Line Item details with the Posting Keys and other combinations.

When the respective Line Item chosen to make modifications, the More Data button which is under the Additional Details screen for that line Item is clicked and there the Reference Key2 value is filled from the flat file. Here the biggest issue is, the screens for the Additional Details (Tax Screen) for different line items will be different respectively, so as for the More Data Popup.

How to bypass the Additional Details screen so I can directly go to More Data Popup and fill the data and then save the Tcode????

Useful answers will be rewarded...

Thanks in Advance,

-Syed.

6 REPLIES 6
Read only

Former Member
0 Likes
1,000

Hi ..

may be u try doing it using lsmw-direct input method and map fied reference key2 wid d source through that.

Reward points if useful.

Regards

Megha

Edited by: MEGHA SHARMA on May 22, 2008 1:21 PM

Read only

0 Likes
1,000

Hi Megha,

Thank you for the reply, but I already had a talk with our client on the same and advised the same, of using the LSMW method. But, he is not ready as according to his environment LSMW is not feasible.

I'm trying to find out any FM or BAPI which finds the next coming screen number depending on the data collected on double clicking the Item. I found some FMs FVD_FIELDS_UI_MODIFY_SCREEN & FM_FI_TAX_SCREEN_CALL. But not able to find exact FM which can navigate to the next screen by finding the screen number.

If you can explore more, will be of best use.

Thanks in advance.

-Syed.

Read only

0 Likes
1,000

Maybe you can use function FI_DOCUMENT_CHANGE for changing the reference key 2. At least that's the one being called by the inbound IDOC process for message type FIDCCH.

Let us know if it worked.

Greetings

Thomas

Edit: Just had a closer look, this one works only for specific fields on customer or vendor items. But still worth a try, I'd say.

Edited by: Thomas Zloch on May 22, 2008 2:00 PM

Read only

0 Likes
1,000

Hi Thomas,

It was a good search and Y'day I found the same and queried the client, he has stuck to only BDC, no BAPI or LSMW.

And also, if I use the same BAPI under the code, it is not going to get the screen number G/L Account details for the Line Item. And also the screen numbers for the More Data pop up are different.

My current program captures all the screens from the table T019, which has all the possible permutations and combinations depending on the Screen Class, Account Type, and Transaction Type of the line item, the screens are generated. But not to all, there are screens with different numbers, and which doesn't exist under the main program SAPMF05L.

But this is useful. Thanks for the same.

Can you pls explore, as how to track the screen number on double clicking the line item.

Thank in advance,

-Syed.

Read only

0 Likes
1,000

Perfect example why BDC for complex transactions is such a pain in the ...

With BAPI's, no need to worry about screen sequence. But your client wants BDC only, so he should be prepared to pay a lot for a solution that will be difficult to maintain.

I cannot give you a detailed solution, but you can try recording all the different scenarios (should be a limited number I hope) using the LSMW recording function, then use the generated screen sequences in your code.

Greetings

Thomas

Read only

0 Likes
1,000

Hi All,

Thank you very much for all the efforts to send me the answer. I've got it after long efforts. If anybody needs the Solution, can send their email id and will send you the same back.

Thank you Once Again...

-Syed.