Nested table for PO Output (Item texts) - trying again.
Hi experts
I posted this question already, but the formatting disappeared, so trying again.
I have created a PDF version of the Purchase Order output. Everything works well, except for the last step - a nested table where I want to display Item texts from the PO for every item.
The steps I followed:
1. In the Interface, I read the item texts, and placed them in an internal table, where the table has a field EBELP (item number) and a field for the text. So, for a PO with 5 items, where 2 items have texts, the table might look like this:
00010 First line of text for item 10.
00010 Second line of text for item 10.
00040 Only line of text for item 40.
2. In the context of the form, I put this table 'under' the existing 'ITEM' entry. In other words, for every item, the texts must be displayed. Obviously I then put in an entry under the WHERE CONDITIONS to say that EBELP = ITEM-EBELP, otherwise it would repeat every line of text for every item.
The problem is that it does not behave quite as I expected. It currently prints:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Only line of text for item 40.
Item 30 information
Item 40 information
Item 50 information
Where it should print:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
+Item 40 information+
Only line of text for item 40.
Item 50 information
In other words, it simply 'breaks' on change of EBELP, and moves the text to the next line, as opposed to the correct line.
I tried debugging, and it does appear to be doing things in the right order, but it is still doing the output incorrectly. I also searched the forums for similar problems, but I could not find a solution to the problem I am experiencing.
I also put 'dummy' (empty) rows into the table - that fixes it, but then it messes with my layout and I get something like:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In the above, I don't want the gaps where the empty rows are.
Please advise?
Thanks and kind regards
Casper
Reposted without formatting...
I have created a PDF version of the Purchase Order output. Everything works well, except for the last step - a nested table where I want to display Item texts from the PO for every item.
The steps I followed:
1. In the Interface, I read the item texts, and placed them in an internal table, where the table has a field EBELP (item number) and a field for the text. So, for a PO with 5 items, where 2 items have texts, the table might look like this:
00010 First line of text for item 10.
00010 Second line of text for item 10.
00040 Only line of text for item 40.
2. In the context of the form, I put this table 'under' the existing 'ITEM' entry. In other words, for every item, the texts must be displayed. Obviously I then put in an entry under the WHERE CONDITIONS to say that EBELP = ITEM-EBELP, otherwise it would repeat every line of text for every item.
The problem is that it does not behave quite as I expected. It currently prints:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Only line of text for item 40.
Item 30 information
Item 40 information
Item 50 information
Where it should print:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In other words, it simply 'breaks' on change of EBELP, and moves the text to the next line, as opposed to the correct line.
I tried debugging, and it does appear to be doing things in the right order, but it is still doing the output incorrectly. I also searched the forums for similar problems, but I could not find a solution to the problem I am experiencing.
I also put 'dummy' (empty) rows into the table - that fixes it, but then it messes with my layout and I get something like:
Item 10 information
First line of text for item 10.
Second line of text for item 10.
Item 20 information
Item 30 information
Item 40 information
Only line of text for item 40.
Item 50 information
In the above, I don't want the gaps where the empty rows are.
Please advise?
Thanks and kind regards
Casper
Similar Messages
-
Table for Purchase Requisition Item Text
I would like to know, what is the table which stores the item text in tab texts for Purchase Requisition?
Hai,
the table is STXH.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = IT_STXH-TDID "ID
LANGUAGE = IT_STXH-TDSPRAS " LANGUAGE
NAME = IT_STXH-TDNAME
OBJECT = IT_STXH-TDOBJECT
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = L_LINES
Regards,
Venkat -
How to draw horizontal line at the end of table for multiple line items
Dear Experts,
Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
Thanks
Ramesh ManoharanHi
I tried as per your logic but it is not solving my problem . when i am gone to table painter it is showing line type 1 and line type 2
is below format.. if u see here line type 1 bottom line and line type 2 top line both are same.. so how to avoid this ?
line type 1
line type 2 -
Report / Table for getting Datewise item cost
Friends,
Can u help me know MM Report / Table for getting Datewise item cost in a plant.hi,
try table S031...Movement of stocks....
THis shd help you..
Regards
Priyanka.P -
Tables for Balance sheet Items.
Dear All,
I want to know the tables for Balance Sheet items like Current Assets Current Liabilities etc like where the
cumulative amounts of there accounts goes ?
If not so given in SAP please suggest me the procedure for How to get there amounts in respective tables.
Regards,
Pankaj.Hi
Michael.
The balances given over here in GLT0 and there respective fields are as on date balance as per Trial balance ?
My basic requirement is that the table should show the balances as per updated Trial Balance.
Please Help.
Regards,
Pankaj. -
Multi-level nested tables for repeatable XML Elements
Hi there,
Suppose we have a XML Schema „ASchema“ like this (XMLDB schema annotations are left out for simplicity):
<xs:schema xmlns:xs=" .... " />
<xs:element name=“A“>
<xs:complexType>
<xs:sequence>
<xs:element name=“B“ maxOccurs=“unbounded“/>
<xs:complexType>
<xs:sequence>
<xs:element name = “C“ maxOccurs=“unbounded“/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
After registering this schema in Oracle, I can define a table like this:
CREATE TABLE ATable
id NUMBER,
doc XMLTYPE
XMLTYPE COLUMN doc
XMLSCHEMA “ASchema“ ELEMENT “A“
VARARRAY doc.“XMLDATA“.“B“ STORE AS TABLE “BTable“
((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
This creates a nested table "BTable" within the table "ATable". So far so good, I can use this nested table to gain faster access on every possible subelement of Element B when I set an appropriate index.
I now want to create another nested table for element “C“ like this:
DROP TABLE ATable;
CREATE TABLE ATable
id NUMBER,
doc XMLTYPE
XMLTYPE COLUMN doc
XMLSCHEMA “ASchema“ ELEMENT “A“
VARARRAY doc.“XMLDATA“.“B“ STORE AS TABLE “BTable“
((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
VARARRAY doc.“XMLDATA“.“B“.“C“ STORE AS TABLE “CTable“
((PRIMARY KEY (NESTED_TABLE_ID, SYS_NC_ARRAY_INDEX$)) ORGANIZATION INDEX)
But this statement fails with the error message something like „ ... no such attribute ... „
And here's my question: is it possible to create nested tables for repeatable XML Elements that are subelements of other repeatable XML Elements ? And if so, how can I do it ?
Thank you very much in advance
JanFound a (partial) solution myself:
If you add the attribute xdb:storeVarrayAsTable="true" to the root element of the XML schema, Oracle XMLDB generates nested tables for all repeatable XML Elements while registering the XML schema.
Unfortunately, the names of these nested tables are system-generated, hence it's a bit uncomfortable to set indices on them. You can find out the names of these nested tables as follows:
select table_name, parent_table_name, parent_table_column from user_nested_tables;
Further information on that subject is supplied in the following thread:
Re: default tables for elements with maxoccurs > 1
It would be nice if there was a way to name the generated nested tables via appropriate XMLDB schema annotations.
regards
Jan -
NESTED Tables for Sub-types when creating table for Super-type
If I create the following types, as an example:
Person with subtypes: Employee and Customer
Appointment
CREATE OR REPLACE TYPE Person_OT AS OBJECT (
person# NUMBER,
personSurname VARCHAR2(50),
personForenames VARCHAR2(50),
personDateOfBirth DATE,
personAddress Address_OT,
) NOT FINAL ;
CREATE OR REPLACE TYPE Employee UNDER Person_OT (
empSalary NUMBER,
empNoSales NUMBER,
makes Appointment_List_OT
) FINAL ;
CREATE OR REPLACE TYPE Appointment_OT AS OBJECT (
some attributes
CREATE OR REPLACE TYPE Appointment_List_OT AS TABLE OF REF Appointment_OT ;
When creating the table to hold objects of Person type, how can the requisite nested table for representing 'makes' be declared? The below approach is not correct, however the table will not compile without naming the nested tables.
CREATE TABLE Person_TBL OF Person_OT (
Person# PRIMARY KEY)
NESTED TABLE makes STORE AS Appointment_List_NTBL;
Advice very much appreciated!CREATE TABLE Person_TBL OF Person_OT(
Person# PRIMARY KEY)
NESTED TABLE TREAT(SYS_NC_ROWINFO$ AS EMPLOYEE).MAKES STORE AS Appointment_List_NTBL
Table created.
SQL> select * from user_nested_tables
2 /
TABLE_NAME TABLE_TYPE_OWNER
TABLE_TYPE_NAME PARENT_TABLE_NAME
PARENT_TABLE_COLUMN
STORAGE_SPEC RETURN_TYPE ELEMENT_SUBSTITUTABLE
APPOINTMENT_LIST_NTBL SCOTT
APPOINTMENT_LIST_OT PERSON_TBL
TREAT(SYS_NC_ROWINFO$ AS "SCOTT"."EMPLOYEE")."MAKES"
DEFAULT VALUE N
SQL> SY. -
Table for GL line items.
Hi ,
Can anybody tell me what is the table for GL line items in R3 side.
Regards,Thanks Voodi and Roberto,
Actually I am in need of following.
I need to take all fields from 0FI_AR_3 DS and Additional fields as follows.
Profit centre
Net Due date
FI Document number
Document line number
End customer country code
Group currency (USD)
customer no
End customer country
document no
line item
Note: Only pull in AR documents into the structure that have status of OPEN.
Can I find out all these fields from both these tables?
Regards, -
My ipad is unresponsive. The screen is black and I have followed the instructions to turn the iPad on. I charged it for about 20 minutes and tried again, following the same instructions and there was still no response. How do I get my ipad to turn on?
Frozen or unresponsive iPad
Resolve these most common issues:
• Display remains black or blank
• Touch screen not responding
• Application unexpectedly closes or freezes
http://www.apple.com/support/ipad/assistant/ipad/
iPad Frozen, not responding, how to fix
http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
Black or Blank Screen on iPad or iPhone
http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
Home button not working or unresponsive, fix
http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
Fixing an iPad Home Button
http://tinyurl.com/om6rd6u
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Cheers, Tom -
NESTED TABLES,,Header data and Item data
How to arrange them in the hierarchy view?
How to put a condition on the item table so that only corresponding items from the item table will be shown for each header.
header table data 1211
1212
item table data is 1211 10
1211 20
1212 10
1212 20
so final output should be
1211
1211 10
1211 20
1212
1212 10
1212 20.
So how to put this condition?
Can you please help me
Regards
sasiHi,
If you designing the form using SFP Transaction, then you have to set the where clause on the item table in the context.
In the SFP context drag the header table from interface.drag the item table from interface on the DATA in the header table. it will placed at the end of the header table. Now select the item table select where clause in the properties ( at the bottom of the screen ).there you create a line for condition using create button. drag the field from header table field ( say header-matnr ) on the right side and then drag the same field from the item table ( say item-matnr) in the left side.This will filter the item records relevent for header record.
In the layout, design the table as I explained in the forum message .( search forum with text "Nested Tables and Multiple Pages" )
pavan meda -
Nested Table: How to display formatted text in the form ?
Hi,
Scenario:
I have a nested table, say TAB1, containing another table TAB2 which holds the formatted text.
Sample data
Entries in TAB1:
Column1 Column2(TAB2)
Text1 Data_from_tab2
Text2 Data_from_tab2
Text3 Data_from_tab2
Requirement:
The requirement is to display the data in TAB1 as it is maintained.
Trials:
I am aware of the fact that we can transfer the content of the nested table (in this scenario, TAB2) in another table(of type TLINE) defined as a global variable in the interface of the form. Then in the context area, we can define a 'TEXT' node and bind it to the table and choose the 'Dynamic text' for the 'text type' attribute and maintain the other atrributes.
But this approach cannot solve the issue as it is a nested table.
Kindly suggest how can I resolve this issue.
Regards
s@kHi,
if its like colum1, column2 (tab2).
you can represent column2 as a nested table in the form. and put these tables structure intoa subform of type flowed.
then you can have the required format.
the same can also be acheived using nested subforms instead of tables.
example of such scenario is PO & line items.
po number1 , items 1
item 2
item 3
po number2 , items 1
item 2
item 3
hope this helps you.
Cheers,
Sai -
Creation of New Table for Delivery Output Type.
Hi Guys,
I need to replace an existing table by creating a new Table in the existing Access Sequence with the combination of "Ship to Party/Product Hierarchy".
Logistics>Shipping>basic Shipping functions>Output determination>Maintain Condition Tables-->maintain output condition table for deliveries.
I am choosing a new table by the name 902, but i am not getting the field " PRODH Product Hierarchy" on the right hand side to choose from.
I checked the field catelog also. Firstly the field catelog was also not having the field, and then i added the field in it by choosing new entries.
I guess i am missing some step in between, thats why the new field (PRODH) is not showing on the right hand side while creation of the condition table.
One more thing, when i am seeing the Field Catelog, i am able to see a very large number of fields, then why only a few are appearing during creation of a new table??????
Can you guys correct me and let me find a way.????
Thanks very much indeed.
Regards,
VivekHi If u have already the field in FC u can add with new entries .
Try with ,enter t- code <b>SE11</b>, enter <b>KOMB</b>- it will ask for access key get from basis and add u r Field catalog
Field catalog for condition key: output determination
If at all u want a new field tao add to u r FC u Can try with userexit.
1)ADDING OF NEW FIELDS IN PRICING
In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields.
The fields which are not in either of the two tables KOMK and KOMP
cannot be used in pricing .Sometimes a need arises when the pricing
is to be based on some other criteria which is not present in the form of fields in either of the two tables.
This problem can be solved by using USEREXITS which are provided for pricing in SD.
Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
In the case of userexit which will be called when invoicing is done ,these
are provided in the include RY60AFZZ which is in the standard SAP
program SAPMV45A. The name of the userexits are same. i.e
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely
created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that
has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose
includes are provided in each of them .
To create the field in header data(KOMK) the include provided is KOMKAZ
and to create the field in item data(KOMP) the include provided is KOMPAZ.
One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
2)The other method of finding userexit is to find the word USEREXIT in the
associated program of the transaction for which we want to determine userexit using SE38.
3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
Some other examples of userexits in SD are:<b></b>
Message was edited by:
SHESAGIRI GEDILA -
How to update a column in a nested table for a given record in the master t
Hi I have translations for all attributes of an item stored as a nested table
CREATE OR REPLACE TYPE T_ITM_ATTR AS OBJECT(
ATTR_NM VARCHAR2(30),
ATTR_VAL VARCHAR2(200 CHAR),
ATTR_STS_BL NUMBER(1))
INSTANTIABLE
FINAL
CREATE OR REPLACE TYPE T_ITM_ATTRIBUTES AS TABLE OF T_ITM_ATTR;
CREATE TABLE XGN_MOD_ITEMS_T
IDS NUMBER,
MOD_IDS NUMBER NOT NULL,
MOD_ITM_IDS NUMBER NOT NULL,
LGG_ID VARCHAR2(3 CHAR) NOT NULL,
ITM_TYPE VARCHAR2(50 CHAR) NOT NULL,
ITM_NM VARCHAR2(50 CHAR) NOT NULL,
ITM_BLOCK VARCHAR2(50 CHAR),
ITM_ATTR T_ITM_ATTRIBUTES,
ITM_COL1 VARCHAR2(1 CHAR),
ITM_DSC VARCHAR2(100 CHAR),
CREATED_BY VARCHAR2(30 CHAR) DEFAULT USER NOT NULL,
CREATION_DATE DATE DEFAULT SYSDATE NOT NULL,
LAST_UPDATED_BY VARCHAR2(30 CHAR),
LAST_UPDATE_DATE DATE
NESTED TABLE ITM_ATTR STORE AS NESTED_ITM_ATTR_T
TABLESPACE XGN4_TAB
PCTUSED 40
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
What I want to do is to update only the attr_val of each item to a value coming from a temporary table where the user inserted his translations
So how can I update ?
this doesn't work since I have to know the previous value?
update table(
select t2.attr_val
from XGN_MOD_ITEMS_T t1, table(t1.itm_attr) t2
where t1.mod_itm_ids=160) attr
set value(attr) = 'Profil'
where value(attr) = 'Profile'
This updates all occurences for all entries wich doesn't work either because I have for each language another record
UPDATE /*+ NESTED_TABLE_GET_REFS */
NESTED_ITM_ATTR_T
SET attr_val = 'SHIT'
WHERE attr_val = 'Profile'http://www.psoug.org/reference/nested_tab.html
Look for UPDATE. There is a working demo on the page.
That said nested tables are not a good place to store data. Reconsider using relational tables with, if necessary, object views. -
DataBase Tables for fetching storage location text
Hi All,
May I know the database tables used for storing storage location text.
Regards
Nikhil
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Mar 14, 2011 9:22 AMDear Jaques,
Check in these tables,
SER00 General Header Table for Serial Number Management
SER01 Document Header for Serial Numbers for Delivery
SER02 Document Header for Serial Nos for Maint.Contract (SD Order)
SER03 Document Header for Serial Numbers for Goods Movements
SER04 Document Header for Serial Numbers for Inspection Lot
SER05 Document Header for Serial Numbers for PP Order
SER06 Document Header for Serial Numbers for Handling Unit-Content
SER07 Document Header for Serial Numbers in Physical Inventory
EQBS Serial Number Stock Segment
EQKT Equipment Short Texts
EQSE Serial Number Records
EQST Equipment to BOM Link
EQUI Equipment master data
EQUK Quota File: Header
EQUP Quota File: Item
EQUZ Equipment time segment
Regards
Mangalraj.S -
Table for Sales Order Header Text
Hi,
I want Table Name for Sales Data -> Header Text.
Path--
When we open the Sales order, Click on Display Document Header Details --> Here select the Text tab. Here, see the written text in Form Header (1st option).
I want that table Name which contain the Header Text. Because If header text is more than 1 line, where it stores??
Plz. helpHi,
Text data are stored in tables STXH (Header) and STXL(Item).
But you can't find the exact text in these tables as the text are stored in binary form.
You need to use function module READ_TEXT to read any document texts.
Check the link [Use FM READ_TEXT to Read the Various Text|http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm] which explains how to use this module to read the text.
Regards,
Maybe you are looking for
-
Our company is using NetWeaver release 7.1, the database is MAXDB, recently found to cause the system to slow down hard disk space exception In D: \ sapdb \ data \ wrk \ EPP \ path, found that many EPP_LOG_Auto.xxx files, each file is nearly 700MB, 2
-
FaceTime will not allow me to enter and the system does not recognize the password for my apple ID
gent.mo apple, I can not access with my Apple ID to open FaceTime regularly purchased with the new Lion OSX 10.7 (11A511) from the App Store. I get: "The server encountered an error while processing your registration. Try again later." Using Imac 24
-
Macbook pro 10.6.8 locks up yet trackpad still moves cursor?
My 2008 Macbook Pro running 10.6.8 (fully up to date) locks up completely though I can still move the mouse on the screen using the trackpad(I have not attempted a USB mouse to see if that still moves the cursor). The Dock does not appear when I mous
-
Purchase order to create sales order and delivery
Hello all, I am planning to create sales order and since i require customer Purchase order to create sales order, i am also planning to create purchase order. My question is who should i mention as vendor or who would be the vendor when i create a pu
-
Hi Guru: I created two BW report from the query, say A and B. In A, I include B as a sub report. I could preview in in crystal report 2008. However, after I include B, I could not use the Save function in SAP menu, it will return an error code 6 says