Always generation of new spool request when using message type WNAK
Hey!
I have one question regarding the printout of message type WNAK.
In SAP standard the print program RWBNASTV and entry routine ENTRY_ABR_NATRAB is used.
Now I want to ensure that at every printout generates a new spool request.
Problem is that when a user prints a purchase order and after that a Sett. Crdt Agrmt (WNAK) the second printout is attached to the previous spool.
How can I ensure that there is always a new spool file generated without copying the print program and the corresponding function modules before OPEN_FORM?
In the print conditions I only know the function "Immediately print" but that is no help if the printout is attached to the purchase order which was printed before.
Is there no flag which escpecially ensures that for this message type should be always be generated a new spool request?!?!
I hope you know something else.
With kind regards.
Mark
I alreadey copied the print program and the function modules but I am still looking for another solution because I think that is not the best solution for the problem.
I changed following in include LWNPNFO0 (copied to LYWNPNFO0):
--- Konvertierung der Kommunikationsdaten: --
MOVE-CORRESPONDING pi_nast TO lvs_snast.
MOVE sy-repid TO lvf_program.
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
pi_comm_type = lvs_comm_type
pi_comm_values = lvs_comm_values
pi_screen = pi_screen
pi_newid = 'X'
pi_country = pi_tocountry
pi_repid = lvf_program
pi_snast = lvs_snast
IMPORTING
pe_itcpo = lvs_itcpo
pe_device = lvf_device
pe_mail_recipient = lvs_recipient
pe_mail_sender = lvs_sender
EXCEPTIONS
comm_type_not_supported = 1
recipient_creation_failed = 2
sender_creation_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
MOVE sy-subrc TO po_retcode.
PERFORM error_message_arrang_append_sy TABLES ptx_error_messages
USING pi_kona
dummy_vake.
ENDIF.
CHECK po_retcode = 0.
*--- Öffnen des Formulars:
CALL FUNCTION 'OPEN_FORM'
EXPORTING
archive_index = toa_dara
archive_params = arc_params
device = lvf_device
dialog = ' '
form = pi_formular
language = pi_nast-spras
OPTIONS = lvs_itcpo
mail_sender = lvs_sender
mail_recipient = lvs_recipient
EXCEPTIONS
canceled = 1
device = 2
form = 3
OPTIONS = 4
unclosed = 5
mail_options = 6
archive_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
Edited by: Mark Müller on Jul 30, 2009 10:36 PM
Similar Messages
-
How to create new spool request in smartforms??????
hi all,
i have to ctreate a new spool request for a smartform...
The driver program for this smartform is a standard program.
when i run the transaction, the spool for standard sap-script gets created but not for my smartform.
the code is something like this:-
wa_ssfcompop-TDDEST = 'LOCL'.
wa_ssfcompop-TDIMMED = space.
wa_ssfcompop-TDNEWID = 'X'.
wa_ssfcompop-TDFINAL = 'X'.
*wa_ssfcompop-XSF = 'X'.
wa_SSFCTRLOP-no_dialog = 'X'.
CALL FUNCTION v_fm_name
EXPORTING
CONTROL_PARAMETERS = wa_SSFCTRLOP
OUTPUT_OPTIONS = wa_ssfcompop
wa_rldri = xrldri
wa_rldrp = xrldrp
wa_rldru = xrldru
wa_t329p = xt329p
wa_resb = xresb
wa_rldrc = xrldrc
wa_vblkk = xvblkk
wa_vblkp = xvblkp
wa_rldrh = xrldrh
wa_rlvek = xrlvek
wa_reftab = xreftab
wa_lthu = xlthu
v_date = v_date
v_time = v_time
v_label = v_label
v_bzeit = v_bzeit
v_name1 = v_name1
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_rldri = xrldri
it_rldrh = xrldrh
it_rldrc = xrldrc
it_vblkk = it_vblkk
it_vblkp = it_vblkp
it_rldrp = it_rldrp
it_rldru = it_rldru
it_t329p = it_t329p
it_resb = it_resb
it_rlvek = it_rlvek
it_reftab = it_reftab
it_lthu = it_lthu
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Help would be greatly appreciated and definitely rewardedhi
good
Use the function module 'GET_PRINT_PARAMETERS'.
sample:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
copies = g_copies
COVER_PAGE = C_CHAR_UNKNOWN
DATA_SET = C_CHAR_UNKNOWN
department = ''
destination = g_destination
expiration = g_days
immediately = ' '
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
layout = 'X_65_200'
line_count = 65
line_size = 200
list_name = g_listname
list_text = g_listtext
MODE = ' '
new_list_id = 'X'
PROTECT_LIST = C_CHAR_UNKNOWN
no_dialog = 'X'
receiver = 'SAP*'
release = ' '
REPORT = C_CHAR_UNKNOWN
sap_cover_page = 'X'
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
USE_OLD_LAYOUT = ' '
UC_DISPLAY_MODE = C_CHAR_UNKNOWN
DRAFT = C_CHAR_UNKNOWN
ABAP_LIST = ' '
USE_ARCHIVENAME_DEF = ' '
DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN
PO_FAX_STORE = ' '
NO_FRAMES = C_CHAR_UNKNOWN
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = g_params
valid = g_valid.
IF g_valid <> space.
NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.
IF NOT tb_output3[] IS INITIAL.
LOOP AT tb_output3 INTO wa_output3.
PERFORM write_summary.
ENDLOOP.
ENDIF.
Reward if useful...
thanks
mrutyun^ -
Number of pages in new spool request
Hello.
I use FM RSPO_RETURN_ABAP_SPOOLJOB to extract lines from a given spool. Then I open a new spool with FM RSPO_SR_OPEN. Each line of the table coming out of RSPO_RETURN_ABAP_SPOOLJOB is written to the new spool. Afterwards i close the new spool with FM RSPO_SR_CLOSE.
So far so good. This works fine.
My problem is that when i take a look into transaction SP01 the old spool has a certain number of pages. SP01 maintains that the new spool has 0 pages.
How does that come? How can I solve this?
Thx in advance
MikeThank you all.
My problem was that during the process of data extraction (old spool -> internal table) the NEW-PAGE-tags are deleted or at least they were not transferred into the table. And so the could not have been written into the new spool.
Solution:
Every 65 lines, that are written into the new spool request, I call RSPO_SR_PAGE_BREAK.
Thank you anyway.
MIKE -
New Spool Request for each purchase order
Hi all,
Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
It is goind inside the same pool.
I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
Kindly adivce me how to generate new spool evertime when new PO is created.
Regards,
Rahul.Hi,
Generated Spool request number is in table TSP01.
Retrieve that number and pass to function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.
SO_DOCUMENT_SEND_API1
This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
Regards,
Supriya. -
How do I resolve "error processing your request" when using the download link in My Orders for photoshop 5
As Jeff already hinted at, try a different browser. Such issues almost always are local problems on your end. Something is either changing or blocking the HTTP headers used for forwarding (could be your router, a desktop firewall or other security tools) or a JavaScript is not running/ being blocked.
Mylenium -
Hi all,
Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
It is goind inside the same pool.
I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
Kindly adivce me how to generate new spool evertime when new PO is created.
Regards,
Rahul.Hi,
Check the TDNEWID parameter while generating the spool.
Check this link : [http://help.sap.com/saphelp_nw04/helpdata/en/84/1f14b517aa11d5b67b006094192fe3/content.htm]
Please post this question in ABAP section.
Cheers,
Raja.D -
New Spool Request not generating
Dear All,
I have seen print preview of one PO and taken print which has created a spool request.
Another PO also I have seen the preview and taken print, but it has added to previous spool request as second page.
My problem is I need to generate new spool request for each PO. Where do I need to do setting for this. Pls guide.
Rgds
SriniHi Srinivasan,
In the print program, try setting the parameter TDNEWID to 'X'.
Following link can help you ..
Stop the combining of spool request to an existing one -
Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks
search google for "iphone remove picture from contact"
-
Adobe flash CS6 crashes when using the type tool or Editing word all the time... please help!
Nobody can tell you anything without proper system info or other technical details. The standard answer with all text issues simply is, that you have a "bad font" on your system and need to get rid of it.
Mylenium -
Photoshop CS6 crashes all the time and especially when using the type tool... please help!
Since I did not have this problem with CS5 or CS4, I can only assume something is not right with Photoshop CS6... below is my video card info:
ATI Radeon HD 4850:
Chipset Model: ATI Radeon HD 4850
Type: GPU
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 512 MB
Vendor: ATI (0x1002)
Device ID: 0x944a
Revision ID: 0x0000
ROM Revision: 113-B9110C-425
EFI Driver Version: 01.00.383
Displays:
iMac:
Resolution: 2560 x 1440
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Built-In: Yes
Connection Type: DisplayPort
Cinema HD:
Resolution: 1920 x 1200
Pixel Depth: 32-Bit Color (ARGB8888)
Display Serial Number: 2A80273WXMN
Mirror: Off
Online: Yes
Rotation: Supported -
On new IOS 7, when I message contacts, it selects thier old contact number, despite the fact I have deleted/edited their number in my contacts list. Only by going through contacts, can I message the correct number. The old number does not appear there, so I am unsure where "messages" is picking up the old number, it doesn't appear that "messages" is synching with "contacts". Any ideas how to fix this?
On new IOS 7, when I message contacts, it selects thier old contact number, despite the fact I have deleted/edited their number in my contacts list. Only by going through contacts, can I message the correct number. The old number does not appear there, so I am unsure where "messages" is picking up the old number, it doesn't appear that "messages" is synching with "contacts". Any ideas how to fix this?
-
Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.
Nobody knows? Not even administrators?
Please it would be really nice to have help on that to take all the benefit of the remote app.
Thank you very much in advance. -
Safari may unexpectedly quit when using flash type games that require farmville
Safari may unexpectedly quit when using flash type games that require farmville
Safari may unexpectedly quit when using flash type games that require farmville
-
Does anyone know why, when using Messages on my iPad, a cannot send a message with only text on it? Strange though, I can send a message with text AND a photo??
Hi Cass,
If you are having issues with Messages on your iPad, you may find the following article helpful:
iOS: Troubleshooting Messages
http://support.apple.com/kb/ts2755
Regards,
- Brenden -
Where does the date come from when using Tip type = dateFormat
Hi,
Can anyone tell me when using personilizations where the date that is shown comes from when using tip type = dateFormat? Today it shows (example: 24-Sep-2012) but yesterday it was the 23rd so seems to increment by one day. Is there a way to change the date shown here, to sysdate for example?
ThanksHi,
You can check Inline Messaging, Tips, Hints and Bubble Text section in OA Framework Developer Guide
Thanks,
Jit
Maybe you are looking for
-
IOS RD Client Remote Resources "Failed to Parse RDP Configuration"
I encounter the error below when attempting to connect to Remote Resources. This worked perfectly yesterday but hasn't at all today. I removed and added the RemoteApp entry on the 2008 R2 server but continue to encounter this error. Any help is great
-
Hi, Iam doing a report on enhancement, when i use teh code below for the conversion its giving an error To convert GUID in the unicode format <b>DEFINE move_casting. assign &1 to <unicode_x1> casting. assign &2
-
HI, I have created new plant. When I make PO (UB) and then create inbound delivery in vl31n the vendor already appears and the vendor is what I entered in the PO as Supplying Plant. Now when I do the same for the new plant the vendor does not appear
-
WPF Styles and WPF Crystal Reports viewer
Hi, We are currently developing a WPF application which will utilize Styles created with Expression Blend. Our environment is VS2010 SP1 and Crystal Reports for VS2010 SP2. We want to design our reports with Crystal Reports but we don't seem to find
-
Combining closed paths in Illustrator CS3
Dunno how simple this one is, but I have two closed paths of the same colour that overlap to appear as one object when printed. I'm trying to combine these two paths into one object so that if I apply a stroke weight to it, it outlines the whole obje