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

Regarding Idocs...

Former Member
0 Likes
515

Hi all,

I am sending the HR pay roll master data in to the application server using idocs.I am doing this part .But now i want to restrict idoc not to send into application server if there is no data in the generated idoc.I am scheduling the program in back ground.

For eg. If there is data in the idoc then only i would send it in to application server. other wise wont send there.

Points to be rewarded .

Thanks in advance...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
486

Phani,

Given that you are collecting the Idocs .How(Through any program)?.

At the time of collect pass the idoc numbers to EDIDD table and check the required data for thisidoc existed.If no don't pass those Idocs.

Don't forget to reward if useful....

4 REPLIES 4
Read only

Former Member
0 Likes
486

What kind of transaction you are using.

If you are using output type then you can use requirement routine.

Implement small logic check if there is any enrty. If no entry found

Pass sy-subrc eq 4. Then your output won't trigger.

If you are using ALE, then standard program will take care.

Thanks,

Narayan

Read only

Former Member
0 Likes
486

Hi,

Before sending to Application server check the internal table whether the data is there or not.If not there stop that.

Means before OPEN DATASET...........CLOSE DATASET

put IF condition for internal table.(IF NOT ITAB[] IS INITIAL.......ENDIF.)

Don't forget to reward if useful...

Read only

0 Likes
486

Hi,

Firstly, with out using OPEN DATASET statement i m sending the idocs to application server.I have standard program to create idocs for given or all pernrs.

Secondly, I collect all idocs created by that program and using WE14 I am placing the idocs into application server. I have taken care every thing in port and partner profiles for this.

Now how to avoid my problem....

Thanks..

Read only

Former Member
0 Likes
487

Phani,

Given that you are collecting the Idocs .How(Through any program)?.

At the time of collect pass the idoc numbers to EDIDD table and check the required data for thisidoc existed.If no don't pass those Idocs.

Don't forget to reward if useful....