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

inbound process

Former Member
0 Likes
855

hi,

i sent the idoc and now what i have to do can anyone give me the inbound function module and steps

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hi Azhar,

I am providing the inbound programming.

FUNCTION zidoc_input_btmatmas.

*"----


""Local interface:

*" IMPORTING

*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD

*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC

*" VALUE(NO_APPLICATION_LOG) LIKE SY-DATAR OPTIONAL

*" VALUE(MASSSAVEINFOS) LIKE MASSSAVINF STRUCTURE MASSSAVINF

*" OPTIONAL

*" EXPORTING

*" VALUE(WORKFLOW_RESULT) LIKE BDWF_PARAM-RESULT

*" VALUE(APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR

*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK

*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS

*" TABLES

*" IDOC_CONTRL STRUCTURE EDIDC

*" IDOC_DATA STRUCTURE EDIDD

*" IDOC_STATUS STRUCTURE BDIDOCSTAT

*" RETURN_VARIABLES STRUCTURE BDWFRETVAR

*" SERIALIZATION_INFO STRUCTURE BDI_SER

*" EXCEPTIONS

*" WRONG_FUNCTION_CALLED

*"----


DATA:wa_mara TYPE z1marm,

wa_makt TYPE e1maktm.

DATA: st_mara TYPE mara,

st_makt TYPE makt.

LOOP AT idoc_contrl.

LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.

CASE idoc_data-segnam.

WHEN 'Z1MARM'.

wa_mara = idoc_data-sdata.

MOVE-CORRESPONDING wa_mara TO st_mara.

INSERT mara FROM st_mara.

IF sy-subrc = 0.

COMMIT WORK.

ENDIF.

WHEN 'E1MAKTM'.

wa_makt = idoc_data-sdata.

MOVE-CORRESPONDING wa_makt TO st_makt.

INSERT makt FROM st_makt.

IF sy-subrc = 0.

COMMIT WORK.

ENDIF.

ENDCASE.

ENDLOOP.

ENDLOOP.

IF sy-subrc = 0.

return_variables-wf_param = 'Processed IDOCs'.

return_variables-doc_number = idoc_contrl-docnum.

return_variables-wf_param = 'Appl_objects'.

  • return_variables-doc_number = fs_app_empdet-ssn.

APPEND return_variables.

idoc_status-docnum = idoc_contrl-docnum.

idoc_status-status = 53.

idoc_status-msgty = 'I'.

idoc_status-msgid = 'ZE'.

idoc_status-msgno = '006'.

APPEND idoc_status.

ENDIF.

ENDFUNCTION.

*Rewards some points.

Rgds,

P.Nag

7 REPLIES 7
Read only

h_senden2
Active Contributor
0 Likes
790

Which idoc and which functional process ?

regards,

Hans

Please reward all helpful answers !!!!!

Read only

Former Member
0 Likes
790

Hi

i want to know about inbound processing i finished the outbound process in idoc

i need the steps for inbound process

i have sent the master material idoc using the my own message type and i want to know the wat to do in inbound process?

Read only

Former Member
0 Likes
790

Hi Azhar,

Have you ran the Tcode BD10 to send the material. If yes, then Go to receiving system and run TCode BD11 to gt that material and check for the IDOC in WE02 transaction.

Regards,

Suresh

Read only

0 Likes
790

i used zprogram to send the material

in this case also i have to go bd11 or wat?

And also i have to create message type in receiving system ?

Read only

Former Member
0 Likes
790

Hi ,

You can refer the following link.

help.sap.com/saphelp_nw04/helpdata/en/dc/6b805a43d711d1893e0000e8323c4f/content.htm

Reward if useful.

Thanks,

USR

Read only

Former Member
0 Likes
791

Hi Azhar,

I am providing the inbound programming.

FUNCTION zidoc_input_btmatmas.

*"----


""Local interface:

*" IMPORTING

*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD

*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC

*" VALUE(NO_APPLICATION_LOG) LIKE SY-DATAR OPTIONAL

*" VALUE(MASSSAVEINFOS) LIKE MASSSAVINF STRUCTURE MASSSAVINF

*" OPTIONAL

*" EXPORTING

*" VALUE(WORKFLOW_RESULT) LIKE BDWF_PARAM-RESULT

*" VALUE(APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR

*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK

*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS

*" TABLES

*" IDOC_CONTRL STRUCTURE EDIDC

*" IDOC_DATA STRUCTURE EDIDD

*" IDOC_STATUS STRUCTURE BDIDOCSTAT

*" RETURN_VARIABLES STRUCTURE BDWFRETVAR

*" SERIALIZATION_INFO STRUCTURE BDI_SER

*" EXCEPTIONS

*" WRONG_FUNCTION_CALLED

*"----


DATA:wa_mara TYPE z1marm,

wa_makt TYPE e1maktm.

DATA: st_mara TYPE mara,

st_makt TYPE makt.

LOOP AT idoc_contrl.

LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.

CASE idoc_data-segnam.

WHEN 'Z1MARM'.

wa_mara = idoc_data-sdata.

MOVE-CORRESPONDING wa_mara TO st_mara.

INSERT mara FROM st_mara.

IF sy-subrc = 0.

COMMIT WORK.

ENDIF.

WHEN 'E1MAKTM'.

wa_makt = idoc_data-sdata.

MOVE-CORRESPONDING wa_makt TO st_makt.

INSERT makt FROM st_makt.

IF sy-subrc = 0.

COMMIT WORK.

ENDIF.

ENDCASE.

ENDLOOP.

ENDLOOP.

IF sy-subrc = 0.

return_variables-wf_param = 'Processed IDOCs'.

return_variables-doc_number = idoc_contrl-docnum.

return_variables-wf_param = 'Appl_objects'.

  • return_variables-doc_number = fs_app_empdet-ssn.

APPEND return_variables.

idoc_status-docnum = idoc_contrl-docnum.

idoc_status-status = 53.

idoc_status-msgty = 'I'.

idoc_status-msgid = 'ZE'.

idoc_status-msgno = '006'.

APPEND idoc_status.

ENDIF.

ENDFUNCTION.

*Rewards some points.

Rgds,

P.Nag

Read only

0 Likes
790

HI,

Thanks,

In sending system i have used two field matnr and maktx in segment type and send the idoc using my own zprogram

so the code u given is enough for that? to create a function module to post the idoc?