Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_PO_CREATE1

Hi Gurus,

I am working on Puechase order creation and for this I am using the BAPI_PO_CREATE1, in my case the iput file can come either from the server or from the PC, So basically I need to ask the user to tell from where the file is coming, and for this I need to use radio button and if user select that file will be coming from the system then the user also need to give the location and same applies in the case of file coming from the application server.

As of now I have written the following code:

selection-screen begin of block b1 with frame title text-001.

parameters: p_ifname like rlgrap-filename obligatory.

selection-screen end of block b1.

selection-screen begin of block b2 with frame title text-002.

parameters: p_ifnam2 like rlgrap-filename obligatory DEFAULT '/tmp'.

selection-screen end of block b2.

selection-screen begin of block b3 with frame title text-003.

parameters: p_upld radiobutton group upld default 'X',

p_upldex radiobutton group upld.

selection-screen end of block b3.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ifname.

CALL FUNCTION 'F4_FILENAME' "allows user to select path/file

EXPORTING

program_name = 'Z_PO'

dynpro_number = syst-dynnr

field_name = 'p_ifname'

IMPORTING

file_name = p_ifname.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ifnam2.

ld_file = p_ifnam2.

but this is not fullfilling my requirement.

Can you please tell me how to take care of this.

Thanks

Rajeev Gupta

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question