Put two Z programs and SM35 logic under one transaction
Hi friends,
Now, I am using this scenario step by step:
1. step: Transaction ZUPLOAD for uploading file to application server. Code for this is:
data: begin of oldrec occurs 0, txt1(250), txt2(250), end of oldrec. start-of-selection. call function 'UPLOAD' tables data_tab = oldrec exceptions others = 1. if sy-subrc ne 0. write:**** else. open dataset outfile for output in text mode. if sy-subrc = 0. loop at oldrec. transfer oldrec to outfile. endloop. close dataset outfile. if sy-subrc = 0. write:**** else. write:**** endif. else. write:***** endif. endif.
2. step: TR SE38 run Z program for preparing file to serve as input for RFBIBL00. (I have source code)
3. step: go to TR SM35 and proces new created session.
Final result is posted FI document that I can view using FB03.
My question is: How can I make one program that will do these 3 steps? I want to have one transaction that will do all these 3 steps and as output that will give me posted document. if you need I may send you to private mail screen shots and all codes of what I do and my scenario and what I want to have now.
Thanks a lot.
Nihad
Edited by: nihad omerbegovic on Oct 17, 2008 4:15 PM
Edited by: nihad omerbegovic on Oct 17, 2008 4:25 PM