Smartforms - Multiple original copies
Hi,
In smartforms I would like to print multiple original copies as well as multiple duplicate copies of BOL layout.
I know tdcopies parameter has multiple duplicate copies and 1 original copy.But I need multiple originals,how do I do?
Thanks,
Bala
Hi Saurabh,
Our requirement is we have additional data tabstrip customized screen in Sales Order screen.In this we have values in the fields like originals 5 duplicates 6.
Based on this above values our layout should print 5 originals and 6 duplicates print out.
I think sfsy-copycount0 prints only one original..How do I print multiple originals.
Regards,
Bala
Similar Messages
-
Smartforms Multiple Page Printing
Hi Guys,
I know this could be regular posting from others but it seems that i can't any solutions around.
The Problem is about printing multiple copies from Billing Document at a time. What user requested was to have the word "Original" in the first copy and the subsequent copies will have the word "COPY". i know that this can be done in SAPScript by modifying the print program but how about Smartforms???
I tried NAST (IS_NAST) table as passed by smartform but the field ANZAL seemed to return '2' when i need 2 copies. How do i know when is printing the first copy and when is printing the subsequent copies? any status from any tables indicating i am printing the first or the subsequent copies? Tried NACH but it didn't help much neither....
Please help!!!!!! Thanks a lot....
Cheers,
AndrewOk,
so transaction SMARTFORMS
set the name, press CHANGE
Select Form Interface (in the tree)
You are in the Import parameter, you have to create one import parameter. Choose a name for example WV_TYPE, with assignment TYPE and reference CHAR1.
After this just generate the function module.
And now, when you will show the new function module you have the WV_TYPE parameter that is present.
So, in the Text_Element or anything else you just have to set in the Conditions the test WV_TYPE = 'X' to display this Text_Element
I hope it's clear (sorry for my english)
Frederic -
Multiple file copies just randomly miss a few of the files
This is something that has happened to me on all networks I've used. My home network (gigabit LAN or 802.11n), work network, and any client network I've ever been on while supporting.
I can select say 10 files on my MBP in finder. And either copy/paste or just drag to copy onto an SMB share (windows 2003 at home for my windows home server, also 2008 and 2008 R2 servers at work and clients). And the file copy goes fine. I see the progress window, it goes and I see the files populating the network share as it progresses. It runs the normal amount of time I'd expect for the speed of the network, and when it's done I get my sound. Then anywhere from three to nine of the files just disappear off the network share as the copy finishes. So it takes the time to copy them but does not complete.
And it's not an every time thing. And it ONLY happens with multiple files, i NEVER have a problem doing files singularly. The same files that fail in a batch go fine when I copy them one by one in the same session after it failed doing them all at once.
No errors on the windows side of things in the logs, disks are fine. Never happens with my MBP when I do it from windows either via VMware or booting directly into boot camp.
No errors on the mac side, for all intents and purposes it completed successfully. Yet almost every time I do group copies, only a couple actually are on that network share when all is said and done.
No AV or firewall on the server at the moment so it happens whether I have them enabled or uninstalled. No AV on the MBP.
And no disconnects, etc. I'm watching things in an RDP session while the copy is happening and I never lose the network, it never drops. Downloads that I sometimes have going on are working just fine, everything is just perfect in every respect as far as networking goes, except for those copying of multiple files.
Saw someone else had disabled write caching on the windows machine to overcome an actual error they had, and i had tried that in this instance long ago to no avail.
This has happened since I first bought the laptop in July of '09 and it was running leopard, and has continued through every single version update since. Wired or wireless...
Thanks for any suggestions.hey JDThree, i'm having the SAME EXACT PROBLEM!!! i've tried restarting both my server and my MBP, and it does the job a bit, but it's so random. even doing a single file copy doesn't seem to work. i tried copying over one file, then when it finished and was on the server, i copied the next file, and it removed the first file. so strange. anybody have any ideas?
-
Calling smartform multiple times from driver program
Hi Experts,
In a internal table i have multiple records, and my requirement is i need to call the smartform by looping the internal table and i'm geting output N times based on the N record in the internal table
But my output i need to club all these output into single output i.e Instead of getting a print preview screen N times... i need to get the output during the last record of the internal table displaying all the pages.
I tried searching the SDN, but the answers were not convincing for my requirement.
Please advise. Thanks
Regrds
Balaji RHi Sravanthi
Thanks for your quick reply.
I found your code interesting....
but in my requirement spool will not be created..
In my requirement
I receiving the print preview for each record of the internal table, say 5 page for 5 records in the internal table.
Now i need to change that only at the end of the itab..... i need to get the print preview with all the 5 pages...
Please advise..
Thanks -
Call Library node and multiple array copies
Hey everyone,
I am trying to do the following using a hybrid of C and Labview:
1.) Create an array in Labview
2.) Pass the array into 2 seperate DLLs at the same time
3a.) One DLL modifies the data and then updates a flag. For example, the array created in 1 in 100,000 units long, this DLL modifies 999 units in one pass and updates the 1000th unit to say that the 999 units have been succesfully written. It would do this 100 times in this example.
3b.) The 2nd DLL checks the flag unit set in 3a, and if the flag is a certain value, the 2nd DLL reads the 999 units modified in 3a and performs operations on them.
Note: There is no read/write conflict here, since the only way 3b operates on the memory is if 3a has completed its operations and updated the flag.
The problem:
Labview creates 3 copies of the same array in memory. Once in step 1, and 1 for each DLL. This is problematic since the 2 DLLs can't communicate with each other anymore in the way that is described above, since the method above requires that the DLLs in 3a and 3b operate on the same memory locations.
The question:
How can I prevent Labview from creating multiple copies at the Call Library node so that my DLLs can operate on the same chuck of memory that is created in step 1.
Thanks,
Austin McElroyAustinMcElroy wrote:
Ok, so as nk said, even if the idea is terrible why is Labview making extra copies? If I have 2 DLLs in serial to avoid the flag idea, and I am working with datarates of 100MB/s coming off of my acq. card, that is 100MB allocated for the initial array, 100MB allocated for the first DLL and 100MB allocated for the 2nd DLL, per second. Perhaps even more allocations and copying from C back into Labview (I am unsure of this, I will test it tomorrow). This is alot of memory being allocated and copied extraneously. Is there a way to prevent Labview from doing this?
And LabVIEW doesn't make copies if it doesn't need too. For this to work however you need to pass the array through the CLN (input it on the left side and output it at the right side of the CLN and from there wire it to the next function), not branch it. That should even work if you configure the array parameter to be a C array data pointer (since LabVIEW will pass the pointer to the actual data to the DLL), but it definitly works without copies for LabVIEW array handles.
Then LabVIEW won't make a copy (except maybe in some older versions).
If you branch the wire however, LabVIEW has no choice but to create at
least one copy to satisfy data flow contraints.
This doesn't mean that the first DLL function could store the array pointer and operate on it after it has returned since a C function once returning control to the caller has absolutely no control over a pointer it got passed anymore. At the time your DLL might decide to access that pointer LabVIEW quite likely might have left the diagram already and consequently deallocated or reused the handle for something else, causing your DLL to corrupt memory. Even if you decide to use events to signal the second function to not return before the data has been modified by the first, you create a monster of complexity that will sooner or later blow in your face. Either the user might decide to abort the programm mid term and your second function never receives the signal so never returning, making your application simply hang in there with no other option than to kill it through the task manager, or someone will go modify your little program not knowing the (unlogical) dependency of those two calls and creating something that simply works very wrong or if you are very lucky will crash with an access violation exception early on.
Rolf Kalbermatter
Message Edited by rolfk on 03-24-2008 01:39 PM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Hello.
I'm producing a simple smartform from MIGO (good receipt).
In the initialization of the smartform I'm setting the fields output_options-tdcopies to 2 in some cases.
I can see in debug mode that this value is being perfomed correctly.
Although - when the print windows appears, it shows the default value for number of copies "1".
How come ?
Thanks.Hi,
Do you use Frontend printing?
If so, ensure that the option "use_copies" is set to '0' in the resgistry of the Frontend PC as described in SAP Note #1149136.
Regards,
Aidan -
Printing multiple page copies per sheet
I am trying to print 4 pages per sheet in Adobe Acrobat Pro 9. I understand how to choose "multiple pages per sheet" in the print dialogue box, but instead of printing pages "1,2,3,4" on sheet #1, I'd like to print 4 copies of page 1 on sheet #1 (i.e. 1,1,1,1), 4 copies of page 2 on sheet #2, etc. I've found this possible by typing pages "1,1,1,1,2,2,2,2..." in the print range box. However, I have a 233 page document and the dialogue box cannot handle that many characters. Is there another way I can do it? Thanks!
You can try Quite Imposing Plus 2.9.
Just use your Step and Repeat feature. It doesn't matter how many pages you have.
Just go to our site ww.quite.com and download the Demo (Mac or Windows).
Here is a temporary number to test it with.
Quite Imposing Plus V1/V2
Expires end 5/2009 Serial 8773-0292-1788-1358 Code 6178
Also, once loaded: Check out Getting Started tech sheet. Go to our Imposition Control Panel and click on the
? button.....then click the Getting Started button. Lots of good information on Step and Repeat, signature setups, Step-by-step
Instructions and New features.
You can also look at www.quite.com/imposing/techsheet .
To see how to put on colorbars, setup cutstacks, etc.
cheers,Charles
Charles James
Technical/Marketing Director
Quite Software
1527 Law Street
San Diego, CA 92109
USA
858.581.9143
[email protected]
www.quite.com -
SMARTFORMS:Multiple Labels in one page
Hi All,
We want to print multiple Labels (say 8 per page) in one page, we want to do this in SMARTFORMS. How can we do this.
The approach I am thinking of is...
We can have a Main Window and 8 secondary windows. We can loop through the internal table and depending on a temp variable (Which will increment by 1 with each loop pass) - which can have a maximum value of 8 - we can write contents in each of 8 windows. I want to know how to setup a loop node and a secondary window below loop node. Is this the best way to do? Any ideas would be greatly appreciated.
Thanks very much!
Pal
Edited by: sudhakar arumugham on Aug 29, 2009 1:52 AMHi Amar,
Great, thanks very much for the info.
I have come out with another idea. I have used a Main Window and 8 secondary windows. 8 secondary windows correspond to eight labels I want to print in a page. I pass 8 records as inputs into my smartform every time I call. Here is pseudo code.
Call function 'SSF_OPEN'
loop at my_itab.
add 1 to record_count.
if record_count = 8.
clear record_count.
call function fm_name " Call My smartform
EXPORTING
control_parameters = l_control " set l-control-no_open, no_close = 'X'
endif.
endloop.
call function 'SSF_CLOSE'.
Thanks,
Sid
Edited by: Sid on Aug 31, 2009 11:34 PM -
Hi,
I have created 3 copies in smartform. While converting to pdf using pdf! only first copy is showing. What to do?DATA : ANS(6) TYPE C.
DATA : WS_UCOMM LIKE SY-UCOMM,
FORM_NAME TYPE RS38L_FNAM,
WA_CTRLOP TYPE SSFCTRLOP,
WA_OUTOPT TYPE SSFCOMPOP,
IT_OTF TYPE STANDARD TABLE OF ITCOO.
DATA : T_OTFDATA TYPE SSFCRESCL,
T_PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA : T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE.
DATA : W_FILESIZE TYPE I.
DATA : W_BIN_FILESIZE TYPE I.
DATA: t_data_tab TYPE TABLE OF x255,
buffer_x TYPE xstring,
buffer_zip TYPE xstring.
DATA: zip_tool TYPE REF TO cl_abap_zip.
*.................GET SMARTFORM FUNCTION MODULE NAME.................*
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZTEST_SF_EX1'
IMPORTING
FM_NAME = FORM_NAME
CLEAR wa_outopt.
*WA_CTRLOP-PREVIEW = 'X'.
*WA_CTRLOP-NO_DIALOG = 'X'.
*WA_OUTOPT-TDNOPREV = 'X'.
WA_OUTOPT-TDCOPIES = 3.
*...........................CALL SMARTFORM............................*
CALL FUNCTION FORM_NAME
EXPORTING
CONTROL_PARAMETERS = WA_CTRLOP
OUTPUT_OPTIONS = WA_OUTOPT
USER_SETTINGS = 'X'
PO_NO = '4500006370'
IMPORTING
JOB_OUTPUT_INFO = T_OTFDATA
*...........................POP UP CONFIRMATION WINDOW............................*
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'Y'
TEXTLINE1 = 'DO YOU TO DOWNLOAD PREVIEW TO PDF FILE ?'
TEXTLINE2 = 'PRESS YES TO DOWNLOAD AND NO OR CANCEL TO EXIT !'
TITEL = 'DOWNLOAD TO PDF FILE ON PRESENTATION SERVER'
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = ANS.
CASE ANS.
WHEN 'J'.
PERFORM DWTOPDF.
WHEN 'N'.
BACK.
* WHEN OTHERS.
* LEAVE PROGRAM.
ENDCASE.
FORM DWTOPDF .
WA_CTRLOP-GETOTF = 'X'.
*WA_CTRLOP-PREVIEW = ' '.
WA_CTRLOP-NO_DIALOG = 'X'.
*...........................CALL SMARTFORM............................*
CALL FUNCTION FORM_NAME
EXPORTING
CONTROL_PARAMETERS = WA_CTRLOP
OUTPUT_OPTIONS = WA_OUTOPT
USER_SETTINGS = 'X'
PO_NO = '4500006370'
IMPORTING
JOB_OUTPUT_INFO = T_OTFDATA
*T_OTF[] = T_OTFDATA-OTFDATA[].
DO WA_OUTOPT-TDCOPIES TIMES.
APPEND LINES OF T_OTFDATA-OTFDATA TO IT_OTF.
ENDDO.
*.........................CONVERT TO OTF TO PDF.......................*
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = W_BIN_FILESIZE
TABLES
OTF = IT_OTF "T_OTF
LINES = T_PDF_TAB
"Declarations
DATA:input_length TYPE i.
DATA:content_x TYPE xstring.
DATA:content_s TYPE string.
LOOP AT T_PDF_TAB.
CONCATENATE content_s T_PDF_TAB-tdline INTO content_s.
ENDLOOP.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = content_s
MIMETYPE = space
IMPORTING
buffer = content_x
"Declarations
DATA:zip TYPE REF TO cl_abap_zip.
DATA:zip_file TYPE xstring.
DATA:binary_tab TYPE STANDARD TABLE OF x255.
DATA:name TYPE string VALUE 'Invoice.PDF'.
CREATE OBJECT zip.
zip->add( name = name
content = content_x ).
zip_file = zip->save( ).
CLEAR T_PDF_TAB[].
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = zip_file
TABLES
binary_tab = binary_tab.
cl_gui_frontend_services=>gui_download(
EXPORTING
filename = 'D:\PDFZIP.ZIP'
filetype = 'BIN'
CHANGING
data_tab = binary_tab ).
Thanks,
PoornaChand M -
I am trying to convert a sapscript form which allows two columns similar to newspaper columns. When the first column fills up, the second column is used until it is full and a page break occurs. Any ideas on how to do this in SmartForms would be appreciated.
Hi Buster,
I know it can be achieved in Sapscripts via defining multipe main windows on sape page and when first use to call second main window and so on. I have used this kind of Sapscript in Sticker printing for our inventory department.
In Smartforms you cannot have multiple Main windows per page, so above solution is not feasible.
But here is what i suggest.
Create a main Window for the first column of the page and crate a Secondary Window for second column and set its condition to "Only after end of Main window". So when data is full in Main window it will call secondary window and start printing it from top of secondary window.
Hope it helps.
Jeet -
Before I buy Lightroom, I want to know if it will help me fix an issue I have.
I've copied my Nikon D70 and D200 RAW files to multiple locations (C:\folder, C:\other folder, C;\other folder\subfolder, E:\yet another location, E:\this is dumb Fred) on one server while trying to consolidate hard drives and not over write files!
This has created multiple duplicates and I don't want to loose any file that may have the same name at the OS level.
I understand that Lightroom uses a data base to keep information about files and you can use this "off line"
Can I map the server drives to my laptop, import the mapped drives into Lightroom and then go thru them disconnected?
If I delete a file in Lightroom, does the actual deletion from the drive happen when the drives are "on line" again? Can I see "thumbnails" for the pictures during the "Off line"
Thanks for your help, I couldn't find the answer in the FAQWhy not use the command to import into a new place, and keep "Don't import duplicate" in force? Then when you have brought everything in, you can delete all your copies, and then make a fresh back up.
You can see the thumbs and 1:1 previews when the images are offline. As to deleting files you marked when offline, when you are online again, I am not sure but I think you have to select the photo and then hit Delete. Probably easier to mark with an x when offline. -
Smartforms Multiple Prints Problem
Hello,
We have developed a smartform, and this smartform gets called in a loop from the driver program.
We have user control parameters-no_open and no_close so that print dialog should appear only once and there should be only 1 spool generated.
The problem is when we click on Print Preview we are able to see multiple pages as per the documents selected.
But when we click on Print the spool which gets generated has only 1 page.
Please suggest if there is any setting or something related to this.I am confused. You have one spool request. How many pages does it have, according to SP01?
And you can do a print preview there and see 10 pages in SP01, as I understand ?
So your problem is that when you print this request, only one page is printed out?
Pls explain in more clarity. Possibly a raw display of the job data in SP01 might help...
Alex -
Fax is like the Sorcerer's Apprentice sending multiple unwanted copies
Help. I tried to FAX a single copy of two different documents to a friend this morning, and each time it kept sending multiple copies of the document and would not stop until I manually told the modem to hang up. I only knew this was happening because I called them as I was sending it to make sure they wer receiving it since they urgently requested me to send it to them. If anyone has any suggestions about how to prevent this from happening in the future, I would really appreciate your input. I really don't want to be wasting people's paper by sending a bunch of redundant FAXes.
Another problem with the first document that I was trying to send, which was a web page, was that, the it should have contained more than one page, but it just kept sending the first page of the document, the first section of the web page. Do I need to save something like that as a pdf first for it to send all the pages?
Thanks,
erpilgrimAfter an hour or more on the phone today the Epson guy could only come to the conclusion that it's a hardware issue, leaving me with the decision whether to pay for a service visit or cut losses and go for a new, cheaper printer.
-
Smartforms :Multiple forms 2 be printed in single print prog,PDF too
Hello Smartforms Gurus
I need to print 4 forms (Export Invoice, packing List, Enclosure to Packing list, Case marking) within a single print prog .
User will execute this prog and it should print all the 4 forms and then by clicking on a button(Archive) there
it should download a single pdf file containing all 4 forms .
At present my following program directly download this form(only Export Invoice) to a pdf file but doesnt leave options to go to Print or Print Preview .
Plz look into my code , and suggest.
Thnx
Moni
*Printing of Export Invoice, Packing List,Enclosure to Packing List & *
*Case Marking in one SMART FORMS Layout *
REPORT ZSD_REP_MULTI_PRINT.
TABLES :
vbak,
vbap,
vbpa,
vbfa,
VBRK,
VBRP,
LIKP,
LIPS,
KONV,
objk,
tvko,
ser01,
sadr,
equi,
makt,
mast,
t005t,
kna1,
t001w,
T001,
ADRC,
sscrfields,
zpp_plcmi, "Packing list history For Conf: Item data
zplh, "PACKING LIST HISTORY : HEADER DATA
zpli. "PACKING LIST HISTORY : ITEM DATA
DATA: FM_NAME TYPE RS38L_FNAM,
P_E_DEVTYPE TYPE RSPOPTYPE,
P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
P_DOC LIKE DOCS OCCURS 2000 WITH HEADER LINE,
P_LINES LIKE TLINE OCCURS 200,
P_BIN_FILESIZE TYPE I,
P_LANGUAGE TYPE SFLANGU,
P_BIN_FILE TYPE XSTRING,
<i>OK_CODE LIKE SY-UCOMM.</i>
DATA: T_ITEM TYPE ZSD_TABL_LITEM,
WA_ITEM TYPE ZSD_STRUCT_LITEM,
T_ADRS LIKE ZSD_STRUCT_ADRS OCCURS 0 WITH HEADER LINE,
MSLINES LIKE TLINE OCCURS 1 WITH HEADER LINE,
TIDNO LIKE STXL-TDID,
TNAME LIKE STXL-TDNAME,
TOBJT LIKE STXL-TDOBJECT,
SSORD LIKE VBAK-VBELN,
TOT LIKE VBAK-NETWR,
WORD LIKE SPELL.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: P_DELNO LIKE LIKP-VBELN OBLIGATORY,
P_INVNO LIKE VBRK-VBELN OBLIGATORY,
P_DATE LIKE SY-DATUM.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN.
CLEAR T_ADRS.
REFRESH T_ITEM.
T_ADRS-INVNO = P_INVNO.
T_ADRS-INVDAT = P_DATE.
SELECT SINGLE VBELV INTO VBFA-VBELV
FROM VBFA
WHERE VBELN = P_DELNO
AND VBTYP_N = 'J' .
SSORD = VBFA-VBELV.
*Exporter's Address
SELECT SINGLE BUKRS_VF INTO VBAK-BUKRS_VF
FROM VBAK
WHERE VBELN = VBFA-VBELV.
SELECT SINGLE ADRNR
INTO T001-ADRNR
FROM T001
WHERE BUKRS = VBAK-BUKRS_VF.
SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
T_ADRS-POST_CODE1, ADRC-COUNTRY)
FROM ADRC
WHERE ADDRNUMBER EQ T001-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-COUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
**BUYERS NO & DATE
SELECT SINGLE BSTNK BSTDK INTO (T_ADRS-BSTNK,T_ADRS-BSTDK)
FROM VBAK
WHERE VBELN = VBFA-VBELV.
*Consignee Address & Buyer Other Than Consignee
SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
FROM LIKP WHERE VBELN = P_DELNO.
IF LIKP-KUNNR = LIKP-KUNAG.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
T_ADRS-ONAME1 = T_ADRS-CNAME1 .
T_ADRS-ONAME2 = T_ADRS-CNAME2 .
T_ADRS-OSTREET = T_ADRS-CSTREET .
T_ADRS-OCITY = T_ADRS-CCITY.
T_ADRS-OPCODE = T_ADRS-CPCODE .
T_ADRS-OREGIO = T_ADRS-CREGIO.
T_ADRS-OTELF1 = T_ADRS-CTELF1 .
T_ADRS-OCOUNTRY = T_ADRS-CCOUNTRY.
ELSE.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
*Buyer Other than Consignee
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
T_ADRS-OCITY, T_ADRS-OPCODE, T_ADRS-OREGIO,
T_ADRS-OTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNAG.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-OCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
ENDIF.
*Other's Ref
TIDNO = 'Z071'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-OREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Buyer's Order No Ref
TIDNO = 'Z023'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-BUYER = mslines-tdline(25).
EXIT.
ENDLOOP.
*Exporter Ref
TIDNO = 'Z072'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-XPREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Pre-Carraige By
TIDNO = 'Z074'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Place Of reciept by Pre-Carraige
TIDNO = 'Z073'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLPCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Vessel/Flight No
TIDNO = 'Z075'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-VFNO = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Loading
TIDNO = 'Z077'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLOAD = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Discharge
TIDNO = 'Z076'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PDISG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Final Destination
TIDNO = 'Z070'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-FDEST = mslines-tdline(25).
EXIT.
ENDLOOP.
*Terms Of Delivery & Payment
TIDNO = 'Z080'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-TERMS = mslines-tdline(50).
EXIT.
ENDLOOP.
APPEND T_ADRS.
*BODY SECTION FOR LINE ITEMS
SELECT POSNR KWMENG VRKME WAERK
INTO (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
FROM VBAP
WHERE VBELN = SSORD.
*Mark/Case No
TIDNO = '0002'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-MARKNO = mslines-tdline(40).
EXIT.
ENDLOOP.
*Packing Type
TIDNO = '0003'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Description
TIDNO = '0001'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Quantity
WA_ITEM-QTY = VBAP-KWMENG.
WA_ITEM-VRKME = VBAP-VRKME.
*Goods Rate
SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
SELECT SINGLE KBETR WAERS
INTO (WA_ITEM-RATE, WA_ITEM-WAERS)
FROM KONV
WHERE KNUMV = VBAK-KNUMV
AND KPOSN = VBAP-POSNR
AND KSCHL = 'PR00'.
*Goods Amount
WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
WA_ITEM-WAERK = VBAP-WAERK.
TOT = TOT + WA_ITEM-AMOUNT.
APPEND WA_ITEM TO T_ITEM.
ENDSELECT.
T_ADRS-TOT = TOT.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = TOT
CURRENCY = VBAP-WAERK
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = WORD
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
T_ADRS-TOT_WORDS = WORD-WORD.
APPEND T_ADRS.
START-OF-SELECTION.
<b> SET PF-STATUS '1000'.</b>
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_SD_REP_MULTI_PRINT'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_LANGUAGE = 'EN'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
I_LANGUAGE = P_LANGUAGE
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
E_DEVTYPE = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
P_OUTPUT_OPTIONS-XSF = SPACE.
P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
P_OUTPUT_OPTIONS-XDF = SPACE.
P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
APPEND P_OUTPUT_OPTIONS.
P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
P_CONTROL_PARAMETERS-GETOTF = 'X'.
P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
APPEND P_CONTROL_PARAMETERS.
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS =
TABLES
T_ADRS = T_ADRS
T_ITEM = T_ITEM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>AT USER-COMMAND.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'ARCHIVE'.</b>
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = P_BIN_FILESIZE
TABLES
OTF = P_JOB_OUTPUT_INFO-OTFDATA
DOCTAB_ARCHIVE = P_DOC
LINES = P_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = P_BIN_FILESIZE
CODEPAGE = ' '
FILENAME = 'C:\sd.pdf'
FILETYPE = 'BIN'
MODE = ''
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH = P_BIN_FILESIZE
TABLES
DATA_TAB = P_LINES
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>ENDCASE.</b>
*& Form FINDTEXT
text
FORM FINDTEXT.
REFRESH mslines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = tidno
language = sy-langu
name = tname
object = tobjt
TABLES
lines = mslines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
DELETE mslines WHERE tdline IS INITIAL.
ENDFORM. "FINDTEXT
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjamanHello,
You cannot get continuous page numbers, But you will be able to merge all the 4 form outputs into one PDF file.
In yesterdays example you called one form, then converted OTF data into PDF data and downloaded on Presentation server.
In this case, after you call first form, you get the OTF data. Push this OTF data into a MAIN Internal table ( Same type as of OTF dada Int TAB ). Then Call second form. Then you get second set of OTF data. This second set of OTF data may be appended to the MAIN Internal table and the follw same procedure for the rest of the forms. In the end you will have one Internal table which holds OTF data of all the 4 forms.
Now convert the OTD data to PDF Data by the FM and Download one file which has output of all the 4 forms.
I hope my explanation is quite clear.
Regarding your second question, the Archive and Print and archive buttons on the PRINT PREVIEW screen works for Spool archiving which is to be enabled by customizing. If you wish to archive the output as PDF, you may have to do it in program.
I am NOT accessible on YAHOO.
Plz let me know if you are stuck.
Regards, Murugesh AS -
How do you find multiple original files in itunes? Many threads no answer
I tried looking through a lot of topics that had similar problems but haven't run across an answer yet. I am trying to locate original files for itunes. The library is directed to an external HD. The files are in the HD and I can 'find' them one at a time. As with others on this forum, I don't want to do it individually. Any one know an easy way to point to the music folder for all the titles?.
I actually have the whole library on a travel drive as well and it seems to find them there. If the travel drive is unplugged, then it cannot find the original. I'm guessing that there is a path that needs to be followed and yet in the advanced prefs it is pointing correctly.*Don't move any media* until your library is working reliably.
My experience is that you can move the "library" files (outside the red box) anywhere and provided the "content" (inside the red box) stays put iTunes will find the files. You can also move the library as a whole, "library" & "content", when nested as shown. Typically when people run out of room they follow a guide which explains how to relocate the content only using iTunes to manage the shift. This has two drawbacks, first iTunes can sometimes fail to complete the operation leading to an unstable library and second it complicates things when unxpected system changes occur.
You might find your existing library and content will reconnect if you edit the location of the iTunes Media folder in preferences to the current location, close iTunes and reopen.
iTunes 9 will work perfectly well with files in the older layout. If you "upgrade" to *iTunes Media Organisation* it should reorgainse the files, but similar caveats obtain. If iTunes crashes while moving the files about (as has heppened to others posting here) then repairing things is complicated. The automated process also fails to rename *iTunes Music* to *iTunes Media*
Again, from my own tests and when properly nested, iTunes will accept the renaming of the *iTunes Music* folder as *iTunes Media* and update the iTunes Media folder preference automatically. If that works and you then close & reopen iTunes and everything still works normally, you can try pushing an Artist folder into iTunes\Media\Music. I think it works, but I manage the structures inside iTunes Media manually & I don't have time to test it just now. If iTunes doesn't llike any step you take just put things back where the were. You can always let iTunes manage the iTunes Media Organsiation upgrade if you have a decent backup and can restore.
tt2
Maybe you are looking for
-
Please Help Me i need to get my iphone back
-
Email Delivery setup / XMLP Server 5.6.2
"java.sql.SQLException: Io exception: The Network Adapter could not establish the connection" Search through the form, but nothing that really addresses this error. It is a clean install on RHEL ES3. Everything is working fine, we are generating repo
-
Dear all I wrote a bash script which call an sql script, i put it on the crontab , i had the following error: ORACLE_HOME=/u01/app/oracle/product/9.2.0.7/: is not an identifier error Can any one help me on this error.? Thanks in advance Regards DzUse
-
Lightroom refuses to import RAW files.
Hello, I have Lightroom version 1.4.1 (just downloaded the update), and cannot upload RAW files from my Canon 20D or 5D. What happens is that Lightroom will either: (1) Upload just 12-15 files, then freeze up. The light on my camera stops glowing red
-
Can't open LV 5.0 with 8.5
Hi I can't open the LV version 5.0 with 8.5 . what should I do ? Toni Attachments: Reinitialisetodefault.vi 25 KB