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

Problem while creating IDOC

Former Member
0 Likes
491

Hi Friends..

I have created IDOC through program.

IF Shipment = 'X'.

perform shipment. -


>Shipment report

perform shipping. -


>Idoc creation form

PERFORM ftp2.

PERFORM move_ftp_entries.

perform shipment_display.

*

ELSEIF Receipt = 'X'.

perform Receipt. -


>Receipt Report

perform Receiving.----


>Idoc creation form

PERFORM ftp1.

PERFORM move_ftp_entries.

perform receipt_display.

ELSEIF Test = 'X'.

perform Test. -


> Test report

perform testdata.----


> Idoc creation form

PERFORM ftp.

PERFORM move_ftp_entries.

perform test_display.

ENDIF.

if I follow the above condition Idoc created for every report perfectly.But when I come to the following logic no idoc was created...

perform shipment. -


>Shipment report

perform shipping. -


>Idoc creation form

PERFORM ftp2. -


>FTP generation form

PERFORM move_ftp_entries.

perform shipment_display.----> Display form

perform Receipt. -


>Receipt Report

perform Receiving.----


>Idoc creation form

PERFORM ftp1.

PERFORM move_ftp_entries.

perform receipt_display.

perform Test. -


> Test report

perform testdata.----


> Idoc creation form

PERFORM ftp.

PERFORM move_ftp_entries.

perform test_display.

I want to generate IDOC for all my three reports.

Thanks

Gowrishankar

2 REPLIES 2
Read only

Former Member
0 Likes
454

Hi Gowri,

Tell me one thing. As per your logic you are displaying /generating one report and creating the responding idoc. Correct me if i am wrong. Can you please explain a bit more about your requirement.

Thanks,

Priyabrata

Read only

Former Member
0 Likes
454

IDOC generated, If I generate one idoc at a time, noproblem, in cse if I am going to create more then one IDOC need to clear the variables in IDOc, otherwise it generated wrong information.