Creating tables to store customers customer details
hi gurus
i am little confused on the scenario!!!
my client want to store the details of customers customer for tracking the sales price. so we decided to create some tables. this tables includes customer details and some data which clients customer sends to us like invoice date, invoice amount etc.
client mainly want to reconcile the details of sale to customers customer.
is advisable to create table for this???
Hi
Guess - If you are capturing details of customers, independant of the sales you record for the customer, then you might have to go for separate development. Else you can capture it in the individual sale order in standard transactions VA01 as and when you make the sales to him
Thank You,
Similar Messages
-
Table that stores Transport Request Details
Hi SDN Gurus,
Is there any table that stores all the details of all the transports in Import Queue (STMS). I am mainly interested in import time and method execution time of the transport. I need to write an ABAP program that for calculating the time for mass migrating all the transports in the queue.
i looked at the tables E070, E071 and some others but din't get the required info.
Any help will be rewarded with points.
ThanksHere is some correction to what i said. i got some information like the transport number, owner of the transport, target system and the IMPORT time of the request from the table E070. i guess all i need now is to find the time at which the transport is completed (Method Execution time) so i can calculate the time it took for transport.
Thanks -
Table that stores the customer contact person email id
hI ALL,
Can any body please tell me the table name where <b>customer conatct person mail id is stored.</b>
Please revert for any clarification on this.
its urgent .
good points will be given on the orrct solution.
thanks
Message was edited by:
Prabhudutta ......Hi Prabhu
for Contact person -
KNVK
For email id -
SZA1_D0100
For customer --- RF02D
Reward if useful to u -
Table that stores Job Log details
Dear Experts.....!!
I have an issue, for which I need to access the Start Date, Start Time and the End Time for a Particular Back-ground Job.
I'm not able to figure-out the table that contains these details.
The Input that I can provide is the Job Name and I need the recent Start Date, Start Time and the End Time for the given job.
Please help me in this regard.
Thank you all in advance.
Best regards,
NaveenHi Naveen,
Please check the foloowing tables --
TBTCO - Job Status Overview Table
TBTCD - Job Log Directory
For more information you can check the followings --
TBTCA Subsequent relationship in batch job sche
TBTCB Preceding relationship in batch job sched
TBTCCNTXT Information for Assignment of Jobs to Com
TBTCCTXTT Description of Reference Types for Backgr
TBTCCTXTTP Check Table: Valid Job Reference Types
TBTCI Usage counter for the job's internal repo
TBTCJSTEP Background Job Step Overview
TBTCO Job Status Overview Table
TBTCP Background Job Step Overview
TBTCR Batch scheduler execution time
TBTCS Background Processing: Time Schedule Table
Regards
Pinaki -
Tables which stores PRT details of QM inspection plans
Hello All,
I would like to know the tables which store the details of the Production Resource Tool (PRT) which are assigned to an activity in a QM Inspection plan?hi,
try these tables:
AFFH PRT assignment data for the work order
CRVD_A Link of PRT to Document
CRVD_B Link of Document to PRT
CRVE_A Assignment PRT data - equipment
CRVE_B Assignment equipment - PRT data
CRVM_A Link of PRT data to a material
CRVS_A Relationship of PRT internal number to PRT external number
CRVS_B Relationship of PRT external number to PRT internal number
Customizing tables:
TCF02 PRT categories
TCF03 Texts for the production resources/tools category
TCF04 Status of the PRT master
TCF05 Language-dependent text table for PRT status
TCF06 Field groups in the PRT master for reference
TCF07 Language-dependent texts for field groups in PRT master
TCF08 Assignment of PRT master fields to field groups
TCF10 PRT control key
TCF11 Language-dependent text table for PRT control keys
TCF12 PRT group key
TCF13 Language-dependent text table for PRT group keys
I hope it helps
arjun -
Table which stores SO36 details?
Hi Friends,
I want to know the table which stores the internet email address that is stored by user thru Tcode SO36.
( same can be maintained thru SBWP->Settings->Office settings->Automatic forwarding )
Purpose: i want to know User Id - Vs - email addr entered. As some users have maintained email id of other's, causing confusion.
Any info on this is highly appreciated.
Regards,
SimhaHi Mate,
Its not a straight forward way we can zeroin on the details.
I searched many tables ( i don't remember them )
but do a search in forums with 'Tables involve in SO36' and you would get a thread which states many tables. just look into one by one.
(I am not able to paste the link here)
i even used one FM which gets the mail id stored for the given user id. i don't remember the fm name.
Regards,
Simha -
Is there a system table that stores the "create table" scripts
Does a Oracle system table exist that contains the "create table" scripts for tables defined under a schema?
I know I can build this with SQL by querying the user_tab_columns, but I was wondering whether the entire DML
statement is already stored in some other system table. In the Quest Toad software you can simply go to the "Schema Brower", "Tables",
then select the "Script" tab and it shows you the "create table" statement for the particular table that you are
looking at. I'm wondering whether Toad behind the scenes is building this "create table" script via the user_tab_columns
table or using another system table.
Thank you in advance,
Wesyou can use the DBMS_METADATA.GET_DDL procedure to obtain the details regarding the ddl statement used to create the table.
-
Need to store explan plan details in a superate table
Hi ,
After execution of explain , I need to store query and that query execution time in a table.
Please help me , how to write a procedure for this.
Thanks,
Rajeshcreate the table, what you want to test explain plan.
create table t as select mod(object_id,10) id, a.* from all_objects a;
alter session set optimizer_max_permutations=80000;
create table succeeded.
alter session set succeeded.
now run the explain plan for your query..
explain plan set Statement_Id = 'TEST' for
select count(*)
from t t1, t t2, t t3, t t4, t t5, t t6
where t1.id = t2.id
and t1.id = t3.id
and t1.id = t4.id
and t1.id = t5.id
and t1.id = t6.id;
explain plan succeeded.
now create table for storing explain plan information.
u can write this into a Procedure
create table temp_table as select STATEMENT_ID, TIMESTAMP, OPERATION, OBJECT_TYPE, ID, PARENT_ID, COST, CARDINALITY, BYTES, PARTITION_ID, CPU_COST, IO_COST, TEMP_SPACE from PLAN_TABLE where STATEMENT_ID = 'TEST';
then select that table ...
select * from temp_table;
STATEMENT_ID TIMESTAMP OPERATION OBJECT_TYPE ID PARENT_ID COST CARDINALITY BYTES PARTITION_ID CPU_COST IO_COST TEMP_SPACE
TEST 04-APR-12 SELECT STATEMENT 0 18446744073709551615 1 78 18446744073709551615 11276755652
TEST 04-APR-12 SORT 1 0 1 78
TEST 04-APR-12 MERGE JOIN 2 1 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 11276755652
TEST 04-APR-12 MERGE JOIN 3 2 23857102848474256 18446744073709551615 18446744073709551615 18446744073709551615 11276754606
TEST 04-APR-12 MERGE JOIN 4 3 2052376473618 187915417821814336 9771601726734346240 18446744073709551615 11276753560
TEST 04-APR-12 SORT 5 4 14913446691 16049880768505 625945349971695 33538401851084428 11276752514 1546831069520000
TEST 04-APR-12 HASH JOIN 6 5 176530785 16049880768505 625945349971695 1605288479746278 2463359 2933000
TEST 04-APR-12 TABLE ACCESS TABLE 7 6 494 117082 1522066 30430872 491
TEST 04-APR-12 HASH JOIN 8 6 16135 1370822446 35641383596 137179925311 1260 2933000
TEST 04-APR-12 TABLE ACCESS TABLE 9 8 494 117082 1522066 30430872 491
TEST 04-APR-12 TABLE ACCESS TABLE 10 8 494 117082 1522066 30430872 491
TEST 04-APR-12 TABLE ACCESS TABLE 12 11 494 117082 1522066 30430872 491
TEST 04-APR-12 SORT 13 3 1061 117082 1522066 137311173 1046 4711000
TEST 04-APR-12 TABLE ACCESS TABLE 14 13 494 117082 1522066 30430872 491
TEST 04-APR-12 SORT 15 2 1061 117082 1522066 137311173 1046 4711000
TEST 04-APR-12 SORT 11 4 1061 117082 1522066 137311173 1046 4711000
TEST 04-APR-12 TABLE ACCESS TABLE 16 15 494 117082 1522066 30430872 491
17 rows selected -
Advanced table in advanced table- Need custom Detail table data.
hi,
I have a advanced table in table. Now for the inner detail table I have a Language column. For each row in master table I have correspoding 3 detail table records for 3 different languages. This languages are related to another master table called Language where there is a flag that indicates that this is a Installed language.
Now what I want to do is instead of showing the data from the master and detail table, I want to show the languages from the master language table ( say example French, Chinese, Spanish - for which I have corresponding records in detail table). If tomorrow, I have a new language that is installed ( i.e. the flag in the master Language table is set to Y), the automatically a new row should get added in the detail table with the new langauge . say e.g. if tomorrow German language is installed the detail table rows should have 4 rows ( including German to be displayed)
CAn this be achieved with the master - detail advanced table layout ?
Sorry if not clear, i can try to explain again :(Vishal
Please post your complete code so that we can diagnose it further.
While posting the code please enclose it between {noformat}{noformat}.
for e.g.
{noformat}{noformat}
select * from dual;
{noformat}{noformat}
looks likeselect * from dual;
Thanks
AJ -
AR Customers Account Details - query
Dear All
Can anyone provide me with PL/SQL query to extract AR Customers, Account details all outstanding balances as of date, PLEASE...
Thanks n Regards,
Iqbal...Hi
The Customer data is stored in HZ Tables part of TCA Architecture
(HZ_PARTIES, HZ_CUST_ACCOUNTS) stores the information
The Account balances can be derived from AR_PAYMENT_SCHEDULES_ALL Table
If you need further info, Refer eTRM(Electronic Technical Reference Manual) and run the Diagnostic scripts to get the Table level information of customer and Account Balances if you have applied Diagnostic Patch in your instance
Hope this helps
Regards
Sivakumar -
Interactve report on Customer details
hello sdn friends,
i have a question for you.
can u help me how to develop an Interactive report which displays Customer details on basic list, Sales orders. Items and Materials on secondary lists and when user clicks on any material to switch over the control to transaction MM02.
from which tables i have to retrieve the data and also relationship between those tables.
i will be happy if any body repled to meHi sreenu,
As per your interactive report,
assuming that you know basics of interactive reports .
first display all the selected customers in basic list and hide the customer id
HIDE is the keyword,
we use sy-lsind for interactive report.
using that customer id you will get the sales orders, items and materials and display them in details list,
GET cursor field Fnam value Fval
SET PARAMETR ID 'MAT' field Fval
call transaction 'MM02' and skip first screen.
*use GET and SET to store the material number
coming to tables ,
customer details in KNA1,sales orders items materials we use VBAK ( i guess , confirm that and use)
hope its clear ,
cheers
kiran -
Is there any standard SAP table which stores the license number assigned to a delivery item
Hi Experts,
This is in relation to license number assigned to a delivery item under ‘Export License Log’. Our scenario is for delivery of type NLCC created for an inter-company stock transport order. (i.e.not a sales order case where the license may get copied from sales order to delivery through copy control)
As we understand, for legal control – relevant scenarios, export license for each item shall be determined afresh every time the delivery is accessed. (Depending on legal regulation, grouping, destination country, export control class, delivery partners vis-à-vis license master customer assignments etc.)
To print the license text on one of the delivery output types, we want to access the license number for each item. (determined under export license log)
Our question is: is there any standard SAP table which stores the license number assigned to a delivery item?
We have checked some of the license tables (T606*, VAEX, EMXX etc.) but couldn’t get any specific table storing delivery-item-specific license data.
Helpful answers Text Removed
Regards,
Jagan
Message was edited by: G Lakshmipathi
Dont add such text in your postHi Lakshmipathi,
The export control log can be accessed by going to delivery Extras-> Export license log
We need a table that stores the determined license for each item in a delivery document ( as shown in the below screenshot)
Regards,
Jagan -
Zreport for vendor customer details.
Hi ,
I have to create a report tto display a vendor and customer details. on screen i have customer code and vendor code with company code and fiscal year. when i select the cust. code plant and year it will show the doc.no ,post. and doc. date,doc type ,qty and amount as per customer details.
after that as per billing doc. of specific customer ,select excise invoice number and match it with reference number (xblnr) of vendor code. and once it is matched select tht vendor doc.no. post. and doc. date amount and qty and display it in report.so how to right a coding for thesame
let me know as its urgent.
Rgrs
Suchitaplease find below coding for your reference.
*& Report ZFI_VEND_CUST_DETAILS
REPORT ZFI_VEND_CUST_DETAILS
NO STANDARD PAGE HEADING
LINE-COUNT 65
MESSAGE-ID 00.
TABLES: BSID,BSIK.
DATA: IT_BSID LIKE BSID OCCURS 0 WITH HEADER LINE.
DATA: IT_BSIK LIKE BSIK OCCURS 0 WITH HEADER LINE.
DATA: IT_J_1IEXCHDR LIKE J_1IEXCHDR OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF IT_OUT OCCURS 0,
BELNR LIKE BSID-BELNR, " added On 17.04.2007
BLDAT LIKE BSID-BLDAT,
BUDAT LIKE BSID-BUDAT,
BLART LIKE BSID-BLART,
NAME LIKE KNA1-NAME1, "Name 1
MATNR LIKE VBRP-MATNR, "Material Number
ARKTX LIKE VBRP-ARKTX, "Material description
FKIMG LIKE VBRP-FKIMG, "Quantity mentioned in the excise invoice
VBELN LIKE BSID-VBELN, "Billing Document
BUKRS LIKE BSID-BUKRS,
NAME1 LIKE LFA1-NAME1,
KUNNR LIKE BSID-KUNNR,
WRBTR LIKE BSID-WRBTR,
DMBTR LIKE BSID-DMBTR,
ZUONR LIKE BSID-ZUONR,
XBLNR LIKE BSID-XBLNR,
MENGE LIKE VBRP-MENGE,
LIFNR LIKE BSIK-LIFNR, "VENDOR CODE
EXNUM LIKE J_1IEXCHDR-EXNUM,
BELNR1 LIKE BSIK-BELNR, " added On 17.04.2007
BLDAT1 LIKE BSIK-BLDAT,
BUDAT1 LIKE BSIK-BUDAT,
BLART LIKE BSID-BLART,
NAME LIKE KNA1-NAME1, "Name 1
MATNR LIKE VBRP-MATNR, "Material Number
ARKTX LIKE VBRP-ARKTX, "Material description
FKIMG1 LIKE VBRP-FKIMG, "Quantity mentioned in the excise invoice
VBELN LIKE BSID-VBELN, "Billing Document
BUKRS LIKE BSID-BUKRS,
NAME1 LIKE LFA1-NAME1,
KUNNR LIKE BSID-KUNNR,
WRBTR LIKE BSID-WRBTR,
DMBTR1 LIKE BSIK-DMBTR,
ZUONR LIKE BSID-ZUONR,
XBLNR LIKE BSIK-XBLNR,
MENGE LIKE VBRP-MENGE,
LIFNR LIKE BSIK-LIFNR,
END OF IT_OUT.
*DATA: IT_OUT1 LIKE IT_OUT OCCURS 0 WITH HEADER LINE.
*ALV VARIABLES AND INTERNAL TABLES
TYPE-POOLS: SLIS.
DATA: IS_LAYOUT TYPE SLIS_LAYOUT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
IT_LISTHEADER TYPE SLIS_T_LISTHEADER,
IT_EVENTS TYPE SLIS_T_EVENT,
IT_PRINT TYPE SLIS_PRINT_ALV OCCURS 1 WITH HEADER LINE.
*SELECTION SCREEN DEFINITIONS
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : SO_KUNNR FOR BSID-KUNNR,
SO_LIFNR FOR BSIK-LIFNR,
SO_BLART FOR BSID-BLART.
PARAMETER : P_BUKRS LIKE BSID-BUKRS OBLIGATORY,
P_GJAHR LIKE BSID-GJAHR OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM DISPLAY_DATA.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form GET_DATA .
SELECT * FROM BSID
INTO TABLE IT_BSID
WHERE KUNNR IN SO_KUNNR AND
BUKRS = P_BUKRS AND
GJAHR = P_GJAHR.
LOOP AT IT_BSID.
IT_OUT-BELNR = IT_BSID-BELNR.
IT_OUT-BUKRS = IT_BSID-BUKRS.
IT_OUT-KUNNR = IT_BSID-KUNNR.
IT_OUT-ZUONR = IT_BSID-ZUONR.
IT_OUT-DMBTR = IT_BSID-DMBTR.
IT_OUT-VBELN = IT_BSID-VBELN.
IT_OUT-XBLNR = IT_BSID-XBLNR.
IT_OUT-BLART = IT_BSID-BLART.
IT_OUT-BUDAT = IT_BSID-BUDAT.
IT_OUT-BLDAT = IT_BSID-BLDAT.
APPEND IT_OUT.
ENDLOOP.
*SELECT * FROM J_1IEXCHDR
*INTO IT_J_1IEXCHDR
*WHERE RDOC = IT_OUT-VBELN.
*LOOP AT IT_J_1IEXCHDR.
IT_OUT-EXNUM = IT_J_1IEXCHDR-EXNUM.
**ENDLOOP.
*SELECT * FROM BSIK
*INTO TABLE IT_BSIK
*WHERE XBLNR = IT_OUT-EXNUM AND
*LIFNR IN SO_LIFNR AND
*BUKRS = P_BUKRS AND
*GJAHR = P_GJAHR.
*LOOP AT IT_BSIK.
*IT_OUT-BELNR1 = IT_BSIK-BELNR.
**IT_OUT-BUKRS = IT_BSIK-BUKRS.
*IT_OUT-LIFNR = IT_BSIK-LIFNR.
**IT_OUT-ZUONR = IT_BSIK-ZUONR.
*IT_OUT-DMBTR1 = IT_BSIK-DMBTR.
*IT_OUT-XBLNR = IT_BSIK-XBLNR.
**IT_OUT-BLART = IT_BSIK-BLART.
*IT_OUT-BUDAT1 = IT_BSIK-BUDAT.
*IT_OUT-BLDAT1 = IT_BSIK-BLDAT.
*APPEND IT_OUT.
*ENDLOOP.
*ENDLOOP.
*ENDSELECT.
*SORT IT_OUT BY KUNNR.
LOOP AT IT_OUT.
SELECT SINGLE EXNUM FROM J_1IEXCHDR
INTO IT_OUT-EXNUM
WHERE RDOC = IT_OUT-VBELN.
SELECT BELNR LIFNR DMBTR XBLNR BUDAT BLDAT
FROM BSIK INTO (IT_OUT-BELNR1,IT_OUT-LIFNR,IT_OUT-DMBTR1,IT_OUT-XBLNR,IT_OUT-BUDAT1,IT_OUT-BLDAT1)
WHERE XBLNR = IT_OUT-EXNUM.
ENDSELECT.
SELECT SINGLE NAME1 "NAME OF CUSTOMER
FROM KNA1
INTO IT_OUT-NAME
WHERE KUNNR = IT_OUT-KUNNR.
SELECT SINGLE NAME1 "NAME OF VENDOR
FROM LFA1
INTO IT_OUT-NAME1
WHERE LIFNR = IT_OUT-LIFNR.
SELECT MATNR ARKTX FKIMG
FROM VBRP
INTO (IT_OUT-MATNR,IT_OUT-ARKTX,IT_OUT-FKIMG)
WHERE VBELN = IT_OUT-VBELN AND
WERKS = P_BUKRS.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = IT_OUT-MATNR
IMPORTING
OUTPUT = IT_OUT-MATNR.
MODIFY IT_OUT.
CLEAR IT_OUT.
ENDSELECT.
ENDLOOP.
endform. " GET_DATA
*& Form DISPLAY_DATA
text
--> p1 text
<-- p2 text
form DISPLAY_DATA .
PERFORM FILL_LAYOUT_STRUCTURE.
PERFORM ALV_HEADER USING IT_LISTHEADER.
PERFORM FILL_FIELDCAT USING :
'BLDAT' 'DOC Date' 10 'IT_OUT' SPACE SPACE,
'BUDAT' 'Post.Date' 10 'IT_OUT' SPACE SPACE,
'KUNNR' 'Customer Code' 10 'IT_OUT' SPACE SPACE,
'NAME' 'Customer Name' 35 'IT_OUT' SPACE SPACE,
'LIFNR' 'VENDOR CODE' 10 'IT_OUT' SPACE SPACE,
'NAME1' 'VENDOR DESC' 35 'IT_OUT' SPACE SPACE,
'BLART' 'Doc. Type' 2 'IT_OUT' SPACE SPACE,
'VBELN' 'BILLING DOC NO.' 10 'IT_OUT' SPACE SPACE,
'BELNR' 'Account Doc. No.' 10 'IT_OUT' SPACE SPACE,
'DMBTR' 'AMOUNT IN LOCAL' 13 'IT_OUT' SPACE SPACE,
'MATNR' 'Material Code' 10 'IT_OUT' SPACE SPACE,
'ARKTX' 'Material DESC' 35 'IT_OUT' SPACE SPACE,
'FKIMG' 'QTY' 12 'IT_OUT' SPACE SPACE,
'ZUONR' 'ASSIGNNMENT' 18 'IT_OUT' SPACE SPACE,
'EXNUM' 'Excise inv no.' 13 'IT_OUT' SPACE SPACE,
'BELNR1' 'Account Doc. No.' 10 'IT_OUT' SPACE SPACE,
'BLDAT1' 'DOC Date' 10 'IT_OUT' SPACE SPACE,
'BUDAT1' 'Post.Date' 10 'IT_OUT' SPACE SPACE,
'DMBTR1' 'AMOUNT IN LOCAL' 13 'IT_OUT' SPACE SPACE,
'XBLNR' 'REFERENCE DOC' 10 'IT_OUT' SPACE SPACE.
PERFORM ALV_EVENTS USING IT_EVENTS.
PERFORM ALV_PRINT.
PERFORM ALV_DISPLAY.
endform. " DISPLAY_DATA
*& Form FILL_LAYOUT_STRUCTURE
text
--> p1 text
<-- p2 text
form FILL_LAYOUT_STRUCTURE .
DATA: WA_EVENT TYPE SLIS_ALV_EVENT,
WA_LISTHEADER TYPE SLIS_T_LISTHEADER.
CLEAR IS_LAYOUT.
IS_LAYOUT-ZEBRA = 'X'.
is_layout-F2CODE = '&ETA'.
is_layout-detail_popup = 'X'.
IS_LAYOUT-INFO_FIELDNAME = 'COL_LINE'.
endform. " FILL_LAYOUT_STRUCTURE
*& Form FILL_FIELDCAT
text
-->P_0606 text
-->P_0607 text
-->P_10 text
-->P_0609 text
-->P_SPACE text
-->P_SPACE text
form FILL_FIELDCAT using F D O T TO P.
DATA WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
STATICS POS LIKE SY-INDEX VALUE 1.
POS = POS + 1.
CLEAR WA_FIELDCAT.
MOVE : 1 TO WA_FIELDCAT-ROW_POS,
POS TO WA_FIELDCAT-COL_POS,
F TO WA_FIELDCAT-FIELDNAME,
D TO WA_FIELDCAT-SELTEXT_L,
O TO WA_FIELDCAT-OUTPUTLEN,
T TO WA_FIELDCAT-TABNAME,
TO TO WA_FIELDCAT-DO_SUM,
P TO WA_FIELDCAT-FIX_COLUMN.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
endform. " FILL_FIELDCAT
FORM ALV_EVENTS USING EVENTS TYPE SLIS_T_EVENT.
DATA : WA_EVENTS TYPE SLIS_ALV_EVENT.
CLEAR WA_EVENTS.
WA_EVENTS-NAME = 'TOP_OF_PAGE'(001).
WA_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND WA_EVENTS TO IT_EVENTS.
ENDFORM. "alv_events
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
form ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'CALL_TCODE'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = IS_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = i_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = IT_EVENTS
IT_EVENT_EXIT =
IS_PRINT = IT_PRINT
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_OUT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " ALV_DISPLAY
*FORM FOR TOP OF PAGE
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER.
ENDFORM. "top_of_page
*& Form alv_header
FORM alv_header USING P_IT_LISTHEADER.
data : wa_listheader type slis_listheader.
data : v_date1(10).
data : v_date2(10).
data : v_kunnr1 LIKE bsid-kunnr.
data : v_kunnr2 LIKE bsid-kunnr.
data : v_name1 like t001w-name1.
clear wa_listheader.
wa_listheader-typ = 'H'.
move 'DETAILED CUSTOMER VENDOR DETAILS'
to wa_listheader-info.
append wa_listheader to it_listheader.
select single name1
from t001w
into v_name1
where werks = p_bukrs.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Plant'.
move v_name1
to wa_listheader-info.
append wa_listheader to it_listheader.
write so_budat-low to v_date1 dd/mm/yyyy no-gap.
write so_budat-high to v_date2 dd/mm/yyyy no-gap.
if so_budat-low is not initial and so_budat-high is not initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Date '.
concatenate v_date1 ' To ' v_date2 into
wa_listheader-info separated by space.
wa_listheader-info = wa_listheader-info.
append wa_listheader to it_listheader.
elseif so_budat-low is initial and so_budat-high is initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Date '.
wa_listheader-info = '*'.
append wa_listheader to it_listheader.
elseif so_budat-high is initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Date '.
wa_listheader-info = v_date1.
append wa_listheader to it_listheader.
endif.
v_kunnr1 = so_kunnr-low.
v_kunnr2 = so_kunnr-high.
if so_kunnr-low is not initial and so_kunnr-high is not initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Customer '.
concatenate v_kunnr1 ' To ' v_kunnr2 into
wa_listheader-info separated by space.
wa_listheader-info = wa_listheader-info.
append wa_listheader to it_listheader.
elseif so_kunnr-low is initial and so_kunnr-high is initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Customer '.
wa_listheader-info = '*'.
append wa_listheader to it_listheader.
elseif so_kunnr-high is initial.
clear wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Customer '.
wa_listheader-info = v_kunnr1.
append wa_listheader to it_listheader.
endif.
ENDFORM. " alv_header.
waiting for ur reply.
Thanx
Suchita -
Create Table/View with Validity Date Control?
Hi,
does anyone know the easiest way for me to create a custom view that uses validity dates to control records by time periods, similar to time constraint 1 infotypes in HR?
For instance, if I define a table to store entries like so
Client (Key): 100
PSubArea (Key): C001
Grouping (Key): 01
End Date (Key): 99991231
Begin Date: 18000101
and I want to ensure that there can only be one record active on any given date, how can I prevent someone from creating a record from 20061107 - 20071107 that overlaps the existing record?
Is there a setting I missed?
Add conditions to generated view coding? Is there a good example?
ThanksK, so I found these
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9fb3a9d111d1a5690000e82deaaa/content.htm">SAP Help - Time-Dependent Table/View</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c1/df5c3c3b067331e10000000a114084/content.htm">Generate Time-Dependence</a>
I'll give it a whirl now. -
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.
Maybe you are looking for
-
How to see all reviews in the AppStore?
Apple has changed the review system in the AppStore. Now, for many new application versions there isn't any review displayed, yet, although there are reviews for older versions of those apps. How do I display these older reviews? I can't find any but
-
Problem with defaul tabbed panel with page refresh
Hi, I have a problem with my spry tabbed panels. The default tab is set to be the 1st tab, when I move to 2nd tab and navigate through the content, as the page refreshes, and before it is fully loaded it shows the content of the first tab for about 2
-
What is the easiest way tostill have my iStore and iTunes accounts and switch from my C: drive to my E: drive which is my new hard drive?
-
Restoring facebook account on my ipad
i cannot delete the facebook account on my ipad because i dont know the password. how can i restore my own facebook account to my ipad?
-
Apple mail crashing after opening
I am using mail which has worked fine for years (literally) and suddenly 2 days ago it starts crashing as soon as I try to do anything with emails inthe inbox. I suspected malware and deleted the emails from within library and rebuilt the inbox. This