‎2008 Nov 06 4:14 AM
Hi,
I have a requirement to develope a new program.On execution of the program an option to upload a flat file from desktop must be provided.
The program must call Contract Change BAPI, pick the contract number and change the specified partner function to the new value mentioned in the flat file.
I am new to BAPI.Can anyone tell me which is the function module for contract change bapi?If possible can anyone send me some documents on BAPI?
‎2008 Nov 06 4:21 AM
Search for BAPI_CONTRACT_CHANGE in this forum. You should get good info.
‎2008 Nov 06 4:24 AM
Hi,
The below method will show you how to open the file.
PARAMETERS: P_FNAME LIKE RLGRAP-FILENAME OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = P_FNAME
.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = P_FNAME
i_begin_col = 1
i_begin_row = 1
i_end_col = 44
i_end_row = 60000
TABLES
intern = IT_FILE_UPLOAD
.
IF sy-subrc <> 0.
ENDIF.
If file is notepad then use GUI_UPLOAD function module.
Use the belo link for your BAPI and how to execute.
Cheers!!
VEnk@
‎2008 Nov 06 4:34 AM
Hi Venkat,
Could you please tell me where can I search for BAPI_CONTRACT_CHANGE.
‎2008 Nov 06 4:35 AM
Hi,
You can see that in the transaction SE37 itself. Its a remote Function Module.
Regards,
Suganya
‎2008 Nov 06 4:50 AM
Hi,
I have checked in SE37 for BAPI_CONTRACT_CHANGE function module.But it is showing that it does not exist.