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

Update Function Module

Former Member
0 Likes
519

hi all,

i had a requirement in which i had to send a custom idoc from one application server to another. i did it but now i task is the generated idoc from sender should be updaetd to database tables of receiver . for this we have to code some thing in receiver function modules . how to do it. in this issue i 'm having some doubts

1. the Fm at receiver side should be a updated FM or Remote-enabled FM

2. how to code this FM so that the data in idoc which is send from sender to reciver should be updated to databse tables of receiver.

please help me............ its very urgent..........

Thanks in advance,

Suresh Aluri.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
469

Hi,


1. 
Function module will be normal

2.
DATA: i_e1axxxx LIKE e1xxxx1.
LOOP AT int_edidd.
CASE int_edidd-segnam.
WHEN '...'.
WHEN 'E1xxx'.
MOVE int_edidd-sdata TO i_e1adrm1.
append i_e1adrm1.
ENDCASE.
ENDLOOP.

loop at i_e1adrm1
  <<< write your code to update tables
endloop

aRs

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
470

Hi,


1. 
Function module will be normal

2.
DATA: i_e1axxxx LIKE e1xxxx1.
LOOP AT int_edidd.
CASE int_edidd-segnam.
WHEN '...'.
WHEN 'E1xxx'.
MOVE int_edidd-sdata TO i_e1adrm1.
append i_e1adrm1.
ENDCASE.
ENDLOOP.

loop at i_e1adrm1
  <<< write your code to update tables
endloop

aRs

Read only

Former Member
0 Likes
469

answered