Sales order (Sapscript) to Spool.
Dear all,
Has anybody know any Function module that i can printout the sales order into Spool? The form should be sapscript.
It will develop a program and let user input the sales order number then it will print out the sales order into spool automatically.
Please kindly advise
As i searh the forums, i can't find such case for it
Regards,
Luke
Hi all,
I want to user input the Sales order number and print out the sales order forms into SPool.
Regards,
Luke
Similar Messages
-
Hello Experts,
I am trying to write a print program for Sales Order.I copied the standard program RVADOR01 to ZRVADOR01, but unable to find out to where to make the necessary changes..and when I am trying to save the ZRVADOR01..it gives me an enhancement-option.. Or is it better to write a abap program with open,write and close form?
Thanks,
AnkyHi all,
I want to user input the Sales order number and print out the sales order forms into SPool.
Regards,
Luke -
How to find out spool requist number respective Sales Order
hi,
I need spool number respective to Sales Order, after print out script.While taking print out of sales order by selecting respective output type i am able to get spool request number in table TSP01 .Upto eveything fine .But how to find this spool request number is belongs to that Sales order.
Regards,
EswarSELECT * FROM tsp01 WHERE
rq0name = sy-repid AND
rq1name = d_suffix1 AND
rq2name = d_suffix2 AND
rqowner = sy-uname.
WRITE:/ 'Spool request issued',
/ 'Spool Number:', tsp01-rqident,
/ 'Spool Name :', tsp01-rq0name,
/ 'Suffix 1 :' , tsp01-rq1name,
/ 'Suffix 2 :', tsp01-rq2name,
/ 'Owner :', tsp01-rqowner,
/ 'Device :',tsp01-rqdest,
/ 'Copies :', tsp01-rqcopies,
/ 'Processed :', tsp01-rqpjreq.
SKIP.
ENDSELE -
Display all sales order's smartform output in one spool request
Hi,
If suppose user has given sales order number from 01 to 14 then the output of all sales order should come in one print priview of spool request. How to do it?
Please help.
Thanks in advance,
Rgds,
MadhuriHi Madhuri,
Call open form write form and close form in loop so that till sales order remains in the loop the form will continue to print. In this way all sales order in internal table will print in the same spool.
Hope this will help you.
Regards,
Vijay -
Attach sapscript for email message in sales order
Hello to all.
I need some help..
I'm trying to include a sapscript form in a message on sales order in VA01. I can already send email to outside SAP, but can't include de sapscript form into the mail.
I make a copy of the standard message MAIL, and include de sapscript form that i want to attach.
Anybody have an idea how to solve this issue?
best regards,
Susana MarquesHi
I think u need to create a message type MAIL just as u done, but u should check if this kind of message is managed by your driven program.
Check the call of FM OPEN_FORM, here the parameter DEVICE has to have the value MAIL, perhaps here it's always transfered PRINT.
The second control is on master data of the partner of the message: he has to have the mail address.
The last control is on the master data of the user: he has to have the mail address.
Max -
How to find out the Sales order no based on spool no
Hi Experts,
Anyone tell me how to find out the Sales order no based on Spool no.
Thanks and regards,
AmjadHello Mohammed,
Please check the following SAP Spool tables for your spool request.
You will find your required document number as an Object key in these tables.
TSCMSTAT --> Field OBJNO
SOOS --> Field APPLKEY (Document number will be a part of this key)
If your document is getting printed by SAP Script, then dont forget to take SCR value in the OBJTP field while searching for your record.
Thanks and Best Regards,
Vikas Bittera.
***Points for Usefull answers *** -
Sale Order Item Level Text Field which table and field
Hi,
Thanks for your prompt reply and best solution.
Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.Hello,
is this going to work for item level text as well.
can you tell how to proceed with this functional module
or is there any other thing required.Please elaborate to
understand better way.
You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
Client
Text ID of text to be read
Language of text to be read
Name of text to be read
Object of text to be read
Archive handle
Text catalog local
When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
Regards,
Sarthak -
Error while sending sales order form by fax
hi,
Sending Sales order by fax is not working. While adding output type for Sales order choosing device as 'FAX' is throwing an error saying that 'Error while sending fax with SO_OBJECT_SEND, return code 9'. Anything needs to be configured or we have to code anything in SAPScript program. Please advise.Hi Harry,
You don't need to write any particular code for sending FAX in SAPscript. But you may need to check some configurations regarding it.
We configure SCOT to send Fax and mails to outside SAP. Check SAP Note 455140 for the configuration of SCOT tcode.
Please refer this link [Sending FAX |Sending FAX from SAP;
It might be helpful.
Thanks,
Daya. -
Hi Friends,
I am facing below mentioned issue and request your suggestion to solve it
Via processing of sales order output type BA00 another Z output type is processed and acknowledgment is sent to SAP inbox( sost).
This is working incase of manual addition of BA00 output type and via standard program " sd70av1a", but this functionality is not working when i am calling this standard program in a Z report via batch job.
with the below code-
DATA: name TYPE tbtcjob-jobname.
DATA: number TYPE tbtcjob-jobcount.
DATA: print_parameters TYPE pri_params.
name = 'ORDER_PRINTING'.
CLEAR: range1.
*REFRESH: range.
range1-sign = 'I'.
range1-option = 'EQ'.
range1-low = 'BA00'.
* range1-high = 'ZBA1'.
APPEND range1 TO range.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT sd70av1a WITH rg_kschl IN range
WITH rg_vbeln IN order_tab
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
In this case only BA00 is getting processed but Z output type created for sending acknowledgment is not triggered.
Please suggest how can i achieve the required functionality.
Thanks,
SuryaSolved myself..
Thanks.
Br,
Surya -
Modifying NAST when a sales order is stored.
Hello,
How can I modify output messages (suffix2 field) when a sales order is saved (va01 or va02)? I have added a breakpoint at some sales user-exit but the xnast and ynast are always empty (and sales orders contains output messages).
Thanks in advance,
Ricard.Oscar,
You may be better off logging this in the ABAP forum. I'm sure there would be plenty of code-cutters willing to offer you advice on this. I know there are a heap of function modules around spool requests and the NAST/NACH tables. There might be something in there. -
How to configure rescheduling for sale order quantities
kindly explain how to configure rescheduling for sale order quantities that are created last month. kindly explain. i am in urgent.
regards,
g.v.shivakkumarHi,
Short text
Rescheduling sales and stock transfer documents: by material
Description
The 'Rescheduling' program (SDV03V02) processes sales document items that are contained in the item directory for the material. It takes into consideration open items and schedule lines from stock transfer items, stock transfer scheduling agreements and purchase order requests (items only), referred to hereafter as stock transfer documents, for the materials.
All sales documents for the material that are still open are selected. This means that the material index must be activated for at least all sales document types, whose items may have requirements. All stock transfer documents or items for the material that are still open are also selected. Open in this case means for example, that there is no deletion indicator, that the item from a stock transfer purchase order request cannot be labeled as completed or that the quantity delivered and posted to goods issue for the item in a stock transfer purchase order is the same as the amount ordered. An availability check can only be carried out if a checking rule is assigned to the document type - if this is not the case, the document or document item is not checked.
Checking rule 'A' is used as a basis for rescheduling sales orders (exceptions to this are rush orders they use checking rule B, and orders with individual customer stock; they use checking rule AE). Stock transfer documents use the checking rule that is assigned in Customizing for Purchasing. It is important that the scope of checks is consistent for both the stock transfer documents and the sales documents and that they do not exclude each other, as this can lead to incorrect test results. An example of an incorrect setting would be: The scope of check for checking rule 'A' checks delivery schedules for stock transfer purchase orders and stock transfer purchase requests, however the scope of check for the checking rule for the stock transport scheduling agreement does not.
The items and schedule lines found in the selection are sorted according to 'Priorities' - document category, delivery priority, creation date of the item or schedule line (for stock transfer purchase orders and delivery plans) entered on the selection screen or according to the schedule line date of the earliest schedule line with order quantity, document number and item number and then transferred to the availability check. Priority 1 is highest priority and priority 5 the lowest. Stock transfer purchase order requests are sorted after stock transfer purchase orders and scheduling agreements, as they are less binding. This means that when you have identical sort criteria such as delivery dates, the stock transfer purchase order item is checked first and then the item from the stock transfer purchase order request.
The preset option 'Unconfirmed documents required' only carries out rescheduling for materials for which there is at least one unconfirmed transaction.
You can use the parameters 'Sorting criteria delivery date' to define whether sorting is carried out with the order quantity after the creation date of the item or the delivery date of the earliest schedule line.
If you mark the 'Simulation' field, the checked documents are not saved. Instead a results list is generated and saved. However, the availability check for the corresponding documents continues as if saving has taken place already, that is, that the simulated list corresponds to the actual one.
Under 'Options' on the selection screen, specify whether sales documents and/or stock transfer documents should be processed. For stock transfer documents you can enter whether stock transfer purchase orders and scheduling agreements should be processed at item or schedule line level:
Processing at item level:
All open schedule lines for the item are read and collected, then transferred to the availability check. To sort and prioritize documents, you do not need each individual schedule line. It is sufficient to have the item or data from the first schedule line. All open schedule lines for the item are processed and checked.
Example of processing at item level:
Sorting: Date (Delivery date first schedule line) - Document number - Document item
Doc. cat. Doc. number Doc. item Doc. schedule line Delivery date PO 4500000012 10 0001 26.01. PO 4500000012 10 0002 26.02. PO 4500000025 20 0001 28.01. PO 4500000025 20 0002 02.02.
You can see that the second schedule line for document 4500000025/20 from 02.02 was processed after the second schedule line for document 4500000012/10 from 26.02. This is because all open schedule lines for an item are read and processed. The first schedule line from 4500000012/10 has the earliest delivery date, therefore it has priority.
Processing at schedule line level:
Each open schedule line for an item is entered in document sorting in accordance with the values entered under 'Priorities'. The availability check is carried out for each individual schedule line.
Example for processing at schedule line level:
Sorting: Date (delivery date first schedule line) - document number -document item
Doc. cat. Doc. number Doc. item Doc. sched. line Del. date PO 4500000012 10 0001 26.01. PO 4500000025 20 0001 28.01. PO 4500000025 20 0002 02.02. PO 4500000012 10 0002 26.02.
Here you can see that each schedule line was sorted according to its delivery date. Note that this type of processing requires more runtime due to the individual checks and more frequent saving.
The results of rescheduling are saved, as long as the program was not started in simulation mode. When calling up from the 'Sales' area menu or when directly starting via the development environment, the iniator is informed via a dialog box that he has just started a process that changes data. He can then decide whether or not he wants to continue.
Checking procedure for stock transfer documents:
An availability check of stock transfer documents in rescheduling is carried out in accordance with the check carried out when manually creating a document. If, however, the required quantity for a schedule line is not available on a particular date and will not be ready until later, new schedule lines are created for the stock transfer purchase orders and scheduling agreements, containing the relevant data. New items are created in this case for stock transfer purchase order requirements. The total sum of schedule line quantities for a processed schedule line corresponds to the schedule line quantity of the original schedule line.
First example: Using a stock transfer purchase order item with a schedule line:
a) Status of item before rescheduling run:
Del. date PO quantity Confirmed quant Confirmed del. date 23.07. 50 items 0 items -
==> This now affects the stock/requirement situation:
- Goods issue is posted for the material in the delivering plant on the 23.07.
- A purchase order of 10 items was created for the material in the delivering plant. Delivery is expected on the 29.07.
b) Status of stock transfer purchase order item after rescheduling run:
Del. date PO quantity Confirmed quant Confirmed del. date 23.07. 40 items 40 items 23.07. 29.07. 10 items 10 items 29.07.
==> The first schedule line was changed in accordance with the results of the rescheduling availability check. Only 40 of the 50 original items could be delivered on the 23.07. Therefore, a new schedule line is created for the rest on the 29.07. for 10 confirmed items.
Second example: Same output situation as the above example.
==> There is now a change in the requirement/stock situation:
A purchase order for 10 items is created for the material in the delivering plant. Delivery is expected on the 29.07. A further purchase shows another 40 planned items on the 30.07.
Status of stock transfer purchase order item after rescheduling run:
Del. date PO quantity Confirmed quant Confirmed del. date 29.07. 10 items 10 items 29.07. 30.07. 40 items 40 items 30.07.
==> The first schedule line was changed in accordance with the result of the availability check for rescheduling. The original delivery date is set to the date confirmed in the ATP check. A new schedule line is created for the remaining 40 items, that are available on the 30.07.
Note:
Any set fixed delivery date and quantity indicators and creation indicators for schedule lines or items are 'inherited' by newly created schedule lines. Assuming that the original schedule line was fixed in the above example (since it is created manually), this indicator is also set for the newly created schedule line.
If shipping scheduling is activated for a stock transfer document type, this is also implemented for newly created schedule lines, with the exception of route schedule determination. This means that in the current version of the program no route schedule has been determined for a schedule line containing a route schedule for which new schedule lines may need to be created.
The results of the run are issued in the form of a list, which is also saved, so that the results can be controlled at a later date. This is done using the function 'Evaluate rescheduling', but it is only a good idea to do this after the first rescheduling has taken place. You can restrict selection requirements but these can however affect the runtime. You can use this function to analyze the saved list until the next rescheduling run, which writes over the result. If you start rescheduling in the background, a spool file with the result list referred to will be created in the corresponding setting. You can see this in spool management.
Output
A list of changed documents, a list of documents in which an error occurred during processing and as a result were not changed, can be called up via the menu 'Edit - Error log'. If in a subsequent evaluation a restricted selection is carried out, a note appears at the end of the list to say that not all document items are displayed.
You can set the scope of the list under the menu option 'List' in the list display. You can view improvements, deteriorations and the whole list. Before the documents can be included in one or either of the restricted lists, the date or quantity has to have changed so that the item can be contained in both the list of improved or deteriorated documents.
You can use the interface for changing transactions and the order list to navigate. Use 'Back' to exit the list and 'New selection' to return to the selection screen.
Recommendation
You should only start this program occasionally and use very restricted selectin criteria during working hours as it requires enormous system resources.
Note
The columns for 'New date' and 'New confirmed qty' only contain entries if the dates or quantities have changed.
As the system only runs the change check (dates/quantities) per line in the original list, an item whose backlog has increased in the list of improvements. This occurs, for example, if the whole quantity can be delivered at once but at a later date. In this situation, the system determines an increase for the line when it compares quantities.
Regards,
Amrish Purohit -
Standard driver program for sale order
i am working with sale order confirmation,(smartforms)
is there any pre defined driver program for this.Not RVador01/
and i need to display the output in the form of a print out or PDF for sending the mail.
So please give me the logic for this.Hi,
have a look at table <b>TNAPR</b> to check the print program assigned to your smartform/sapscript.
Best regards. -
OUTPUT TYPES FOR SALE ORDER(VA01)
Hi All,
When i create a sale order, the data can be downloaded thru output type BA00 & standard program RSNASTED into SAPScript, but i wanted to download it to internal table. Can u please tell me the changes to be made after copying the standard program into Z... Program.Hello Rafi,
Better U debug the report. Since the data will be in the internal table, if it is downloaded to the Script. So u no need to copy and make the changes.
Vasanth -
Hi Gurus
How can get the deleting list for sale order?
Useful answer duly rewarded back.
Regards,
DevendraHi Devendra,
General Sales order will be deleted form the database after archiving.
Step for Archiving:
Sales Order is archived and deleted by the Archiving object know as SD_VBAK.
If you just want to delete the sales order with out thinking of saving to archive server then please follow the path:
1.GOTO SARA ---> Click Customizing -> click Archiving Object specific customizing (Technical settings)> In delete jobs mention start automatic --> Leave other settings as per the standard save and close it.
2. Click write --> Mention Variant name -->Click on Maintain --> Select all the sales orders that you want to archive and delete --> Mention sales organinsation under which you have created --> Select Production Mode --> Click on Attributes --> Mention meaning of that attribute it could be any text --> Enter and save.
3. Click on Spool parameters --> mention the output type --> Enter now you can see green signal light
4. Click on Start date --> Click on Immediate --> Save.
5. Execute or click F8 and see the job.
6. After some time you can see the data is archived and deleted form the database.
Hope this will help you in deleting the sales order form the database.
Please Note: It is bit complicated you should take help of SAP Archiving consultant.
-Thanks,
Ajay
Message was edited by:
Ajay Kumar
Message was edited by:
Ajay Kumar -
Sales order number in Output text as subject in External Email
Dear Friends,
I have configured every thing in customisation so that whenever the sales order is saved an email goes to customer email mail id. this is working fine.
Please help as i want to have Sales order number also in the subject of the email.
I am doing this process through OUTput and not workflow.
Please help.
regards,Hi can you please tellme what configuraiton settings that to be made. i am not able to get the email generated in the spool and before that it is issuing no output is issue.
the following are the configuration changes that i did for the new output type for Emails
In General data of the Output type i maintinaed : SAPMV45A - TEXT_SYMBOL_REPLACE under replacement of Text symbols
i selectd the medium as extenal send.did i miss anything. or else i request you to provide me the complete configuration on emails.
Thanks
Maybe you are looking for
-
so i set up my ipod after i got it and i put the server as itunes but i dont know what happend that it dosent have wifi. it says its on but now i cant use most of the apps it has.
-
SharePoint associating content type with Reusable workflow gives error
System.NullReferenceException: Object reference not set to an instance of an object. at ASP._layouts_addwrkfl_aspx.__Render__control2(HtmlTextWriter __w, Control parameterContainer) in c:\Program Files\Common Files\Microsoft Shared\Web Server Exten
-
[solved] new abs PKGBUILD for package kernel26...old kernel?
I was looking into the new PKGBUILD in the /var/abs/core/kernel26 folder, as I wanted to update my custom kernel. I was editing the new PKGBUILD when I saw something weird...references to kernel.org files and archlinux.org patch seems to be same as t
-
Dynamic Invocation on REST Services
Hi, I am new to OAG. Couldnt find documentation on below questions. Can you please provide inputs. Question's: 1. Would it be possible to use single policy to invoke few external REST services. We want to externalize the URL in "Routing-->Connect to
-
Lacie drive not mounting after updating to 10.4.8
Hi, I have a 160gb Lacie d2 external hd, and after updating my OS to 10.4.8 in October, it will not mount. It's recognized in Disk Utility, but will not mount. I've tried repairing disk permissions from both my current OS and from the installer DVD,