Multiple printing option of Sales, Delivery and Billing
Hi All,
How to take multiple print of sales, Delivery and Billing from Standard transactions.
Hi
You have to handle in the driver program by writing the function modules
START_FORM....WRITE FORM...END_FORM in the loop of documents
example for sales orders:
Sort ITAB by vbeln.
loop at ITAb.
at new VBELN.
call function START_FORM....
endat.
call function WRITE FORM.
at end of vbeln.
call function END_FORM..
endat.
endloop.
Reward points if useful
Regards
Anji
Similar Messages
-
Sale order delivery and billing blocked
Hi sap sd gurus
I have a problem after creating a sale order , the one line item in sale order showing status of delivery blocked and billing blocked , now i am unable to post delivery and billing when i see in schedule line item order qty and confirmed qty .
Now i want to find why this is blocked and remedy for removing this block .
Could anyone suggest me in this issue asap
thanks in advance
KannaDear Kanna,
Go to XD02 at the toppage you will find Extras
In that Extra Topage you will find a field Blocking Data.
Check whether Order block and Delivery Block has been ticked.
If ticked is there remove the tick and try Delivery and Billing.
If you have any concerns revert back the same to me
With Regards,
Amjath -
CRM Sales and ECC Delivery and Billing cube ods info
We have already activated the ODS( OCRM_SALO) and the cube(OCSAL_CO3) for the sales order item level info and loaded data from the CRM system.
Our next aim is to load the delivery and Billing data from the ECC( or ERP). This is where we are a little confused.
We see a lot of ODS in the info area CRM> ERP Analytics> Sales and Distribution Analysis SAP R/3 SD
Not sure which ODS object and Cubes to activate and load.
Any help will be rewarded.
Thanks
ArunHello,
You can use BADI CRM_DATAEXCHG_BADI method crm_dataexch_after_bapi_fill.
In this method the field REQ_DLV_BL in internal table ct_bapischdlx can be cleared when CRM sends a delivery block with value space. When this field is cleared this means for ERP: Do not takeover delivery block and run the logic to determine the delivery block (including from material status).
Please bear in mind that this will lead to a system behaviour that a value of space for delivery block cannot be transferred anymore from CRM to ERP. This means the delivery block cannot be reset anymore from the CRM side, it can only be removed in ERP. If you use data exchange scenario A, it should not be a problem for you as the sales order can also be changed in ERP and thus the delivery block can be removed in ERP.
Best regards,
Maggie -
Function module for Delivery and billing based on sales order
Hi Friends
I am developing an object which has to create the sales order, delivery for that sales order and billing for it at the same time.
I have tried for few function modules to create the delivery and billing but I am not able to achieve.
Would you please help me by providing the correct function modules for these 2 activities?
Thanks
PraveenHi Nikhil
Thanks for reply,
i am creating the sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT1" only, but the billing document bapi
"BAPI_BILLINGDOC_CREATE" is for online creation, it will call the t-code 'VF01'.
I need to create the billing document with out calling the t-code like using bapi for sales order. Please suggest me if there are function modules to achieve this.
Thanks
Praveen -
Sales order, Delivery and Billing document creation
Hello Experts,
I am working on credit management and am in need of creating sales order, delivery and billing document.
Can some one send me the screen shots or any doc which outlines order,delivery and billing document creation.
Will award points definitely.
Also what are the t.codes for these creation?
Regards,
SriramOrder Create:
Transaction VA01
Give the order type , If standard order use OR or ZOR, which ever is maintained
Then give the sold to and press enter
In the Items screen Give the material and quantity and press enter. This should be enough to create an order, if u need u can give order reasons...etc. Then save the Order. Note down the order number.
Go to VL01N-
and give the above order for which u are doing delivery, In the pick quantity enter the amount in the order and press enter. and make sure the delievry date should be the same in the Sales Order Schedule line- REquested delivery date. Save the document.Note down the document number
Go to VL02N - Open the above delivery document and click on PGI - done
Now go to VF01 and this should bring up the delivery document number., If it doesnt , give the delivery document number and hit enter. then save the document. Billing is done.
Regards
Sai -
Status : Being Processed in Sales Order after the Delivery and Billing also
Hi All,
For one Sales Order........ Delivery and Billing are over but it shows
In the Sales Order> Header level>Status bar>Overall Status>Being Processed.
In Document Flow:
Sales Order xxxxxxxxx : Being Processed.
Delivery xxxxxxxxxxxx : Completed.
Billing xxxxxxxxxxxxx : Completed.
Functionally we checked everything......but through technically we can solve the issue or not
Pls help me with some solutions.
Advanced Thanks.
Diwakar Reddy.
[email protected]Hi,
This generally happens if the sales order is for a quantity greater than the quantity delivered.
SAP treats the sales order as still open and delivery of the remaining quantity is possible through that sales order itself. So the status is shown as "Being Processed".
If you want to see the status as "Completed" then you need to cancell the remaining open items in that sales order. Automatically the status will change to "COMPLETE"
Hope this solves your querry.
Regards,
Anirban -
Cross-Company Stock Transfer with Delivery and Billing
Hello Fellow Experts and Friends,
I have a situation at a client in California. The client does Make-to-Order sales. The only materials kept in inventory are raw materials and NREs. This client has plants in several countries around the world but only two are on SAP. The current version is 4.6C.
The scenario goes like this. The plant in China (CC: 2020, Plnt: 0020) wants to order raw materials from the US plant (CC: 1010, Plnt: 0010). If the US plant does not have enough stock in inventory, an order needs to be placed with a local vendor. When all materials a re available to ship,we need to deliver to and invoice the China plant. Additionally, shipment notification needs to be sent to the plant in China.
IWould someone please be so kind as to helpme with a "Best Practice" process flow for Cross-Company STO with Delivery and Billing? I also need guidlines for customizing the process in the IMG. This process must include issuing a PO to a local vendor for ordering additional inventory. For the shipment notification, I was thinking of an EDI Advance Shipment Notice if the receiving plant uses EDI. I need a different option, If the receiving palnt does not use EDI.
I am open to your suggestions.
Thanks,
AJ
Edited by: Arthur Hawley on Sep 8, 2009 10:56 PM
Edited by: Arthur Hawley on Sep 11, 2009 4:46 PMArthur,
Once this is correctly set up it works very, very well. And the cross-company supply scenario is actually fairly simple, streamlined and automated. However, this is NOT such a simple process to set up.
True cross-company supply, all the way through, requires a LOT of configuration which ties in SD, MM, FI, and EDI. It uses "wrap-around" IDocs to do some of the cross-posting in other company codes. There is also the issue of Intercompany markups, as well as Intercompany eliminations.
There are LOTS of folks who do the painful process of the FULL Order to Cash in one company code, and the full Purchase to Pay in the other. But this is NOT the right solution and requires almost twice as much transaction processing.
Just for the Intercompany setup, start to finish, I've been working on a "cookbook" to set up all of the modules for almost 10 years now. I've done it several times, at several companies and it works very well once it is all in place. However, that cookbook document is about 100 pages long (config settings, IMG settings, master data requirements, EDI settings, etc.).
Also, in your scenario you are talking about multi-sourcing parts from other locations. All of the related MRP settings are a separate setup issue.
What you are asking is WAYYYYyyy beyond the scope of forum posting. So if your company or client could use some help, please feel free to contact me.
Bill Wood - President
R3Now Consulting
http://www.r3now.com SAP thought leadership!
Platinum SAP Solutions
(704) 905 - 5175
http://www.linkedin.com/in/billwood -
From which tables i would find the delivery and billing document field..??
I need to create an ALV report which displays the following details in the output.
Order No Item No Material Order Qty Item Category Plant Delivery Billing Document Sales Org Dist Channel Division Created By Created On Changed On
For(Order No Item No Material Order Qty Item Category Plant) i took the fields from vbap and
for(Sales Org Dist Channel Division Created By Created On Changed On)i took the fields from vbak..
From which tables i would find the delivery and billing document field related to sales document.??
need help...
Moderator message : Requirements dumping not allowed, thread locked.
Edited by: Vinod Kumar on Mar 6, 2012 2:53 PMi am new to abap...so i dont have idea about sd table relationship.
so please reply how to add delivery and billing doc in my coding below..
*& Report ZINAA_SD
REPORT zinaa_sd.
TABLES: vbap, vbak, vbfa.
TYPE-POOLS: slis.
CONSTANTS: c_x TYPE char1 VALUE 'X'.
TYPES:
BEGIN OF st_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
END OF st_vbap,
BEGIN OF st_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_vbak,
BEGIN OF st_final,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_final.
DATA:
lt_vbap TYPE TABLE OF st_vbap,
ls_vbap TYPE st_vbap,
lt_vbak TYPE TABLE OF st_vbak,
ls_vbak TYPE st_vbak,
lt_final TYPE TABLE OF st_final,
ls_final TYPE st_final,
lt_fieldcat TYPE slis_t_fieldcat_alv,
ls_fieldcat TYPE slis_fieldcat_alv,
layout TYPE slis_layout_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbap-vbeln,
s_erdat FOR vbap-erdat.
SELECTION-SCREEN END OF BLOCK b1.
PERFORM select_data.
PERFORM loop_final.
PERFORM sort.
PERFORM a USING:
'VBELN' TEXT-002,
'POSNR' TEXT-003,
'MATNR' TEXT-004,
'KWMENG' TEXT-005,
'PSTYV' TEXT-006,
'WERKS' TEXT-007,
'VKORG' TEXT-008,
'VTWEG' TEXT-009,
'SPART' TEXT-010,
'ERNAM' TEXT-011,
'ERDAT' TEXT-012,
'AEDAT' TEXT-013.
PERFORM display.
*& Form SELECT_DATA
text
FORM select_data.
SELECT
vbeln
vkorg
vtweg
spart
ernam
erdat
aedat
INTO CORRESPONDING FIELDS OF TABLE lt_vbak
FROM vbak
WHERE vbeln IN s_vbeln AND erdat IN s_erdat.
IF sy-subrc = 0.
SORT lt_vbak by vbeln.
ENDIF.
SELECT
vbeln
posnr
matnr
kwmeng
pstyv
werks
INTO CORRESPONDING FIELDS OF TABLE lt_vbap
FROM vbap
FOR ALL ENTRIES IN lt_vbak
WHERE vbeln = lt_vbak-vbeln.
IF sy-subrc = 0.
SORT lt_vbap by vbeln.
ENDIF.
ENDFORM. "SELECT_DATA
*& Form LOOP_FINAL
text
FORM loop_final.
LOOP AT lt_vbap INTO ls_vbap.
ls_final-vbeln = ls_vbap-vbeln.
ls_final-posnr = ls_vbap-posnr.
ls_final-matnr = ls_vbap-matnr.
ls_final-kwmeng = ls_vbap-kwmeng.
ls_final-pstyv = ls_vbap-pstyv.
ls_final-werks = ls_vbap-werks.
READ TABLE lt_vbak INTO ls_vbak WITH KEY vbeln = ls_vbap-vbeln BINARY SEARCH.
ls_final-vkorg = ls_vbak-vkorg.
ls_final-vtweg = ls_vbak-vtweg.
ls_final-spart = ls_vbak-spart.
ls_final-ernam = ls_vbak-ernam.
ls_final-erdat = ls_vbak-erdat.
ls_final-aedat = ls_vbak-aedat.
APPEND ls_final TO lt_final.
CLEAR ls_final.
ENDLOOP.
ENDFORM. "LOOP_FINAL
*& Form SORT
text
FORM sort.
ls_sort-spos = '01' .
ls_sort-fieldname = 'VBELN'.
ls_sort-tabname = 'LT_FINAL'.
ls_sort-up = c_x.
ls_sort-subtot = c_x.
APPEND ls_sort TO lt_sort .
ENDFORM. "SORT
*& Form A
text
-->FNAME text
-->SELTEXT text
-->EMPHA text
FORM a USING fname TYPE string seltext TYPE string.
IF fname = 'KWMENG'.
ls_fieldcat-do_sum = c_x.
ENDIF.
ls_fieldcat-fieldname = fname.
ls_fieldcat-seltext_m = seltext.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ENDFORM. "A
*& Form ALV
text
FORM display.
layout-zebra = c_x.
layout-colwidth_optimize = c_x.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = layout
it_fieldcat = lt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = lt_sort
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = C_X
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = lt_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "ALV -
Automatic delivery and billing
Dear Experts,
could any one light me how to create an automatic delivery and billing from the sales order?
i want to create the sales order , delivery and billing at the same time when creating the sales orderHi Ahmed,
Follow the steps given below,
1st you have to create a variant
IN VF06 --> Give your required inputs like your sales org --> click at save --> On next screen --> in the billing date from --> in selection variable --> Choose option Dynamic date --> save it
Now you can see your variant
VF06 --> GOTO (Menu) --> Varian --> Display
Then go to SM36 --> give the required inputs like Job name, priority --> status should be sheduled --> Enter --> give the program name (You can find the program name through VF06 --> click at system(Menu) --> status) --copy that program name and paaste in the pop screen ---> then enter your variant --> your batch job has been created --> come back and click at "start conditions" --> save and test it
Hope this helps.
Regards,
MT -
Different value in sales order and billing document for one line item
Hi Experts,
User created a sales order with three line items say line item 10, line item 20, line30 and he did the delivery and billing also. Line item 10 value is 5024.26 EUR in Sales order
At the time of billing the value of a line item 10 is increased by 0.02 i.e. 5024.28
I asked the user cancel that invoice and the post goods issue. He cancelled the invoice and post goods issue. Then he created the PGI and billing now the value of line item decrease by 0.01(5024.27) again he cancelled the invoice and post goods issue. he created the post goods issue and billing. Now the value is correct i.e. 5024.26.
User is asking me the reason can any one help me in this
Note: price is copying from delivery to billingMorning Sunina
Now consider this scenario
Item a - 10
Item b - 20
Item c - 30
and the validity of condition rec for item C is 31st of Jan
after 31st JAN the record changes or there isn't any.
In Copy control the pricing type is 'B' i.e., carry out new pricing.
Now if the document is created in January it will take all the above prices. and this document is then billed in Feb. Now the copycontrol, whilst copying the prices, will predetermine the same.
Now your task is to check if there was user intervention, check the pricing in order and check what condition types got affected in order and in billing.
If your scenario is still not amongst the above cases...
I don't know what to do, if you figure out please let us also know, god know when we would face the same scenario....
Take care -
Cost in Sales Order and Billing not match
Dear all,
I am facing a problem that the cost in Sales Order and Billing (order-related billing) not match.
The error seems related to sales order is getting moving price (MBEW-VERPR) as cost but billing is calculated by issued amount / qty.
Here's the detail (refer to the screen captures).
Sales qty = 1330 PC.
Local currency = HKD, sales doc currency = RMB, exchange rate = 1.26215.
Condition type ZCSR, condition category = G (Internal price).
When creating sales order ,
Cost is take from MBEW-VERPR => 1.86 HKD
Cost converted to doc currency => 1.473 RMB => 1.47 RMB
Total amount = 1,330 x 1.47 = 1,955.10 RMB
When creating billing from the delivery note,
Cost seems taking from total value divided by total stock in the article doc.
Cost = 2,477.82 / 1,330 = 1.863022556390 HKD => 1.476 RMB => 1.48 RMB.
Total amount = 1330 x [(2,477.82 / 1,330) / 1.26215] = 1,963.17 RMB
My goal is to align the same cost and amount in sales order and billing.
Please help.
Thank you very much.Dear joan,
Thank you very much for your advise.
I implemented example 1 as in note 24832, trying to disable price re-determination in billing.
However it doesn't work.
Added code in example 1:
Copy control Delivery type LF to invoice F2, pricing type changed to X:
Still ZCSR re-determined but not copying from sales order (1.47 RMB): -
How to give the details of delivery and billing on the same row in alv
i want delivery and billing no i.e vbeln and quantity for billing and delivery for category 'J' and 'M' for corresponding sale order
Nothing is displayed while executing only the heading is displayed but in the debugger got the values for all how to solve this issue
Moderator message - Welcome to SCN
Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Edited by: Rob Burbank on Sep 9, 2010 12:13 PMFORM FINALDATA.
LOOP AT ITAB1.
ITABFINAL-VBELN = ITAB1-VBELN.
ITABFINAL-AUDAT = ITAB1-AUDAT.
ITABFINAL-BSTNK = ITAB1-BSTNK.
ITABFINAL-POSNR = ITAB1-POSNR.
ITABFINAL-MATNR = ITAB1-MATNR.
ITABFINAL-KWMENG = ITAB1-KWMENG.
IF ITAB1-VBTYP_N = 'J'.
ITABFINAL-VBELN4 = ITAB1-VBELN2.
ITABFINAL-RFMNG1 = ITAB1-RFMNG.
ENDIF.
IF ITAB1-VBTYP_N = 'M'.
ITABFINAL-VBELN3 = ITAB1-VBELN2.
ITABFINAL-RFMNG2 = ITAB1-RFMNG .
ENDIF.
FORM FILL_FIELDCATALOG.
REFRESH: I_FIELDCAT_ALV[].
PERFORM BUILD_FC USING
'1' 'VBELN' 'ITABFINAL' 'SALES ORDER NO' 'C100'.
PERFORM BUILD_FC USING
'2' 'AUDAT' 'ITABFINAL' 'DATE' 'C200'.
PERFORM BUILD_FC USING
'3' 'BSTNK' 'ITABFINAL' 'Region' 'C300'.
PERFORM BUILD_FC USING
'4' 'POSNR' 'ITABFINAL' 'Site' 'C400'.
PERFORM BUILD_FC USING
'5' 'MATNR' 'ITABFINAL' 'MATERIALNO' 'C500'.
PERFORM BUILD_FC USING
'6' 'KWMENG' 'ITABFINAL' 'ORDER QUANTITY' 'C100'.
PERFORM BUILD_FC USING
'7' 'VBELN2' 'ITABFINAL' 'DELIVERY' 'C200'.
PERFORM BUILD_FC USING
'8' 'RFMNG' 'ITABFINAL' 'ORDERQUAN' 'C400'.
PERFORM BUILD_FC USING
'9' 'VBELN3' 'ITABFINAL' 'BILLING' 'C300'.
PERFORM BUILD_FC USING
'10' 'RFMNG2' 'ITABFINAL' 'DELIVERED QUAN' 'C500'.
ENDFORM. "fill_fieldcatalog -
VD05 - Customer master record blocked for sales orders and billing
Hi,
I have a scenario whereby I have blocked a customer master record for sales orders and billing using transaction VD05, but it still allows you to create sales orders and post billing documents.
What is the reason for this?
Regards
GandiHi,
Block the customer for the sales order, delivery and Billing for the specific sales area in vd05
and try out,
Regards
Pradeep BV. -
How to create Automatic Delivery and Billing documents immediate
Hello,
I want to create Automatic delivery and billing documnets immediate once I create a sales order.
E.g I need to see in the Status Bar the delivery and billing document was created.
Thank you in advance
Your help is highly appreciated
AlfaidPlease search in sales forum. Many times this was discussed there.
thanks
G. Lakshmipathi -
Customer related to Delivery and Billing
Hi Friends,
I needs to know how to restrict the delivery and billinghas to happen in the particular day and particular time.
ex: for customer XYZ we have to do delivery and billing on every Monday at 20.00 PM only, it wont get permitted to create for other days.
Please suggest how to go further.
thanks
raju.Dear Raju
U can achieve this by assigning customized Factory Calender in Invoicing Dates field in Billing tab in Sales Area Data in Customer Master Data.
Hope this helps u.
It is observed from your previous threads that u r not giving pts to answers solving your queries.
Please note that by awarding points u will motivate people to answer the queries more seriously and u will also gain points for the same.
Edited by: K.sachin on Oct 18, 2008 6:45 PM
Maybe you are looking for
-
So I'm editing a little photo montage using a little under 500 photos. I'm not sure this is possible (I know that DVDSP can do it), but is there any way final cut can show which clips are currently being used in a timeline? It would be so helpful whe
-
I moved all my photos from iphoto to an external hard drive, but I am still getting the "low space message" when I try to upload more photos to iphoto. How do I free up the disk space in iphoto? I currently have 642.1 MB of free space, but I thought
-
How to count with two char and calculate KF as per the count
Hello All, I have a requirement where I need to display the data as per mentioned below chart. Region is on the row side, Vendor, Material and Value on column side. I need to show Number of Vendor belongs to Global,Regional and local, Similarl
-
My apple id is not registering. I lost my ipod..
my apple id is not registering. I lost my ipod????
-
Every time I download a new song itunes creates a new folder, why?
Its doing my head in, I have so much music & it creates more problems for me with regards to house keeping. Is there a solution? I just need one folder where all my downloads go then I can sort it from there. Thanks