Missing of line items data in Tables
Dear ALL,
While uploading initial inventory data from legacy to SAP by transaction MB1C, some line items were not updated in G/L total table:FAGLFLEXT and G/L line item table:FAGLFLEXA .
Now we want to rectify by inserting the missed data in to the above said tables with the help of abaper .
What we are doing is right ?,if not plz help us as how to come out from this problem.
We doubt,if we insert the data in the tables,it may lead to inconsistency in the data of other tables also.Please clarify.
Thanks in advance
Su
Hi,
Direct uploading the data into tables will make the inconsistency of data in tables.
So,Beterr ask ABAper to do uploading by BDC or LSMW.In logic ask him to check whether data with Header item and line items existted or not .Put the condition if not upload.
Pls. reward if useful...
Similar Messages
-
What is table name in SAP R/3 for PM order line item data
Hello,
I am extracting data for PM module and Interested in PM order line item data. Table AUFK is for PM order header master data.
Is there any other table for PM order line item master data?
Thanks,
IshakHi Ishak,
The item table is AUFP.
Thanks. -
Schedule line item data missing in Purchase order form in ECC6.0
Hi All,
We are doing ECC6.0 upgradation project . I am trying to print Purchase order in ECC6.0 , all data is coming fine in PO except schedule line item data is missing.
Same print program and form works fine in 4.7E but schedule line item data missing in ECC6.0.
Print program is a copy of standard SAP program SAPFM06P and layoutset is a copy of MEDRUCK.
If anyone knows if there is any OSS note for the standard print program or any solution please let me know.
Thanks,
Sonali.Resolved on own.
-
Line item data is not saving while creating a Sales order using Interactive
Hi all,
I am creating a sales order Using Interactive forms. In the form i am having Header data and line item data.I had created two structures one for Header data and one for Line item data. For entering the LINE ITEM DATA i had created a Dynamic table with Buttons ADD ROW and DELETE ROW.
User will Add the Row or Delete the Row based on the requirement.
My issue is When ever the user clicks the SUBMIT button after entering the header data and 3 line items data , Sales order has been created with only first line item and the remaining two line items are not created.
My Interactive form is like below
HEADER DATA
DOC_TYPE
SALES_ORG
DIST_CHN
DIVISION
PURCH_NO
PARTN_ROLE
PART_NO
LINE ITEM DATA
ITEM_NO MATERIAL PLANT QTY COND_TYPE COND_VALUE
ADD ROW
DELETE ROW
SUBMIT
My code for the method ONACTIONCLICK is like below
method ONACTIONCLICK .
data:
Node_Adobe type ref to If_Wd_Context_Node,
Node_Zsaleheader type ref to If_Wd_Context_Node,
Elem_Zsaleheader type ref to If_Wd_Context_Element,
Stru_Zsaleheader type If_Main=>Element_Zsaleheader,
Node_Zsaleitem type ref to If_Wd_Context_Node,
Elem_Zsaleitem type ref to If_Wd_Context_Element,
Stru_Zsaleitem type If_Main=>Element_Zsaleitem.
data: header_data type BAPISDHEAD.
data: item_wa type BAPIITEMIN.
data: item_data type table of BAPIITEMIN.
data: partner_wa type BAPIPARTNR.
data: partner_data type table of BAPIPARTNR.
data: sales_order type BAPIVBELN-VBELN.
data: Errorlog type BAPIRETURN1.
navigate from <CONTEXT> to <ADOBE> via lead selection
Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN=>wdctx_Adobe ).
navigate from <ADOBE> to <Zsaleheader> via lead selection
Node_Zsaleheader = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleheader ).
Node_Zsaleitem = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleitem ).
get element via lead selection
Elem_Zsaleheader = Node_Zsaleheader->get_Element( ).
Elem_Zsaleitem = Node_Zsaleitem->get_Element( ).
get all declared attributes
Elem_Zsaleheader->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleheader ).
header_data-DOC_TYPE = Stru_Zsaleheader-DOC_TYPE.
header_data-SALES_ORG = Stru_Zsaleheader-SALES_ORG.
header_data-DISTR_CHAN = Stru_Zsaleheader-DISTR_CHAN.
header_data-DIVISION = Stru_Zsaleheader-DIVISION.
header_data-PURCH_NO = Stru_Zsaleheader-PURCH_NO.
partner_wa-PARTN_ROLE = Stru_Zsaleheader-PARTN_ROLE.
partner_wa-PARTN_NUMB = Stru_Zsaleheader-PARTN_NUMB.
append partner_wa to partner_data.
Elem_Zsaleitem->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleitem ).
item_wa-ITM_NUMBER = Stru_Zsaleitem-ITM_NUMBER.
item_wa-MATERIAL = Stru_Zsaleitem-MATERIAL.
item_wa-PLANT = Stru_Zsaleitem-PLANT.
item_wa-REQ_QTY = Stru_Zsaleitem-REQ_QTY.
item_wa-COND_TYPE = Stru_Zsaleitem-COND_TYPE.
item_wa-COND_VALUE = Stru_Zsaleitem-COND_VALUE.
append item_wa to item_data.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = header_data
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = sales_order
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = errorlog
TABLES
ORDER_ITEMS_IN = item_data
ORDER_PARTNERS = partner_data
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
endmethod.
PLEASE SUGGEST ME IF ANY CODE CHANGE IS REQUIRED
Thanks in advance
AjayHi,
The item data is not read because, the dynamically added rows should also reflect back to the Web Dynpro context. When the user clicks on Add Row, use the Onsubmit event to add a empty line to internal table and then bind it to the context. And if the user removes a row, remove a row from internal table and bind it back to the context.
You may refer this article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
Regards,
Runal -
Line item data does not appear on all master pages - Adobe forms
Hi Guys,
I have a problem in Adobe forms as explained below-
I have a page in the form which has, you can say, a 2 windows or subforms ( Information window/subfirm on top right corner, main on middle of the page ). The data of the main subform is a line item data of delivery. Some parts of the same data need to be printed on the Information subform also. The main subform can overflow to next pages but the information window will have only very limited data to be printed on one page itself, meaning it does not overflow.
Now the requirement is that each line item should be printed on a new page. For example if there are 2 lines items then first line item should be printed on first page. Then there will be a conditional page break and the next line item will be printed on the next page ( I have achieved this using condition page break). The information window will contain information related to corresponding line items. If the first line item data overflows in main then information window of first line item should be printed on first and 2nd page. The second line item should start printing on 3rd page and information window of 3rd page will contain data of 2nd line item.
I created 1 body page and 1 master page. I created one internal table with data of main window and information window. I put the information window on master page to make it appear on all the pages.
This solution unfortunately does not work. The issue is that in case of overflow, 1st page information window shows first line item. 2nd pages shows 2nd line item and 3rd page is blank whereas ideally 1st and 2nd page information window should show first line item and 3rd page should show 2nd line item. This means that master page and body page are not getting linked. If I create the information window on body page itself, it does not repeat on all the pages. Please provide some inputs to resolve the issue.
Thanks
AbhiHi Abhinav,
I am also trying to solve the similar issue. Need to print the internal table data in the Master page.
Have you resolved this issue. Can you Please share your solution .
Thanks
Swarna. -
Hi,
I have report against FIAR line items data(0FIAR_O03).The purpose is to report at Customer level for aged trail balance amounts(only for charge back amounts).I have the report ready and restricted document type only with CB- charge back.But the problem is,on the R/3 side for some CB accounts,there is a reference amounts like Credit memos or Customer Payments(document type DZ and DG).How can get these refrences into my report when i restrict the report only with CB.So under charge back ammount,the user should be able to see the associated Credit memos and Customer Payments as in R/3.Thanks for the help.
Ravi.Hi Revathi,
Kindly find the answers below :
1.How the table BWOM2_TIMEST will work for delta & what is the selection will happen at BKPF-CPUDT
Basically, BWOM2_TIMEST will show you the Last Time stamp for both Init and Delta..
Whenever you will do an Init load.....automatically an entry will take place in this table.....and you will see a "X" sign in the field "LAst TS"....
Also for Delta...there may be N number of entries with Update mode D....but only for the latest delta you will see a "X" sign in the field "LAst TS"....
With Financial Accounting line items that have been posted in the SAP R/3 system since the last data request, the extractors identify the following delta dataset using the time stamp in the document header (BKPF-CPUDT).
2.How the tbale will wok BWOM_SETTINGS for delta
With these settings your delta extraction uses CPU date of recording records in table in R/3 to define your security interval with at least 1 day
This means that your data is loaded until the actual day - 1.
You can check the SAP note : 485958
Regards,
Debjani.. -
Hi experts,
What is Line Item Data? Can somebody give me an example to understand better the use of Line item data from the reporting prospective?
thanks in advance
regards,
dubbuHi
I think ur question releted to LINE ITEM DIMENSION
Line Item and High Cardinality
Use
When compared to a fact table, dimensions ideally have a small cardinality. However, there is an exception to this rule. For example, there are InfoCubes in which a characteristic document is used, in which case almost every entry in the fact table is assigned to a different document. This means that the dimension (or the associated dimension table) has almost as many entries as the fact table itself. We refer here to a degenerated dimension. In BW 2.0, this was also known as a line item dimension, in which case the characteristic responsible for the high cardinality was seen as a line item. Generally, relational and multi-dimensional database systems have problems to efficiently process such dimensions. You can use the indicators line item and high cardinality to execute the following optimizations:
1. Line item: This means the dimension contains precisely one characteristic. This means that the system does not create a dimension table. Instead, the SID table of the characteristic takes on the role of dimension table. Removing the dimension table has the following advantages:
¡ When loading transaction data, no IDs are generated for the entries in the dimension table. This number range operation can compromise performance precisely in the case where a degenerated dimension is involved.
¡ A table- having a very large cardinality- is removed from the star schema. As a result, the SQL-based queries are simpler. In many cases, the database optimizer can choose better execution plans.
Nevertheless, it also has a disadvantage: A dimension marked as a line item cannot subsequently include additional characteristics. This is only possible with normal dimensions.
2. High cardinality: This means that the dimension is to have a large number of instances (that is, a high cardinality). This information is used to carry out optimizations on a physical level in depending on the database platform. Different index types are used than is normally the case. A general rule is that a dimension has a high cardinality when the number of dimension entries is at least 20% of the fact table entries. If you are unsure, do not select a dimension having high cardinality.
Note: In SAP BW 3.0, the term line item dimension from SAP BW 2.0 must a) have precisely one characteristic and b) this characteristic must have a high cardinality. Before, the term line item dimension was often only associated with a). Hence the inclusion of this property in the above. Be aware that a line item dimension has a different meaning now than in SAP BW2.0. -
Withholding tax information missing from line item
Hi Gurus,
We have created a vendor invoice in SAP. The voucher processed and paid has withholding tax of 1,333.00
But if you display the vendor invoice and click on the withholding tax data button, it says that withholding tax information missing from line item.
Kindly advise how could this happen when the vendor account has maintains withholding tax code and the payment document also has withholding tax information.
Thanks,
EllicecDear,
Please check the following:
1. The withholding tax types and indicators must be defined as Liable'.
Please check this via vender master data (fk02).
2.Please check field status group for withholding tax fields in
transactions OB14 (inserting the field status variant of the Company Code oby6 and the field status group of the g/l account that You can find running FS00) and OB41 (posting key, in DP case 29). Check the account group for the GL account
assigned to the vendor reconciliation account in FBKP.
These should be set as "optional".
Select group --> Taxes
Suppress Req. Entry Optional Entry
Withholding Tax Code X
Withholding Tax Amounts X
regards -
Production order line item data
Hello All,
I am working on production orders co03 rite now.
I want to access the line item data for a particular order,
AUFK and AFPO are not giving the details i need,
please advise,
thanks,
GauravDear Gaurav,
U shud try the Table AUFM to get the details u r looking for.
U will get your required output.
Reward points if u feel it was helpful
Regards
Srinivasan -
Module pool- only first line item data saved, rest disappears??
Hi Experts,
I have one module pool that was developed by other developer. It has header details input fields and items details input by table control.
Now below scenarios occur:
1) When I enter only one line item, and save it, the data is saved properly
2) when I enter more than one item data and save it, it only saves first line item data.
3).When I press ENTER button after every new line item data, it saves all the data properly.
I tried to debug the report but could not find the exact problem statement as the code is written very badly without any comments.
I am pasting the flow logic code below for the screen.
So please help me figure out the problem and solution for it.
+++++++++++++++++++++++++++++++++++
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
MODULE it_mseg_change_tc_attr.
*&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
LOOP AT it_gp
INTO wa_gp
WITH CONTROL it_mseg
CURSOR it_mseg-current_line.
MODULE it_mseg_get_lines.
*&SPWIZARD: MODULE IT_MSEG_CHANGE_FIELD_ATTR
ENDLOOP.
* MODULE STATUS_9001.
MODULE deactive_screen.
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
LOOP AT it_gp.
CHAIN.
FIELD wa_gp-yposnr.
FIELD wa_gp-matnr.
FIELD wa_gp-maktx.
FIELD wa_gp-meins MODULE check_uom ON INPUT..
* FIELD WA_GP-DOC_QTY.
* FIELD WA_GP-REC_QTY.
FIELD wa_gp-gp_qty.
FIELD wa_gp-chall_qty.
FIELD wa_gp-netwr.
FIELD wa_gp-remarks.
FIELD wa_gp-exp_ret.
MODULE it_mseg_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD wa_gp-chk
MODULE it_mseg_mark ON REQUEST.
ENDLOOP.
MODULE it_mseg_user_command.
*&SPWIZARD: MODULE IT_MSEG_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
MODULE user_command_9001.
+++++++++++++++++++++++++++++++++++
Thanks,
Vishal.Hi Aruna,
Below is the code as you required.
+++++++++++++++++++++++++++++
MODULE user_command_9001 INPUT.
ygp_header_mas-ret_type = v_gpt.
CASE sy-ucomm.
WHEN 'MBLNR'.
PERFORM select_mblnr.
WHEN 'DEL'.
PERFORM select_delivery.
WHEN 'INTI'.
PERFORM grt_gi_details.
WHEN 'GENT'.
PERFORM get_ge_details.
WHEN 'GP'.
PERFORM get_returnable_gp.
WHEN 'SAVE'.
PERFORM gen_gp_number.
PERFORM gen_data.
PERFORM save_data.
WHEN OTHERS.
PERFORM get_ge_details_other.
IF it_gp[] IS INITIAL.
INSERT INITIAL LINE INTO it_gp INDEX 1.
ENDIF.
ENDCASE.
IF v_entry = 07 .
PERFORM serial_no1.
PERFORM insert_row.
ENDIF.
IF sy-ucomm IS INITIAL.
PERFORM calc_amt.
ENDIF.
CLEAR:sy-ucomm.
ENDMODULE. "user_command_9001 INPUT
+++++++++++++++++++++++++++++++
MODULE it_mseg_user_command INPUT.
ok_code = sy-ucomm.
PERFORM user_ok_tc USING 'IT_MSEG'
'IT_GP'
'CHK'
CHANGING ok_code.
sy-ucomm = ok_code.
ENDMODULE. "IT_MSEG_USER_COMMAND INPUT
++++++++++++++++++++++++++++++++++
MODULE it_mseg_modify INPUT.
MODIFY it_gp
FROM wa_gp
INDEX it_mseg-current_line.
ENDMODULE. "IT_MSEG_MODIFY INPUT
====> Above module has some problem i think as while debugging it was not updating IT_GP as the current line number was not matching with IT_GP as it has only one line item and WA_GP was changing. Also WA_GP data was getting changed with LOOP with all line items data.
++++++++++++++++++++++++++++++++++++++++++++++
MODULE it_mseg_mark INPUT.
DATA: g_it_mseg_wa2 LIKE LINE OF it_gp.
IF it_mseg-line_sel_mode = 1
AND wa_gp-chk = 'X'.
LOOP AT it_gp INTO g_it_mseg_wa2
WHERE chk = 'X'.
g_it_mseg_wa2-chk = ''.
MODIFY it_gp
FROM g_it_mseg_wa2
TRANSPORTING chk.
ENDLOOP.
ENDIF.
MODIFY it_gp
FROM wa_gp
INDEX it_mseg-current_line
TRANSPORTING chk.
ENDMODULE. "IT_MSEG_MARK INPUT
+++++++++++++++++++++++++++++++++++++++++
If I press ENTER after entering each line item, all records come in IT_GP but if not then only first line item comes. Also if I dont press ENTER after entering the first line item and and add one item (total 2) and then press ENTER then sometimes both the lines disappear.
Thanks,
Vishal -
How to delete the Cost center line item data
How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
Is there any way to delete the line items in that cost center.
Can data archiving & deleting can help us..........
does it have any effect over other cost center data....
any input needed.........
regards
rajeshHi,
i found 2 reports for you:
1) CO_TOTAL_WRI - Archiving CO Totals Records
2) RKCOITW1 - Archiving CO Line Items: Write Program
from 2) is a linlk to customize archiv-parameters
-> start it with transaction se38 / sa38
A. -
After a PAI, I am not able to slect line items in the table control.
Dear All,
In GR55 Report;after a PAI triggered (by Enter button or vertical scroll bar), I am not able to select any line-items in the table control. If no PAI triggered, the I am able to select as much as line item..
Can anybody help me..
-Ullas Ubefore display, while debugging , after pai, it will go in pbo modules,
so there u need to check the structure screen for the variable select. u might have declare one variable like sel(1) type c,
these variable u have written in table control attributes in select variable as itab-sel.
so check in debugging first. -
Continuation of line item data to next page in SmartForm
Hi,
Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
Please try to send ASAP.You can print total by reading page numbers.
Ex: IF <current page> EQ < next page number>
Print total.
ENDIF
Regards,
Sairam -
MB_MIGO_BADI - Line item data inside CHECK_ITEMS method
Hi All,
I have implement MB_MIGO_BADI and i want to put a check inside the method CHECK_ITEMS where the importing parameter is line ID.
How can I get the data for the line based on the line ID inside the check_items methods, so that I can make the custom checks inside the method and populate the error message.
Please let me know how can we access the line item data inside the method CHECK_ITEMS.
Thanks and Regards,
VijayHi,
My requirement is to use BADI MB_MIGO_ITEM_BADI and restrict the creation of GR of items which have delivery date > PO Delivery date.
exact requirement is:-
Invoke Badi MB_MIGO_ITEM_BADI
Only for GR
Check EKKO-BSART =PJ where EKKO-BELNR = MSEG-EBELN
Check if the Po Line item has single or multiple delivery
a) If single
Check if MKPF-CPUDT-3 > EKPO-EEIND
Yes u2013 Create GR
No --- Give error message
b) Multiple Delivery
Check if EKET WEMNG =0
Select EKET-EINDT where EKET-WEMNG < EKET MENGE
Check EKET-EINDT < MKPF-CPUDT-3
Yes u2013 Create GR
No --- Give error message
Error Message : u201CGR Cannot be posted as Delivery date is in future u201C
Thanks
Vivek -
Line Items Data Source for General Ledger
Hello everybody,
I'm trying to generate a Data Source for Line Items (new General Ledger) in transaction FAGLBW03. When I generated a Total Record-Data Source, everything was done correctly. When I try to generate a Line Item-Data Source, I receive following error message: "Extractors for general ledger documents are not yet supported". I was looking for any SAP notes that would explain this issue, but I couldn't find anything.
Could you please tell me how can I generate Data Source for Line Items? Add some SP, use some another transaction, ...?
Thank you for any help
JanuleHi,
Can u tell me how did u solve that problem.
i m facing same.
/sachinkumar.
Maybe you are looking for
-
How do I move my iPad to a new computer without losing all my game settings?
I installed a fresh Lion system on a new HD and moved all my data there, but my iPad (running ios5) is synced to iCloud. I'd now like to install some movies onto the iPad, so I apparently have to synch to iTunes to do this. But syncing to iTunes woul
-
Interface Sony (Digibeta) DVW-A500 to iMac and final cut pro x
Hello all, I am looking for a way to import (capture) footage from the DVW -A500 Digibeta deck into an iMac, (OSX mountain lion Final Cut pro x ) with XLR out for two channel audio and component out for the video. I have a Canapous ADVC110 but the pr
-
Deafult client value while logging into SAP
Hi, A general question -- How can i change the default client value say '111' to '100' in SAP initial screen while logging in. Regards, pankaj
-
End-user closes the Web browser's window...
Hi , I have an Exit_Form selection on a menu..... Is it possible the code being there to be executed whenever the end-user closes the web-browser's window.....??? I use Dev10g. Thanks , a lot Simon
-
Accessing Km document in webdynpro application
Hi All, Is it possible to access the file which is uploaded in KM through webdynpro code? Can anybody help in this? Regards, V Karthi