Tuesday, November 11, 2014

SAP : Difference between VF04 and VF06


As we are aware VF06 uses the program RV60SBAT, but internally the RV60SBAT program calls the SDBILLDL program which represents transaction code VF04, when processed in background.

So the RV60SBAT is like a master program and creates multiple jobs to process in parallel incases where we have high volume of data for invoicing or mainly month end closing.

If we have noticed, when VF06 is executed in the background, you have multiple jobs with something like INVOICE_141111_074352_01_ESSDEV0. This naming rule is within the master program for VF06 which basically is represented as  INVOICE_DATE_TIME_JOB#_APPSERVER. See screen 3.

 Screen 1 : Parallel Processing

a. Number of Jobs: Defines the jobs to be created for background processing.

b. Target Computer: Allows to specify the Application server name to process the jobs 

Screen 2 : SM37 log 


Screen 3 : Calling SDBILLDL within RV60SBAT.


Screen 4 : Naming Convention of the Background job


Screen 5 : List output

a. If the “List Display” is checked, the output log written for each individual job.
b. Else the output log is written to the master program only with the total number of documents processed
 

Other functions of VF06 are like

1. Filter out blocked documents
2. Execute in Test mode
3. Schedule the invoice printing with required date and time for the configuration of the output type.

VF04 can also be processed in background but has be set using SM36 and as usual provide the program name and variant.



Regards,
[V]

Tuesday, November 4, 2014

SAP : Findings on Sales Order BAPI

  1. When trying to create a subsequent order with respect to a preceding sales document (Contract - Order or Quote - Order) using BAPI (BAPI_SALESORDER_CREATEFROMDAT2) the standard SAP Copy control routines will not be triggered.
  2. The contract reference and item reference have to be passed for document flow.
  3. Any logic necessary for copy controls needs to be re-coded before calling the BAPI.
  4. In cases where there are manual item categories are to be determined, the item categories have to be passed to the BAPI based on a pre-determined logic.
  5. The BAPI's determine the Item Categories based on the standard configuration maintained via TCode VOV4 (Table T184).
  6. The BAPI's would call the user-exits, enhancements and pricing routines during the order processing.


 
P.S. : I would add to the list based on my future findings

 
Regards,
[V]