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

Function module to pick file automatically

Former Member
0 Likes
1,305

Presently trying to upload emplyee photos using OAOH using BDC. The BDC program is able to upload the file but when it comes to running transaction OAOH the file could not be picked automatically.

what could be the reason. how to automate this.

Kindly help.

anya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,103

Hi Anya,

Please check what value is comming in the function module ARCHIV_CREATE_DIALOG_META importing parameter ' SAPPFAD - SAP ArchiveLink file paths ' which is called from report ' OANEWCON ' for transaction OAOH

Hope you get the right details.

Regards,

Gaurav

7 REPLIES 7
Read only

Former Member
0 Likes
1,104

Hi Anya,

Please check what value is comming in the function module ARCHIV_CREATE_DIALOG_META importing parameter ' SAPPFAD - SAP ArchiveLink file paths ' which is called from report ' OANEWCON ' for transaction OAOH

Hope you get the right details.

Regards,

Gaurav

Read only

mahaboob_pathan
Contributor
0 Likes
1,103

hi,

PARAMETER P_FILE LIKE IBIPPARMS-PATH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

PROGRAM_NAME = SYST-CPROG

DYNPRO_NUMBER = SYST-DYNNR

FIELD_NAME = 'P_FILE'

IMPORTING

FILE_NAME = P_FILE.

Read only

Former Member
0 Likes
1,103

Hi gaurav,

In transaction OAOH for the FM ARCHIV_CREATE_DIALOG_META the file path is importing parameter so how can i change this using BDC or my predefined file path.

Hope you undesttand this point.

anya

Read only

0 Likes
1,103

Hi Anaya,

One thing you can do put a single record for BDC transaction and can debug the same.

This is not a direct solution but hope you catch the point.

Regds,

Gaurav

Read only

Former Member
0 Likes
1,103

problem solved instead of BDC or OAOH developed a customized prgram which is picking file automatically and uploading to infotype 0002.

thanks to all

anya

Read only

Former Member
0 Likes
1,103

solved myself.

Read only

0 Likes
1,103

Hi anu

Can you share this please