Tables for archived sales order data
Hi,
ABAP Gurus would like to know in which tables will I be able to see data of archived sales orders (it is not VBAK)
Any help would be greatly appreciated.
Thanks in advance.
Mick
Hi,
If I am understanding correctly, your system has data archiving implemented.
If that's the case then there is no table which will store archived sales order.
For that you need to go to T.Code SARA.
Choose object name SD_VBAK.
Click on READ.
This will show a screen giving a name of program and option to execute in background or foreground.
This is how you can retrieve the info about archived Sales Order.
Hope this helps
Regards
Nishant
Message was edited by:
Nishant Rustagi
Similar Messages
-
Select aentries from table Z-Table for all sales order line items
Hi friends,
can anyone please explain me about the "Select entries from table Z-Table for all sales order line items".
Thanks.Moderator message - Welcome to SCN.
But
Moderator message - Please search before asking. Press F1 on SELECT and look at the FOR ALL ENTRIES addition. - post locked
Rob -
How to retrieve the ARCHIVED Sales order data
Hi All,
When issuing the output for the delivery, it is giving an error saying 'Sales Order XXXX does not exist' due to which the prices in the output were displayed as '0'. Reason for this can be that 'the order might have been archived'.
My requirement is,
1. If Sales Order doesnu2019t exist in data base then need to check if Sales order exists in archive data base.
2. If yes, take needed data from archive data base tables to calculate price. The logic of price calculation should be the same as for not archived Sales Orders.
Can anyone help me on this..?
Please tell me how to check whether the Sales order exists in the Archived database. Please share the table names(sample logic if possible) sothat I can use them in the report logic.
Please tell me how to pull the data from the archive database tables to calculate the price.
Thank you in advance.
Thanks & Regards,
Paddu.
Edited by: Paddu K on Feb 23, 2009 3:42 PM*& Form get_archive_data
* Fetch Archive Data
FORM get_archive_data .
CLEAR: g_read_handle, g_commit_cnt,
g_read_cnt, g_reload_cnt,it_rel_tab,it_bseg_a,it_bkpf_a,
it_bset_a, gt_result.
REFRESH: it_rel_tab[],it_bseg_a[],it_bkpf_a[],
it_bset_a[], gt_result[].
*Populating selection screen fields to field-symbols
PERFORM build_fs_select_options.
*Call FM as_api_read FI Data
CALL FUNCTION 'AS_API_READ'
EXPORTING
i_fieldcat = 'SAP_FI_DOC_002'
i_selections = ft_selections[]
* I_OBLIGATORY_FIELDS =
* I_MAXROWS =
IMPORTING
e_result = gt_result[]
EXCEPTIONS
parameters_invalid = 1
no_infostruc_found = 2
field_missing_in_fieldcat = 3
OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF NOT gt_result[] IS INITIAL.
*Sorting by KEY and Offset
SORT gt_result BY archivekey archiveofs.
*To delete duplicates
DELETE ADJACENT DUPLICATES FROM gt_result COMPARING archivekey
archiveofs.
*looping the internal table
LOOP AT gt_result.
*Get read handle for object
CALL FUNCTION 'ARCHIVE_READ_OBJECT'
EXPORTING
object = 'FI_DOCUMNT'
archivkey = gt_result-archivekey
offset = gt_result-archiveofs
IMPORTING
archive_handle = g_read_handle
EXCEPTIONS
OTHERS = 1.
IF NOT sy-subrc IS INITIAL.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
IF sy-subrc = 0.
*Get Acoounting Document details
PERFORM object_read_opened
TABLES it_rel_tab
it_bseg_a
it_bkpf_a
* it_bset_a
* it_bsik_a
* it_bsak_a
it_bsid_a
it_bsad_a
* it_bsec_a
USING g_read_handle
l_archobj
g_commit_cnt
g_read_cnt
g_reload_cnt
ENDIF.
*close the file.
CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
EXPORTING
archive_handle = g_read_handle
EXCEPTIONS
internal_error = 1
wrong_access_to_archive = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i004." 'Unable to close archive session'.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
MESSAGE i000 WITH 'No data found for Archived data'(095).
EXIT.
ENDIF.
*Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
IF NOT it_bkpf_a[] IS INITIAL.
SORT it_bkpf_a BY belnr.
DELETE ADJACENT DUPLICATES FROM it_bkpf_a COMPARING belnr.
DELETE it_bkpf_a WHERE budat GT p_budat. "#ECDK902206
ENDIF.
*Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
IF it_bkpf_a[] IS INITIAL.
MESSAGE i000 WITH 'No data found for Archived data'(095).
ENDIF.
*End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
IF NOT it_bseg_a[] IS INITIAL.
SORT it_bseg_a BY belnr gjahr buzei.
DELETE ADJACENT DUPLICATES FROM it_bseg_a COMPARING
belnr gjahr buzei.
ENDIF.
*End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
ENDFORM. " get_archive_data
*& Form build_fs_select_options
FORM build_fs_select_options .
REFRESH: ft_selections.
*Comapny code
APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
<fw_selections>-fieldname = 'BUKRS'.
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_bukrs TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
*Customer
APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
<fw_selections>-fieldname = 'KUNNR'.
LOOP AT s_kunnr.
APPEND INITIAL LINE TO <fw_selections>-selopt_t
ASSIGNING <lw_selopt>.
MOVE-CORRESPONDING s_kunnr TO <lw_selopt>.
ENDLOOP.
*Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
**Customer Group
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'KTOKD'.
* loop at s_ktokd.
* append initial line to <fw_selections>-selopt_t
* assigning <lw_selopt>.
* move-corresponding s_ktokd to <lw_selopt>.
* endloop.
*End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
*Profit Center
APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
<fw_selections>-fieldname = 'PRCTR'.
LOOP AT s_prctr.
APPEND INITIAL LINE TO <fw_selections>-selopt_t
ASSIGNING <lw_selopt>.
MOVE-CORRESPONDING s_prctr TO <lw_selopt>.
ENDLOOP.
*Commented #ECDK902210
**Key Date
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'BUDAT'.
* append initial line to <fw_selections>-selopt_t assigning <lw_selopt>
* move p_budat to <lw_selopt>-low.
* move 'I' to <lw_selopt>-sign.
* move 'EQ' to <lw_selopt>-option.
*Aging Period1
APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
<fw_selections>-fieldname = 'ANZTA'.
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_ag1 TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
*Aging Period2
*Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'ANZTA'.
*End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_ag2 TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
*Aging Period3
*Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'ANZTA'.
*End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_ag3 TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
*Aging Period4
*Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'ANZTA'.
*End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_ag4 TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
*Aging Period5
*Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
* append initial line to ft_selections assigning <fw_selections>.
* <fw_selections>-fieldname = 'ANZTA'.
*End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
MOVE p_ag5 TO <lw_selopt>-low.
MOVE 'I' TO <lw_selopt>-sign.
MOVE 'EQ' TO <lw_selopt>-option.
ENDFORM. " build_fs_select_options
*& Form object_read_opened
* To Fetch Arichive Data
FORM object_read_opened TABLES it_rel_tab
it_bseg_a
it_bkpf_a
* it_bset_a
* it_bsik_a
* it_bsak_a
it_bsid_a
it_bsad_a
* it_bsec_a
USING value(g_read_handle) LIKE sy-tabix
value(l_archobj) LIKE arch_def-object
value(g_commit_cnt) LIKE arch_usr-arch_comit
g_read_cnt TYPE i
g_reload_cnt TYPE i.
DATA: BEGIN OF table_wa ,
table LIKE arch_stat-tabname,
END OF table_wa.
DATA: lit_data(2048) TYPE c OCCURS 1 WITH HEADER LINE.
DATA: l_structure LIKE arch_stat-tabname,
l_lin TYPE i.
CLEAR: it_table_org1,lit_struc,it_table_org2,table_wa,it_rel_tab.
REFRESH: it_table_org1[],lit_struc[],it_table_org2[],it_rel_tab[].
CLEAR: g_duprec,g_read_cnt,g_reload_cnt,g_object_cnt.
*Read data from the infostructure
DO.
ADD 1 TO g_object_cnt.
CLEAR l_structure.
CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'
EXPORTING
archive_handle = g_read_handle
IMPORTING
record = lit_data
* RECORD_CURSOR =
* RECORD_FLAGS =
record_structure = l_structure
* RECORD_LENGTH =
* RECORD_REF =
EXCEPTIONS
end_of_object = 1
internal_error = 2
wrong_access_to_archive = 3
OTHERS = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
EXIT.
ENDIF.
IF NOT l_structure IS INITIAL.
table_wa-table = l_structure.
APPEND table_wa TO it_rel_tab.
ENDIF.
APPEND lit_data.
CLEAR l_lin.
FIELD-SYMBOLS: <fs_struc> TYPE c.
CASE l_structure.
*BKPF data
WHEN 'BKPF'.
ASSIGN it_bkpf_a TO <fs_struc> CASTING.
<fs_struc> = lit_data.
APPEND it_bkpf_a.
*BSID data
WHEN 'BSID'.
ASSIGN it_bsid_a TO <fs_struc> CASTING.
<fs_struc> = lit_data.
APPEND it_bsid_a.
*BSAD data
WHEN 'BSAD'.
ASSIGN it_bsad_a TO <fs_struc> CASTING.
<fs_struc> = lit_data.
APPEND it_bsad_a.
*BSEG data
WHEN 'BSEG'.
ASSIGN it_bseg_a TO <fs_struc> CASTING.
<fs_struc> = lit_data.
APPEND it_bseg_a.
ENDCASE.
REFRESH lit_data.
CLEAR g_object_cnt.
ENDDO.
ENDFORM. " object_read_opened
*& Form get_bsid_bsad_archive_data
*If Exclude Spl. GL Trnasaction is initial get BSID BSAD Archive data *
FORM get_bsid_bsad_archive_data .
*Work Area
DATA: wa_bsid TYPE type_bsid.
*Reading BSAD Archive internal table
* loop at it_bsad_a where bukrs eq p_bukrs
*Start of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
*Commented by GTHATIKONDA on 10/17/2008 #ECDK902204
LOOP AT it_bkpf_a WHERE bukrs = p_bukrs AND
budat LE p_budat. "#ECDK902206
*End of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
LOOP AT it_bseg_a WHERE bukrs EQ p_bukrs AND
belnr EQ it_bkpf_a-belnr AND
gjahr EQ it_bkpf_a-gjahr AND
augdt GT p_budat AND
* koart eq 'D' and
kunnr IN s_kunnr AND
prctr IN s_prctr.
*Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
* loop at it_bkpf_a where budat le p_budat."#ECDK902206
*Move corresponding fiels
MOVE-CORRESPONDING it_bseg_a TO wa_bsid.
wa_bsid-blart = it_bkpf_a-blart.
wa_bsid-budat = it_bkpf_a-budat.
wa_bsid-bldat = it_bkpf_a-bldat.
APPEND wa_bsid TO i_bsad.
CLEAR wa_bsid.
ENDLOOP.
ENDLOOP.
IF NOT i_bsad[] IS INITIAL.
APPEND LINES OF i_bsad TO i_bsid.
ENDIF.
*Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
IF NOT i_bsid[] IS INITIAL.
SORT i_bsid BY belnr.
*Commenting this logic by GTATIKONDA on 10/31/2008 #ECDK902245
* delete adjacent duplicates from i_bsid comparing belnr.
ENDIF.
*End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
ENDFORM. " get_bsid_bsad_archive_data
*Reading BSAD Archive internal table
* loop at it_bsad_a where bukrs eq p_bukrs
*Start of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
*Commented by GTHATIKONDA on 10/17/2008 #ECDK902204
LOOP AT it_bkpf_a WHERE bukrs = p_bukrs AND "#ECDK902206
budat LE p_budat.
*End of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
LOOP AT it_bseg_a WHERE bukrs EQ p_bukrs AND
belnr EQ it_bkpf_a-belnr AND
gjahr EQ it_bkpf_a-gjahr AND
kunnr IN s_kunnr AND
umskz EQ space AND
augdt GT p_budat AND
prctr IN s_prctr.
*Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
* loop at it_bkpf_a where budat le p_budat. "#ECDK902206
*Move corresponding fiels
MOVE-CORRESPONDING it_bseg_a TO wa_bsid.
wa_bsid-blart = it_bkpf_a-blart.
wa_bsid-budat = it_bkpf_a-budat.
wa_bsid-bldat = it_bkpf_a-bldat.
APPEND wa_bsid TO i_bsad.
CLEAR wa_bsid.
ENDLOOP.
ENDLOOP.
IF NOT i_bsad[] IS INITIAL.
APPEND LINES OF i_bsad TO i_bsid.
ENDIF. -
Table for Open Sales Order Quantity
Hi
After creation of partial deliveries for a Sales Order , in which table open Sales Order quantities will be stored?
We are using in Material Master Avilablity check as 'KP- No check'.
in VBBE & VBBS table no data is there
where it will store can any plz guide me
PrasadHi prasad
1st of all as you are using KP no check availability check doesn't happen.
Check , VBEP table which is sales doc schedule lines and ,VBEH table is for schedule line history.
check in VBFA table sales doc flow
Hope these table will help you
Regards
Srianth -
Exit for Moving sales order data to Purchase order
Hi All,
I have a requirement where sales order data needs to transferred to Purchase Order.
We have few custom fields in EKKO table YY SHIP_DATE, YYMOL etc....When a sales order 3rd party is created a PR is automatically created.Based on this PR(Purchase Requistion) we are creating a PO(Purchase Order) and the custom fields needs to be populated from the sales order.
I have checked the Exit V45E0001 Update the purchase order from the sales order.Its of no use for us as all our fields are custom fields..Please help..
Thanks.Hi,
>>>,if an error occurs while creating purchase order in ecc6.0
one very easy and all standard
set up workflow in receiver ECC and put a user group in WE20 for this logical system that receiver the sales orders
then in standard when there is an error with IDOC in the inbound
a mail will be send to the user group (and you can put as many users in this group as you wish) and they will all receive this error
this would be the easiest idea and all in standard
Regards,
Michal Krawczyk -
How can we read archived sales order data?
Hi there,
We need information about sales orders, which are already archived (e.g. VBAK, VBAP).
How can we read these data from archive?
Do you know the necessary function modules?
Thanks a lot for help.Hi,
The main transactions that provide access to sales orders data are the following:
VA03 Display Sales Order
ALO1 Document Relationship Browser
Other:
KABP Controlling Documents: Plan
KSB5 Controlling Documents: Actual
KVBI Sales Documents: Actual Line Items
Standard Reports:
S3VBAKAU: Program for sequential reading of archived sales documents
If at least one of the archiving information structures SAP_DRB_VBAK_01- SAP_DRB_VBAK_02 is active, I suggest to use the transaction ALO1.
More info can be found at:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/19/68c149815cfa4997525e0e7d7509bf/content.htm]
Regards,
Andrea -
Table For Open Sales Order And Customer Invoices
Dear Gurus,
Are there any table to know open Sales orders and pending invoices for Customers?
Wishes,
AbhishekHi,
Go to T code VA05 and select open sales order radio button. Put other input parameters like date range or sold to . Execute you shal get list of all open sales order.
For pending invoices go to T code VL04 and you get list of all billing not yet created even though GI is done.
These are standard SAP functionality and can be used rather than looking in a table level.
Regards
Vivek -
hi all,
i want to take open sale order in my report coming in tcode VA05, so can anyone please tell me from which table can i get it?
regards saurabh.Hii,
not sure but check in this table
check the table VBBE, it stores open items in the order. VBUP gives the details of the line tiems in the order.
VBBE for open orders and for G/L Account, you can consider tables like BSAD, BSID, BSIS.
regards,
Archana -
Archive sales order BOM for archived sales order.
hi,
i have a very strange situation.
i have few sales order BOMS to archive, we have VC (variant config) in place.
now while trying to archive the BOMS i get the error message that "the sales order doesn't exists in the database or archived".
i checked in the SD tables, and it seems that sales orders are archived. now how to archive those order BOMS????
kindly give your inputs.
Best regards,
MaulinHi Mr. Maulinmunshi,
As per my understanding, you can't archive the BOMs with making the sales order visible in system.
Try to check the order in T-code SARI.
Talk to your basis team and get back those sales order in the system
Hope this helps.
Regards,
MT -
EXIT_SAPLVEDA_001 for transferring Sales order data
Hello, i have enhanced tables VBAK and VBAP for containing Z* fields. The field and the value will be transferred in the idoc ORDERS05 segment E1EDK35.
at header level:
E1EDK35-CUSADD will contain the name of the field(e.g ZFIELD)
E1EDK35-CUSADD_BEZ will contain the value of the fields (e.g 500)..
at item level
E1EDP01 -> E1EDP35-CUSADD will contain the name of the field(e.g ZFIELD)
E1EDP35-CUSADD_BEZ will contain the value of the fields (e.g 100).
I have to use the EXIT_SAPLVEDA_001 for transferring the values of the new fields.
Which logic should i apply so that the data gets transferred to VBAK/VBAP.
So far for header data:
IF SEGMENT-SEGNAM = 'E1EDK35'.
S_VBAK = SEGMENT-SDATA.
IF S_VBAK-CUSADD = 'ZFIELD1'.
DXVBAK-ZFIELD1 = S_VBAK-CUSADD_BEZ.
ENDIF.Hello, i have enhanced tables VBAK and VBAP for containing Z* fields. The field and the value will be transferred in the idoc ORDERS05 segment E1EDK35.
at header level:
E1EDK35-CUSADD will contain the name of the field(e.g ZFIELD)
E1EDK35-CUSADD_BEZ will contain the value of the fields (e.g 500)..
at item level
E1EDP01 -> E1EDP35-CUSADD will contain the name of the field(e.g ZFIELD)
E1EDP35-CUSADD_BEZ will contain the value of the fields (e.g 100).
I have to use the EXIT_SAPLVEDA_001 for transferring the values of the new fields.
Which logic should i apply so that the data gets transferred to VBAK/VBAP.
So far for header data:
IF SEGMENT-SEGNAM = 'E1EDK35'.
S_VBAK = SEGMENT-SDATA.
IF S_VBAK-CUSADD = 'ZFIELD1'.
DXVBAK-ZFIELD1 = S_VBAK-CUSADD_BEZ.
ENDIF. -
Report for viewing Sales order no against delivery date & actual GI date
Hi Experts,
Is there any report for viewing Sales order no against delivery date & *actual GI date*
Because in VL06F , i can only able to get planned GI.
Please guide regarding the same where i can get 'ACTUAL GI DATE ' against above combination .
Regards,
Sujit S.dear Hrishi,
i followed your suggestion, but couldn't get desired results,
here i can get planned GI date, where i wanted to get Actual GI date for complted deliveries,
thanks for your valuable reply.
@ G. Lakshmipathi ;-
i think i will need to develop z-report for fetching the data from the tables
VBAK (to get sale order reference) and
LIKP (to get delivery and actual GI date)
thanks for your reply,
Regards,
Sujit -
For a Sales order, what is Actual Delivery Date to Customer?
Hi Experts,
I am an ABAP consultant. In a particular report, for a Sales order I am asked to display:
‘Delivery Create Date (LIKP-ERDAT)’,
‘PGI Date’,
‘Requested Delivery Date (VBAK-VDATU)’ and
‘Actual Delivery Date to Customer’.
And in addition, I also have to show:
‘No: of days between Order Create Date to Delivery Create Date’,
‘No: of days between Delivery Create Date to PGI Date’,
‘No: of days between Requested Delivery Date to Actual Ship Date’ and
‘No: of days between Order Create Date to Actual Ship Date’.
I’ve searched SCN for similar questions but I couldn’t get clarity. I’ll be very grateful if somebody can explain me how to find the ‘Actual delivery date to customer’ and what is the difference between this date and ‘Billing date’. Also, please explain, the difference between ‘Delivery Create Date’ & ‘PGI’?Hi Rashmith,
It seems the report is related to delivery. Below is the explanation for the different terms you mentioned in your question.
Delivery Create Date (LIKP-ERDAT)---- when a delivery is created with or without reference of an order system writes the date of creation time of creation and created by in the header data. Creation of delivery does not means that goods are dispatched. There are many steps further after a delivery is created before goods are dispatched. For example I have created an order, created delivery on 01.01.2014; delivery date will always be 01.01.2014.
PGI Date (LIKP-WADAT_IST)------ Post goods issue date is the date on which goods move out of the company to carrier. This is the last step of delivery. When delivery is created system derives different dates of planning; at this stage it will determine the planned PGI date (LIKP-WADAT) and when actual PGI happens system writes the date in LIKP-WADAT_IST which is actual goods issue date.
Requested delivery date (VBAK-VDATU)------When order is created for a customer he asks for a material, a quantity and a date on which he wants the goods. This date on which customer wants the goods is called requested delivery date. Based on the requested delivery date system will check feasibility of delivering the goods on the requested delivery date based on the delivery scheduling.
You can get the RDD based on the below logic.
Input the delivery number in VBFA-VBELN and VBFA-VBTYP_V and get VBFA-VBELV.
Input VBFA-VBELV in VBAK table and get the value of VDATU.
Actual Delivery Date to Customer-----Actual delivery date is Actual post goods issue date (LIKP-WADAT_IST). This is the date on which goods are issued to the customer and customer is liable for billing for the goods dispatched.
Difference between the Actual delivery date (Actual goods issue date) and billing date.
Normally as per standard SAP, once goods are moved out of the company customer is liable to be for billing for the goods dispatched. So by default in standard SAP system copies the actual goods issue date (LIKP-WADAT_IST) as billing date (VBRK-FKDAT) irrespective of the date of creation of the invoice (If delivery is goods issued on 01.01.2014 and billing document/invoice is created today i.e. 14.04.2014, system by default will take 01.01.2014 as billing date). And this is the correct practice.
However if you want the current date as the invoice creation date instead of the actual goods issue date we can control it by copy controls feature given in SAP.
So based on the copy controls setting, it may be different from the actual goods issue date/ actual delivery date. -
BAPI for Create PO from Sales Order Data and POST GR from PO created
Dear,
Can u help me how to create BAPI for Purchase Order creation from sales order Data
what the bapi to Post GR from the PO created.
Regards,
ManojHello Manoj what you have to do to create PO from PR is that
1) Use BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
2) Use BAPI_REQUISITION_GETDETAIL to get PR items
3) Use BAPI_PO_CREATE1 to craete PO from PR then.
to create goods movement you can use
BAPI_GOODSMVT_CREATE
REWARDS IF USEFUL. -
Data Validation for SD Sales order and Deliveries
Hello All,
We activated the data flow for SD sales Order and Deliveries for Infocubes 0sd_co4 and 0sd_c05 and there correspoding datasources.
I have 2 queries
1. How to validate data for BI SD sales order with ECC.
2. How to validate data for BI SD Deliveries data with ECC.
Kindly help, <removed by moderator>.
Thanks,
Rakesh.
Edited by: Siegfried Szameitat on Jun 21, 2011 12:51 PMHi Rakesh,
You have to check the tables in R3 and then compare with the Datasources in BW.
For Examples
VBAK table in R3 for Sales Order on BW-2LIS_11_VAITM
VBRK table in R3 for Billing iin BW-2LS_13*
Check for that day how many sales order were there in VBAK table and there in BW.
Rgds
SVU123
Edited by: svu123 on Jun 21, 2011 8:19 PM -
SAP Tables for Open Customer Orders and Sales History
Dear Experts.
I am looking to get SAP SD related tables for the following,
1) SAP tables for Open Customer Orders
From SAP, I need to get all tables that Contain all open customer orders for products.
2) Sales History
From SAP, I need to get all tables that contain the previous month's sales history (shipped customer orders).
Please Help!!hi
check the following link
http://www.erpgenie.com/abap/tables_sd.htm
hope it will help you
regards,
sreelatha gullapalli
Maybe you are looking for
-
Date vs. Day of the week
Maybe I am dense, but I can't figure out a way to set my calendar for a meeting the first MONDAY of each month without doing it manually 12 times. Suggestions? Thanks!
-
APEX,PDF's, BI Publisher and SQL Query returning SQL code..
I don't know if I should be posting this in this Forum or the BI Publisher forum, so I am posting in BOTH forums.. I love APEX, let me say that first.. And appreciate the support offered here by the group, but am running int a confusing issue when BI
-
Responsive design project not working in Opera or Chrome
My Captivate project in responsive design is only previewing in Internet Explorer. I have also uploaded the projects to my server and am having the same problem. Why is this?
-
Energy Saver - Put Monitor to Sleep
I don't know if this has always been the case, but I noticed my iMac 20" display doesn't go to sleep.. I have it set for 25min ( Screen Saver at 15 ) .. I've fooled with it a few times.. nothing.. Could a program I have running be over-riding it ? (
-
COPA account based extractor (Bill type field FKART) missing
Hello Experts, I am new to COPA and currently working on account based COPA DataSource on ECC 6.0 & BI 7.0. I have created the DataSource in KEB0 for account based by selecting the appropriate operating concern. One of the field requirements for me i