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 - Uploading text file into subcreen

0 Likes
1,996

Hi All,

Edited Question with details -

I have a requirement where I have a to create a BDC program to pass data from text file into transaction O402 and in this transaction, will have to select UPLOAD button to upload another text file with few entries in it, which should update the fields of a subscreen. I can populate the main screen with first text file but I am not able to find solution on how to update the subscreen with the text file after the upload button is clicked. And all this has to be done through BDC call transaction. Please guide me. If there is any reference material or code will help me greatly.

Here is the recording for reference -

SAPLOIIC0 150X

BDC_OKCODE =PCUP

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

SAPLOIIC0 150X

BDC_OKCODE =ENTE

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

(Previously posted -I have a requirement, where i need to upload a text file in one of the subscreen after clicking on the UPLOAD button on the toolbar. This has to be accomplished using BDC. Please let me know how can i accomplish this.)

Thank you,

CB

Hi All,

Edited Question with details -

I have a requirement where I have a to create a BDC program to pass data from text file into transaction O402 and in this transaction, will have to select UPLOAD button to upload another text file with few entries in it, which should update the fields of a subscreen. I can populate the main screen with first text file but I am not able to find solution on how to update the subscreen with the text file after the upload button is clicked. And all this has to be done through BDC call transaction. Please guide me. If there is any reference material or code will help me greatly.

Here is the recording for reference -

SAPLOIIC0 150X

BDC_OKCODE =PCUP

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

SAPLOIIC0 150X

BDC_OKCODE =ENTE

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

(Previously posted -I have a requirement, where i need to upload a text file in one of the subscreen after clicking on the UPLOAD button on the toolbar. This has to be accomplished using BDC. Please let me know how can i accomplish this.)

Thank you,

CB

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,903

I'm pretty sure nobody can help you with so little information...

Read only

1,903

I have a requirement where I have a to create a BDC program to pass data from text file into transaction O402 and in this transaction, will have to select UPLOAD button to upload another text file with few entries in it, which should update the fields of a subscreen. I can populate the main screen with first text file but I am not able to find solution on how to update the subscreen with the text file after the upload button is clicked. And all this has to be done through BDC call transaction. Please guide me. If there is any reference material or code will help me greatly.

Here is the recording for reference -

SAPLOIIC0 150X

BDC_OKCODE =PCUP

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

SAPLOIIC0 150X

BDC_OKCODE =ENTE

BDC_SUBSCR SAPLOIIC 0151DETSUB1

BDC_CURSOR ROIISLVCKOR-CALNAME

Read only

Sandra_Rossi
Active Contributor
1,903

Thanks. Note that you can edit your question as long as nobody posts an "answer", as some people are reluctant at looking at the comments.

Read only

Sandra_Rossi
Active Contributor
1,903

I know that you can do it with SAP GUI Scripting because there's an option to use the SAP dialog instead of Windows dialog to select a file (menu SAP GUI settings and actions > Options > Scripting > Show native Windows dialogs), but not with Batch Input. Do you have SAP GUI Scripting enabled, can you use it? (menu SAP GUI settings and actions > Script Recording and Playback)

NB: SAP GUI Scripting must run in foreground.

Read only

maulik
Contributor
0 Likes
1,903

Upload a screenshot of the screen you are facing challenges with. It will be easier for us to understand your problem.