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

Contract change BapI

Former Member
0 Likes
4,812

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?

5 REPLIES 5
Read only

Former Member
0 Likes
2,435

Search for BAPI_CONTRACT_CHANGE in this forum. You should get good info.

Read only

Former Member
0 Likes
2,435

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@

Read only

0 Likes
2,435

Hi Venkat,

Could you please tell me where can I search for BAPI_CONTRACT_CHANGE.

Read only

0 Likes
2,435

Hi,

You can see that in the transaction SE37 itself. Its a remote Function Module.

Regards,

Suganya

Read only

0 Likes
2,435

Hi,

I have checked in SE37 for BAPI_CONTRACT_CHANGE function module.But it is showing that it does not exist.