cancel
Showing results for 
Search instead for 
Did you mean: 

File-bapi-proxy sunchronous scenario

Former Member
0 Kudos

Dear experts,

I am working ona scenario.

Sender will drop the required file on XI directory and XI will pull the file and map it with the BAPI u2013 and crate service entries in SAP r/3 via abap proxy. If errors are encountered during the process they are returned to the client in a report or as erroneous file via abap proxy.

I have created 2 MESSAGE types

a) MT_Get_Request

b) MT_Get_Response

Also have imported a standard BAPI i.e BAPI_EntrySheet_Create

question is : How to create teh synchrounous message interface

1) one message will be OUTBOUND SYNCHRONOUS

OUTPUT MESSAGE : MT_Get_Request

input message : MT_Get_Response

how will be the other inbound synchronous?????

Would it be

Outpit Message : BAPI_EntrySheet_Create

Input Message : BAPI_EntrySheet_Create.Response ?????????

or ?????

Experst, please explain me the design . Each answer will be appreciated

Thanks

Veeru

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

ok

former_member187339
Active Contributor
0 Kudos

Hi Viru,


Would it be

Outpit Message : BAPI_EntrySheet_Create
Input Message : BAPI_EntrySheet_Create.Response ?????????

or ?????

YEs you can use the BAPI interface as a synchronous interface, with BAPI_EntrySheet_Create and BAPI_EntrySheet_Create.Response as the request response message type...

alternatively, you can create an inbound synchronous interface and use the bapi as its input (BAPI_EntrySheet_Create) and output (BAPI_EntrySheet_Create.Response) message type.

Also since the sender is a file you may need to use the ResponseOnewayBean as mentioned in this wiki page:

http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29

http://wiki.sdn.sap.com/wiki/display/HOME/UsingRequestResponseBeanModuleinFILE+Adapter

Regards

Suraj

Former Member
0 Kudos

Thanks a lot for ur help, Suraj.

Tell me one thing.

I will do two message mappings. One will will between

MT_GetRequest to BAPI_entrysheet create and other will be

BAPI_entrysheetcreate.response to MT_GetResposne

What abt the Interface mapping. Which mapping will have to make use?

Thanks

Veeru

former_member200962
Active Contributor
0 Kudos
I will do two message mappings. One will will between

MT_GetRequest to BAPI_entrysheet create and other will be

BAPI_entrysheetcreate.response to MT_GetResposne

What abt the Interface mapping. Which mapping will have to make use?

When we create Synchronous Message/ Service Interfaces (Outboiund and Inbound) and include these in the Interface/ Operation mapping we get two mapping options.....Request and Response in the form of a Dropdown in Interface Mapping after we do Read Operations....so accordingly *MT_GetRequest to BAPI_entrysheet * will be used for Request and BAPI_entrysheetcreate.response to MT_GetResposne for Response.

If you are looking for an answer other than the one mentioned above then please let me know the same.

Regards,

Abhishek.

Former Member
0 Kudos

Viru ,

You can directly go for File->XI>Proxy(sync)--->File

no need of involving bapi...even if it is required you can call the bapi in the function module exec_synchronous .

inside this method write the logic/code.....do processing if any reuired before passing to bapi...commit the bapi...an dfinally pass the response of bapi to proxy whihc will be passed to MT_Get_Response .

you can use this response to write in a file .

May b eyou have to go for BPM steps will be :

receive>send(sync)->send

Regards ,