Deletion Utility Program for Sales Order.
Hi Experts,
We decided to have a deletion utility program for Sales orders.
The program should take sales order numbers from a source file, and delete one by one, also the program should generate process log details at the end.
For creating the above program i need to create a new program or there is any BAPI for deleting the Sales Orders.
Thanks & Regards,
Ramana
Hi,
Possible UPDATEFLAGS:
BAPISDH1X-UPDATEFLAG = 'D'.
U = change
D = delete
I = add
If you go to SE37 give BAPI_SALESORDER_CHANGE --> Display ---> In application tool bar Last Buttion Function Module Documentaion --> Here you get some usefull information.
Dont Change the BAPI Just pass the Header X = 'D'.
Try this Sample Program.
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY.
DATA: i_hdrx TYPE bapisdh1x.
i_hdrx-updateflag = 'D'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_inx = i_hdrx
TABLES
return = i_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP.
Thanks,
Durai.V
Edited by: Durai V on Aug 19, 2008 8:22 AM
Similar Messages
-
Hi all,
Can any body tell me Standard Driver program for Sale Order Smart form?
Useful answer will be rewarded
Thanks in advance,
Sachin.Hi Sachin,
you can do this by,
<b> NACE</b> (tocde) --> select <b>Sales</b> --> click <b>output types</b> -->
select any standard output type --> double click on processing routines.
You can see the program name
For this it is -
<b>RVADOR01</b>
Reply me if there is any queries -
Standard Driver Program for Sales Order Confirmation
Hi,
My requirement is to develop smartforms and driver program for Sales Order Confirmation.
For doing this, I found there is a standard smartforms R2RBL_SDORC_L for Sales Order Confirmation. So I thought I can take a Z copy of this smartform and modify it to my requirement. So that we can use the Import parameters (Form Interface parameters) of the form R2RBL_SDORC_L. This will also reduce the work of writing the code in Driver program.
Now, I need to know what is the standard driver program for this form R2RBL_SDORC_L. If I can find the program name, I can take a Z copy of that and enhance it to my requirement.
Ultimately I believe I can reduce the work of writing code to fetch all Sales order details.
Can anyone let me know the standard driver program name for the form R2RBL_SDORC_L?Can anyone share how you approached in developing smartforms and driver program for Sales order confirmation?
Note: This program and smartforms will be assigned in the NACE transaction. -
Standard(Smartform) Program for Sales order Confirmation
Hi Experts,
I have a new Requirement on Smartforms,
It is Sales order confirmation, Can Any one say what is Revelant program for this Requirement...
(RVORDER01) is for SAP SCript But i Required Smartform Program..???
Thanks,,
ksreddy.I Required a program for sales order confirmation ..
Resolved..!!
Thanks, -
Driver program for sales order in smartforms?
whatst he driver prog for sales order in smartforms?
how to attach my smart form to driver prog
thanks & regards
lakshmiHi,
Driver Program is the program which is used to link the form and the ABAP program.
U have to use the FM 'SSF_FUNCTION_MODULE_NAME' to give the form name.
Here 'Z_TRNG_SMART_MUL_PURCH_T012' is the form name.
sf_formname = 'Z_TRNG_SMART_MUL_PURCH_T012'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = sf_formname
IMPORTING
fm_name = sf_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.
CALL FUNCTION sf_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
v_ekpo = v_ekpo
v_adrnr = v_adrnr
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_ekko = it_ekko
it_ekpo = it_ekpo
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.
Thanks & Regards,
Roja Velagapudi. -
Program for Sales Order cretaion using BAPI BAPI_SALESORDER_CREATEFROMDAT2
Hi All,
Can any one please give me one modal program which uses the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' to create Sales Orders...
Thank You very much in advance.....................Hi Krishna ,
Please check the below links .
[http://www.sap-basis-abap.com/abap/bapi-sample-to-upload-data-from-flat-file-to-va01.htm]
[http://abapreports.blogspot.com/2008/06/bapi-sample-code-for.html] -- > Select and Copy from this one. -
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. -
Material substitution program for sales order
Hi,
I need to do a program with these requirements:
<<The substitution program (single process) must run for all sales orders as soon as Delivery block is set to VA and also when delivery block is removed.
Advice : Trigger program using an output type determined in the sales order>>
I need to know how to trigger this single process using "output".
Has any of u done this before? I've no idea where to start! Can anyone help me?
Tarick.Hi ajit
In VA05 itself you can see Ordered qty, Open order qty and confirmed quantity , Delivered qty , Delivered date .Even Laxmipathi also said same thing and i also agree with his words.
Regards
Srinath -
BDC Program for Sales order and Enquiry
Hi All,
Pls can you help me.
To create sales order and enquiry I have bapis .
BAPI_SALESORDER_CREATEFROMDAT2
BAPI_INQUIRY_CREATEFROMDATA2
but i want BDC Programs for that bapis
pls can you help me
thanks
marsHi Krishna ,
Please check the below links .
[http://www.sap-basis-abap.com/abap/bapi-sample-to-upload-data-from-flat-file-to-va01.htm]
[http://abapreports.blogspot.com/2008/06/bapi-sample-code-for.html] -- > Select and Copy from this one. -
What is the Program for Sales Order Line Item Rescheduling
Hi,
There is a background scheduled job which does sales order line items rescheduling but I could get the name of the Program/Function Module by looking at the Jobs log. Can any one please help me?
When does the rescheduling happen? Does it happen while creating delivery for the order? I need to understand the rescheduling the process to solve a bug in the User Exit / Screen Exit.
Appreciate your help in Advance.
Thanks,
Kannan.If you know the job name, than you can find out the associated program name.
Go to SM37.
Select your job from the list
Select "Step" ... here it will show you the program name
Put cursor on the program name and Go to > Variant to know what was the input to run this job.
Regards,
Naimesh Patel -
Smart form and its driver program for sales order
Hi Experts,
Please give me the standard Smart Form name along with its Standard driver program.
I already have RVADOR01 program which is a driver program for SAP Script RVORDER01.
But I need standard smart form with its standard driver program for VA02, VA03 (Sales order) transaction.
<REMOVED BY MODERATOR>
Thanks In Advance
Ram
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 12:10 PMHi Ramachandra Babu,
Welcome To SDN!!
Check output types in NACE tcode...
Sample example,
Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.
Regards
Kiran -
Need adobe print program for sales order confirmation
Hello folks, anybody an idea about a sap standard print program and form for adobe forms concerning the sales order confirmation. can't believe that the old sap script RVADOR01 or ...01 ist still the standard. thanx for help
YES i searched the forums before posting a thread, and i didn't find relevant articlesThe Adobe PDF-based forms for sales are available since Enhancement Package 2 for release ECC 6.0.
Order confirmation (SD_SDOC_FORM01)
Print programs - check package VD_PDF or package interface VDPDF_REL. -
Migration program for sales order condtions KONV, KONP?
Hi,
Is there a standard way of migrating sales order conditions (tables KONV, KONP) or do I have to write a batch for VA02?
SlathHi,
try using the function module RV_KONDITION_SICHERN_V13A. Use the condition record number that is in the sales document to which you want to update your conditions.
This function module will do everything the standard way. In case if you are changing any existing condition record data for any order then use the existing data to fill Y tables passed to the function module and fill the X tables with the new data you want.
Hope this helps.
regards,
Satya -
Interactive report for sales order
how to create an Interactive Report which displays all the sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer.
http://www.sap-img.com/abap/program-for-sales-order-by-customer-date-sales.htm
https://forums.sdn.sap.com/click.jspa?searchID=2651341&messageID=1671145.
Have a look at the demo programs,
DEMO_LIST_INTERACTIVE_1
DEMO_LIST_INTERACTIVE_2
DEMO_LIST_INTERACTIVE_3
DEMO_LIST_INTERACTIVE_4
DEMO_LIST_HIDE
Please give me reward points.
Regards,
Murali Poli -
Tcode for Sales Order Output(collective processing)
Hi
What is the tcode or program to print sales orders collectively, similar to VL71 for deliveries & VF31 for invoices.
Regards
UmaHi Uma
There is no such T code for sales order print.
You can use SE38-> run RSNAST00 program for sales order output (collective processing).
try and revert.
Maybe you are looking for
-
Why is Crystal Report Viewer in BO XI 3.1 not printing correctly?
I have a W2 report that prints consistently directly from Crystal 2008 but when the report is imported into BO XI 3.1, the Crystal Report Viewer doesn't consistently print the report layout correcty (shifting data down by a line or so on the W2 form)
-
Acrobat 9.5.5.316 randomly crashes on Windows 2008 R2 Terminal Server
The program Acrobat.exe version 9.5.5.316 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel. Process ID: 98b8 Start Time: 01cea3b5e
-
I downloaded ITunes and now I tried to open the file, and it is not supporting the file
I downloaded ITunes on my galaxy s4 and tried to open the file and it says it is not supported
-
Maximum number of columns in an alv
Hi, I have searched sdn for this query, but answers include 99, 90, 255, 1023 ? Not sure, what is the correct answer ? I am working on ECC 6.0. Also, If number of columns are exceeded, then is the line break introduced or rest of the columns are trun
-
Hello All, Can anybody tell me how can wait in a threadserver and when client notify wake up? I noe I can use sleep but I don't know how to say that when you recive the message from clinet wake up? Thanks for your help in advance