on 04-14-2011 1:07 PM
Hi all,
I am trying to push data from the backend into the middle ware using the function "SMMW_BE_CALL_DELTABO"
I have written a report in the backend which updates my table and then the DELTABO function is called to update this changes to the middleware. Here are my codings
TABLES: ZRECGEN_TBL.
DATA: WA_RECGEN TYPE ZRECGEN_TBL OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF ST_BEKEYS OCCURS 0,
R3KEY TYPE c LENGTH 255,
MSGFN TYPE c LENGTH 3,
END OF ST_BEKEYS.
PARAMETERS : client like ZRECGEN_TBL-MANDT,
SWCV LIKE ZRECGEN_TBL-BASIS_SWCV
NAME LIKE ZRECGEN_TBL-NAME ,
USER LIKE ZRECGEN_TBL-CREATED_BY,
ENABLED LIKE ZRECGEN_TBL-ENABLED,
CITY LIKE ZRECGEN_TBL-CITY.
WA_RECGEN-MANDT = CLIENT.
WA_RECGEN-BASIS_SWCV = SWCV.
WA_RECGEN-NAME = NAME.
WA_RECGEN-CREATED_BY = USER.
WA_RECGEN-ENABLED = ENABLED.
WA_RECGEN-CITY = CITY.
INSERT INTO ZRECGEN_TBL VALUES WA_RECGEN.
COMMIT WORK.
IF SY-SUBRC = 0.
WRITE:/ 'SUCCESSFULY UPDATED'.
ENDIF.
ST_BEKEYS-R3KEY = 'BASIS_SWCV'.
ST_BEKEYS-MSGFN ='009'.
APPEND ST_BEKEYS.
CALL FUNCTION 'SMMW_BE_CALL_DELTABO' DESTINATION 'MIACLNT100'
EXPORTING
BEBO_NAME = 'BE_TRGR'
TABLES
R3KEYS = ST_BEKEYS.
But there is no updation in the middleware when I execute this report.
Someone please give me a solution.
Thanks,
Krutheeka.
Edited by: krutheeka on Apr 14, 2011 2:07 PM
ST_BEKEYS should contain backend key value.
Is BASIS_SWCV the key value in Backend table?
ST_BEKEYS-R3KEY = 'BASIS_SWCV'.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I rewrote the code as u said
LOOP AT IT_BACKEND_TRGR.
ST_BEKEYS-R3KEY = IT_BACKEND_TRGR-BASIS_SWCV.
ST_BEKEYS-MSGFN = '009'.
APPEND ST_BEKEYS.
ENDLOOP.
But in the middleware I am only getting the key value records the other field's values and not coming in their columns are blank.
Please give me a solution.
Krutheeka.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.