Skip to Content
0
Former Member
Oct 27, 2005 at 07:27 PM

Server proxy code help!!!!

19 Views

Hi!

I'm a rookie in XI and I create a server proxy in a abap.

I need insert or modify the table zfintbcm017 in sap but I dont know if the code is correct because the system dont accept the insert and modify statement.

In the EXECUTE_ASYNCHRONOUS method I put this code.

method ZCM_II_INTERFACE_BAL_INFO~EXECUTE_ASYNCHRONOUS.

*TABLES

*

  • zfintbcm017. "GL Account Balance

DATA: in TYPE zcm_interface_balance_r3_dt .

DATA: BEGIN OF struc,

gldate TYPE zfintbcm017-gldate,

glccode TYPE zfintbcm017-glccode,

glaccount TYPE zfintbcm017-glaccount,

glprfcenter TYPE zfintbcm017-glprfcenter,

subbalance TYPE zfintbcm017-subbalance,

subindicator TYPE zfintbcm017-subindicator,

END OF struc.

DATA: wa LIKE struc.

*----


SELECT SINGLE gldate glccode glaccount glprfcenter

FROM zfintbcm017 into corresponding fields of struc

WHERE gldate = in-date

AND glccode = in-company_code

AND glaccount = in-gl_account

AND glprfcenter = in-profit_center.

IF sy-subrc <> 0.

struc-subbalance = in-subsidiary_balance.

struc-subindicator = in-subsidiary_indicator.

INSERT zfintbcm017.

ELSE.

struc-subbalance = in-subsidiary_balance.

struc-subindicator = in-subsidiary_indicator.

MODIFY zfintbcm017.

ENDIF.

COMMIT WORK.

endmethod.

Thanks!