Standard programme for sales document flow
hi
Can any one tell me what is the standard report for complete slaes document flow
Thanks
Alka
Hi,
There is a standard FM:
CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
EXPORTING
COMWA = comwa
TABLES
VBFA_TAB = VBFA_TAB
EXCEPTIONS
NO_VBFA = 1
NO_VBUK_FOUND = 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.
* Get PGI Document
clear w_pgi_document.
loop at vbfa_tab where vbtyp_n = 'R'.
w_pgi_document = vbfa_tab-vbeln.
Endloop.
* Get INV Document
clear w_inv_document.
loop at vbfa_tab where vbtyp_n = 'M'.
w_inv_document = vbfa_tab-vbeln.
Endloop.
* Get a/c Document
clear w_ac_document.
loop at vbfa_tab where vbtyp_n = '+'.
w_ac_document = vbfa_tab-vbeln.
Endloop.
I hope this helps,
Regards
Raju Chitale
Edited by: Matt on Dec 12, 2008 8:35 AM - Please use tags around your code. See how much better it looks!
Similar Messages
-
Output programme form e-mail medium for sales document header
what is standard programme we have to assign for output condition (BA00 )for medium e-mail for sales document header.
Hi Friend,
Plaese try with RSNASTSO it can be helpful.
Regards
Krishnendu -
Document flow for sales document
It is possible NOT update the document flow when i create sales document with reference to onther sales document?
Thanks.When you don't want to have a relationship between to doc and want use only for reference then you can use - Dynamic Product Proposal or simply, user can refer the items from existing doc (to do this in sales order overview screen, press CRTL+F11, explore the option-easy without config )
A product proposal is a list of products for a specific customer that is automatically proposed during sales document processing. You can decide for yourself which materials should be displayed as product proposals in the sales document. You can also determine the sequence in which the materials appear in the product proposal.
During sales document processing, the system displays a product proposal in the item overview according to the customer and the business transaction. It displays the material number, material description, and historical order quantites in the sales unit last used. To use a material again, you just have to copy it. The system does not run the standard checks (pricing, availability, incompletion, material determination, free goods determination and so on) until you have entered the order quantities.
The product proposal is both an entry help and an aid to sales support and promotions. It is particularly useful in Telesales, where the employee automatically receives a display of all the materials that are of interest to a particular customer. This helps them to provide appropriate advice to the customer quickly and easily. The sales document history enables you to analyse the purchasing behaviour of a customer and recognize early on if it changes, for instance, when the customer suddenly stops ordering a product.
The product proposal differs to cross-selling in that it is dependent on the customer and sales area, and is displayed in the sales document as soon as you have entered a customer. Cross-selling, on the other hand, is triggered by a material. In other words, the system proposes cross-selling materials according to the material or a characteristic of the material you have entered.
You can determine the product proposal from different data sources:
-Order history
-Listed materials
-Excluded materials
-Item proposal
-Customer-material info records
-Customer-specific data sources
You can combine materials from these data sources to create a product proposal. The system then accesses the data sources either online or in the background.
To define a product proposal for sales document processing, you must carry out the following activities in Customizing:
-Define customer procedure for product proposal
-Define document procedure for product proposal
-Assign document procedure for product proposal to order types
-Maintain table of origin for product proposal
-Define product proposal procedure and determine access sequences
-Maintain procedure determination (in background) for product proposal
-Maintain procedure determination (online) for product proposal
The product proposal procedure determines how the system displays the product proposal in the sales document. For instance, if the system has accessed the order history, it determines how many columns should be displayed in the sales document, in which period intervals thehistoric order quantities should be displayed (for instance, day, week, or month), and most importantly, the sequence in which the system should access the data sources (for example, order history, listing, exclusion).
The product proposal procedure depends on the:
- Customer determination procedure
The customer procedure determines which product proposal procedure the system automatically uses when you create a sales document for a particular customer. It is specified in the customer master record per sales area.
- Document determination procedure
The document procedure determines which product proposal procedure the system automatically uses for a certain document type. The document procedure is stored as a key in the header for the sales document type.
If you use online processing, the product proposal procedure is determined according to the customer and document determination procedures.
If you use background processing, the product proposal procedure is determined according to the sales area in the customer master and the customer determination procedure. It does not use the document determination procedure because the document type is not recognized in background processing
Hope this can assist.
Thanks & Regards
JP -
Archiving Objects for sales docuements in document flow
i want to be able to from the sales document flow ,i.e sales order, billling document be able to find the arciving objects? were do i need to look to find the archving objects?
cheersHi,
Try with report S3VBAKAU. You can check it in tcode AOBJ for object SD_VBAK.
Regards,
Eduardo -
Standard smartform and print program for sales document
HI All,
Is there a standard smartform and print program for sales document or sales order. If someone has worked with it do reply.Hi Shashank,
What exactly you would like to print for Sales Orders in Smartforms..?
regards,
Ram. -
Post order processing for sales document is not yet complete
hi,
sap gurus,
i am facing the error while saving the sales order and this ticket is unique and it is saying that
"post order processing for sales document is not yet complete".
please help me in this regard.
and it is blocking the order for further processing.
regards,
balajitI dont think this is a standard error message. Some exit is applied for sale order to meet some requirements. You need to check with your ABAPer.
In fact, you can conclude yourself based on the error message number. If it starts with Z, then the above holds good.
thanks
G. Lakshmipathi -
Path for sales document characteristics value
Hi,
Can any one please let me know the path for Sales document's characteristics value. Please tell me the screen flow from a sales order to it's class type and characteristics value.
Thanks,
KuntalChoose the line item and Select "Configuration". Hope this helps.
Thanks,
Balaji -
Billing Type for Sales Document
Hi,
I am trying to create Sales Order from WEB UI(CRM 7.0). I need to enter billing type this sales document. But, I am not able to find this Field neither in CRM WEB UI nor VA02.
Can you please tell me, how can I enter billing type for Sales document or change Billing type for sales document.
Thanks,
SandeepHi Sandeep,
sounds like you refer to the ERP Sales Order in the CRM WebClient UI? Not sure whether the billing type is available in the standard, but are you aware of the enhancements concepts of the LORD (see SAP note 1224179)? In addition, you should use the AET as outlined in the FAQ note 1446253.
Best Regards,
Michael -
Sales document flow(vbfa) entries are deleted
Hi Guys,
I am facing a problem with VBFA table. Actually for some delivery i am able to get Sales order number from VBFA table but for some delivery there is no records exists in VBFA table. So just want to know is there any program or Funtion module which delete entries from VBFA table if not then is there any functional configuration which not allowed to enter data in VBFA table. In my system i searched for all the programs and function module but no luck.
I can saw the Sales document flow in VL03N but no entries in VBFA table.
thanks,
BaidyaHi Guys,
Thanks for the replies.
But this is true for some delivery there is no entries in VBFA table but entries are exist in LIKP and LIPS. We are using userexit in sales order program for creating delivery. The Function module which creates delivery inside the USER-EXIT is : BAPI_OUTB_DELIVERY_CREATE_SLS.
If anyone face this type of problem please reply..
Thanks,
Baidya -
Sales document flow table VBFA
Hi All,
What exactly the meaning of sales document flow how the data in table VBFA is filled I mean from which Tcodes this table data will be filled?
I am calculating the open quantity of a particular sales document which the data (quantity delivered vbfa-rfmng ) I have to take from table VBFA and subtract this from the order quantity(vbap-kwmeng).
Thanks&Regards
MaheshUse SE16 see the fields of VBFA.
Normally the sales document flow is SALES ORDER -> DELIVERY-> INVOICE.
For a particular case it can be
SO -> Del -> PGI -> Inv -> SO (Return) -> PGR -> Inv (RE-Type) and so on.
If we know the document no of any one of them thru VBFA we can get the precceding and the following document.
Thanks,
Ashish -
Material to be block for sales document
Hi Experts,
A requirement has come up from client side in which he wants me to stop users from creating exchange sales orders for 4 materials. Users should be able to create normal sales order with these materials. Is there any way in SAP to make this setting? 4 Materials banned for exchange order. But not for normal order. Please guide.
Chetan Barokar.hello, friend.
ravi has given you the direction. just to add... you also have the option of defining your own Exclusion condition type and access sequence (which contains the field for sales document type).
another way is to activate exclusion in the relevant sales order type using OV04 (configuration) and for sales order types where exclusion should not take place, you can just leave the activation blank.
of course, in standard you maintain exclusions per customer using t-code VB01. if you wish to maintain records using other combination keys, you must define your own access sequence.
the configuration path is IMG > SD > Basic Functions. look for Listing/Exclusion. everything for configuration you will find there. -
How to Find preceeding Document for sales document
Hi,
Please let me know how to find preceding or subsequent document for sales document.
Thanks,
Mahdukar.Hi,
For individual document you can go to VA03 ,Vl03n, va02 or vl02n, vf03 or vf02 and click on document flow.
Also you can find the details of preceding document for all the sales documents in the single table VBFA. Tcode -se11 or se16 or se16n.
HOpe this will resolve your query.
Regards,
Krishna O -
Function Module to Generate Outbound IDOC for Sales Documents
Hello Experts,
Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents. Some of the fm's I have come across are the following:
IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
Points will be given for any help provided.
Thanks in advance.Hi Nagaraj,
I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order. For everyone's reference here is the code:
form process_data.
DATA v_idoc TYPE edidc-docnum.
DATA i_edidd TYPE TABLE OF edidd.
DATA wa_idoc_ctrl TYPE edidc.
LOOP AT i_nast INTO wa_nast.
CLEAR i_msgs[].
CALL FUNCTION 'WFMC_PROTOCOL_GET'
EXPORTING
cps_nast = wa_nast
tables
messages = i_msgs
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
*--- Check first if there is an IDOC
IF wa_msgs-msgv1 IS INITIAL.
CONTINUE.
ENDIF.
v_idoc = wa_msgs-msgv1.
CLEAR i_edidd[].
CLEAR wa_idoc_ctrl.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = v_idoc
IMPORTING
IDOC_CONTROL = wa_idoc_ctrl
* NUMBER_OF_DATA_RECORDS =
* NUMBER_OF_STATUS_RECORDS =
TABLES
* INT_EDIDS =
INT_EDIDD = i_edidd
EXCEPTIONS
* DOCUMENT_NOT_EXIST = 1
* DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
EXPORTING
object = wa_nast
control_record_in = wa_idoc_ctrl
* IMPORTING
* OBJECT_TYPE =
* CONTROL_RECORD_OUT =
tables
int_edidd = i_edidd
* EXCEPTIONS
* ERROR_MESSAGE_RECEIVED = 1
* DATA_NOT_RELEVANT_FOR_SENDING = 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.
COMMIT WORK.
ENDLOOP.
ENDLOOP. -
What is the need of creating partner functions for sales document type.
Hi SAP (SD-GURUS),
Actually we create partner functions before creating customer ex: sold to party, ship to party, bill to party, and payer.
These partner functions are going to be copied into sales order while processing sales order.
Again what is the need of creating partner functions for sales document type.
Thanks&Regards
sreenivas peruruThere are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
Hope this helps...
THanks,
Jignesh Mehta -
Hi Guys,
We have a process where we proccure few parts externally. When a sales order is created in our system based on the item category config we are able to create a purchase requition automatically. This Preq is further used to create a PO based on which the purchasing group proccures the part from the vendor.
We are trying to identify if there is a way to find out a way if we can relate the PO number created in the sales document flow? Currently we are not able to view the PO number in the sales document flow. We are trying to identify if this is possible and if yes what needs to ne configuered to enable PO number linking in sales document flow?
Any pointers?
Cheers
VJHi Bikash,
The PO field which u r referring to on the VA01 screen is the PO number against which a SO is created. This PO number is the customers PO number. My requirement is i need to store the Intercompany PO number which is the PO number created to procure the part externally from the vendor. So its the vendor PO number and not the customer PO number.
Secondly if i try to misuse any other field to store this PO number it dosent make sense as it would not show up in the document flow screen so it would be of no use to us. We want to enable it the std way and i am sure SAP has provided some way to do it.
I check the OSS notes and found some interesting tips working on that hopefully should be able to resolve it.
Cheers
VJ
Maybe you are looking for
-
Hard disk access denied after decryption of bit locker password
i was using Bitlocker as a security purpose for a month but today i was removing the bitlocker password ,while decryption of the Hard disk it stop at 45% and stop there ...after some time i pause the decryption and remove the drive.... when i again i
-
Unable to instantiate GP process from CAF application service
Hi, I am trying to instantiate a process from my CAF application service as follows. IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("7CE44BF090BF11D99817000D60B211F1",user); When the execution reaches this step, I am g
-
Help ! My iTunes library has deletet 3/4 of my songs !!!
It just suddenly happend. I heard on a CD (thatwas copy controlled) and I had the iTunes opend. Suddenly iTunes shuts down and when I click on the desktop icon, it starts "looking for files". When iTunes finally apairs on the screen 2/3 of the songs
-
Step (BackgroundTask) has status "error"
Hi experts, I have created a step in my workflow definition where the status of the document should be changed from "To be approved" into "Open XY". For this step I created a task with bus objekt BUS2000115 CRM Sales Transaction and method Userstatus
-
JavaFX stage crashing on program start, Windows 7 Home Premium, NB 6.9 RC2
Hey all, I'm creating a Java/JavaFX application and have been using an interface to pass data back between the two programs. Upon running the program in NetBeans 6.9 RC2, it sometimes runs but often crashes. I'll post up some code, but I think it is