How to find segments for DB table fields?
Hi,
Please tell me how to know segments for perticular DB table fields.
We can search it manually by looking into the IDoc segment fields
But let me know if any other method is there?
Hi Suman,
Go to WE30(Enter Idoc type , click display button) , it will display list of segments, from there we can find the table fields.
Regards,
Vijay
Similar Messages
-
HOW DEFINE INNER JIONS FOR MULTIPLE TABLE-FIELDS
HI I HAVE THE IMMEDIATE ISSUE TO RESOLVE...
data: begin of it_jtab occurs 0,
gsber like tgsb-gsber,
gjahr like coss-gjahr,
kostl like csks-kostl,
posid like prps-posid,
plfaz like proj-plfaz,
plsez like proj-plsez,
estat like tj30t-estat,
perbl like coss-perbl,
wkgbtr like coep-wkgbtr,
end of it_jtab.
HOW CAN I DO INNER JOIN FOR THE GIVEN TABLE??
AM CURENTLY ON 4.0 VERSION HENCE HELP ME KNOW TO WORK ON JOINS ONLY.........Hi,
Check this prog,
Inner joins using 3 tables
Try this :-
SELECT stpostlnr stpoidnrk mastmatnr maramtart stpo~menge
INTO CORRESPONDING FIELDS OF TABLE zmat1 FROM mast
JOIN stpo ON stpostlnr = maststlnr
JOIN mara ON maramatnr = mastmatnr
WHERE stpostlty = 'M' "AND stpoidnrk IN s_matnr
AND mast~werks = 1000.
Here s_matnr is a select-options on the selection-screen.
Or this.
Code:
Select single VbrkBukrs VbrkKunrg Vbrk~Vbeln
VbrkFkdat VbrkBstnk_Vf Vbrk~Zterm
Tvzbt~Vtext
VbakVbeln VbakBstdk
LikpVbeln Likplfdat Likp~Lfuhr
into w_vbrk
from vbrk
inner join Tvzbt on TvzbtZterm = VbrkZterm and
Tvzbt~Spras = sy-langu
Inner join Vbfa as SalesLnk
on SalesLnk~vbeln = pu_vbeln and
SalesLnk~vbtyp_v = c_order
inner join Vbak on VbakVbeln = SalesLnkVbelv
Inner join Vbfa as DeliveryLnk
on DeliveryLnk~vbeln = pu_vbeln and
DeliveryLnk~vbtyp_v = c_Delivery
inner join Likp on LikpVbeln = DeliveryLnkVbelv
where vbrk~vbeln = pu_Vbeln.
This code locates sales, delivery and payment terms info from a billing document number.
or
Here, this one also works fine :
select zfpcdcadivi zfpcdproforma zfpcdfactura zfpcdaniofactura
zfpcdmontousd zfpcdmontoap zfpcdebeln zfpcdinco1
zfpcdlifnr lfa1name1 zcdvsstatus zfpcdconint
into it_lista
from zfpcd inner join zcdvs
on zfpcdebeln = zcdvsebeln
and zfpcdproforma = zcdvsproforma
and zfpcdlifnr = zcdvslifnr
inner join lfa1
on zfpcdlifnr = lfa1lifnr
where zcdvs~status = '04'.
Regards,
Arunsri -
How to find extractor for KAEP_COAC table
Hi,
I'm looking for an extractor which will held below given fields from KAEP_COAC table and if you could give me an extractor that keeps that table.
regards
KAEP_COAC AUFNR
KAEP_COAC WRGBTR
KAEP_COAC MAT_TXT
KAEP_COAC MBGBTR
KAEP_COAC BLTXT
KAEP_COAC KSTAR
KAEP_COAC GKONT_KTXT
KAEP_COAC CEL_LTXT
KAEP_COAC MEINB
KAEP_COAC BLART
KAEP_COAC MATNR
KAEP_COAC POBIDHi
Please refer the link below.
Re: How to bring KSB1 report data from R/3 to BW
standard datasource is not available either you need to enhance a datasource 0CO_OM_CCA_9 or create a zdatasource using the structure KAEP_COAC.
Thanks -
How to find Tcode for database table
Hi Gurus,
I need to find out tcode for Standard SAP table in SCM APO '/SAPAPO/PBMVWT' for maintaining Plannning book text in different languages.
The problem is that Table maintainance is not maintained so SM30 wont work. I tried Where used list option for table but no tcode or report found using this table..
Kindly help
SwapnilHi,
there is no maintenance txn. If you need to have text in different languages, you need to do it as follows:
- logon for example once in english
- goto txn /SAPAPO/SDP8B
- maintain the text in English and activate the planning book.
- Logon in the other Language
- enter /SAPAPO/SDP8B again
- Type in the text in the other language and activate the Planning book again.
This will give the planning book language specific texts.
Best regards
Rico Frenzel -
Hi everyone ,
I am attaching files from local disk to CRM Opportunity by using method cl_crm_documents=>create_with_file .
I am able to see files in SAP frontend portal , but the problem is some of the fields in properties tab coming blank .
So how to find the NAME and VALUE fields of PROPERTIES structure in create_with_file .
Right now i am passing below fields these ar coming
"-----Filling Properties structure
ls_prop-name = 'KW_RELATIVE_URL'.
ls_prop-value = wa_path-ls_name.
APPEND ls_prop TO lt_prop.
ls_prop-name = 'DESCRIPTION '.
ls_prop-value = 'Strategy paper for action plan1' .
APPEND ls_prop TO lt_prop.
ls_prop-name = 'LANGUAGE'.
ls_prop-value = sy-langu.
APPEND ls_prop TO lt_prop.
but fileds like Attachment Type , Document Status , Line of Business , Business Year and Country of LE are not coming
as i frontend is a CRM custom application to mentain opportunity .
at prasent i am passing attribute Names and default values of these fields to properties structure but then also i am unable to see it in front end.
Please help if anybody knows where to find the NAME and VALUE fields for thse parameters.
Regards
ChetanI used insert statement to populate these fields in table CRMD_KW_DOC_GEN as these are custom fields.
Regards
Chetan -
How to find Transaction for a Known Table maintenance View
Hello Friends,
May I know how to find transaction for a known table maintenance View.
Thanks,
Best Regards,
Sudhanshu GargGoto SE16 Transaction and enter TSTCP Table
Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;
enter table name in bold.
Thanks
Seshu -
How to find the count of tables going for fts(full table scan in oracle 10g
HI
how to find the count of tables going for fts(full table scan) in oracle 10g
regardsHi,
Why do you want to 'find' those tables?
Do you want to 'avoid FTS' on those tables?
You provide little information here. (Perhaps you just migrated from 9i and having problems with certain queries now?)
FTS is sometimes the fastest way to retrieve data, and sometimes an index scan is.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
There's no 'FTS view' available, if you want to know what happens on your DB you need, like Anand already said, to trace sessions that 'worry you'. -
How to provide hyperlink for a particular field in ALV
Hi,
How to provide hyperlink for a particular field in alv report.
Regards,
Ramu.Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
wa_field-hotspot = 'X'.
REPORT ztest_alv.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
vbeln TYPE likp-vbeln,
END OF it_likp.
DATA: layout TYPE slis_layout_alv.
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_likp
EXCEPTIONS
program_error = 1.
*& Form user_Command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'VL' FIELD selfield-value.
CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_Command -
How to find the list of Tables....
Hi
How to find the list of Tables associated with When a Goods Issue is done for a Process Order ??
Kindly tell me step-by-step procedure in browsing it.
cheers
MaruthiRamHi
goto SE16 Click F4, You have two options Information system & Sap Applications.
Click on SAP Applications & selec the application you wnat to see, for E.g Purchasing you can click on materials managemnt, Purchasing if you drill down you will see the list of tables....
reward points if useful
Thanks & Regards
Kiran -
H how to find if the psa table is included in psa deletion process chain
Hi all
can anybody tell me .
I have a psa table it's technical name is /BIC/B*
h how to find the above psa table is included in psa deletion process chain or not
please help meHi
Ope the PC in RSPC1 -->go to planning view of process chain
in left side you will find different types of process types.
under other BW process types folder -->you will find process type "Delete request from PSA"
drag this into your process chain planning view and customize it based on your requirements.
check the below article for step by step procedure
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
Regards,
Venkatesh -
Hi Experts,
I need to implement F4 help for ALV table field.
I my scenario, I am using two views. If we click on any record in fist view then it displays the popup window (second view) with relevant record details.
Here one of the columns having fieldnames corresponding values (old values), for correcting old values I have created new value editable column, we can enter new value for old value then we can save it. Till this functionality is ok.
Then I have included OVS help for new value field. Here I need to get f4 help for newvalue field relevant to fieldname.
For example: user clicks on f4 in cell (new value) then if corresponding fieldname is u2018WERKSu2019 then it shows the plant values
Here I can get fieldname, domain name and value table using method set_attribute ().
Same concept I have implemented in ALV using F4IF_FIELD_VALUE_REQUEST. It is working fine
Here I have little bit confusion. Please advise me how to implement in OVS.
Regards,
BBCHi,
you'll have to create a method for the OVS search help (define it in the "OVS component usage" field in the context).
Sample code (should work for WERKS):
method on_ovs .
declare data structures for the fields to be displayed and
for the table columns of the selection list, if necessary
types:
begin of lty_stru_input,
add fields for the display of your search input here
WERKS TYPE WERKS,
end of lty_stru_input.
types:
begin of lty_stru_list,
add fields for the selection list here
WERKS TYPE WERKS_D,
NAME1 type NAME1,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
lv_window_title type string,
lv_group_header type string,
lv_table_header type string,
lv_werks type werks_d.
field-symbols: <ls_query_params> type lty_stru_input,
<ls_selection> type lty_stru_list.
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
in this phase you have the possibility to define the texts,
if you do not want to use the defaults (DDIC-texts)
Set label from Medium Description to something more logical...
ls_text-name = `NAME1`. "must match a field in list structure
ls_text-value = `Plant description`.
insert ls_text into table lt_label_texts.
Set col header from Medium Description to something more logical...
ls_text-name = `NAME1`. "must match a field in list structure
ls_text-value = `Plant description`.
insert ls_text into table lt_column_texts.
lv_window_title = wd_assist->get_text( `003` ).
lv_group_header = wd_assist->get_text( `004` ).
lv_table_header = wd_assist->get_text( `005` ).
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
when if_wd_ovs=>co_phase_1. "set search structure and defaults
In this phase you can set the structure and default values
of the search structure. If this phase is omitted, the search
fields will not be displayed, but the selection table is
displayed directly.
Read values of the original context (not necessary, but you
may set these as the defaults). A reference to the context
element is available in the callback object.
ovs_callback_object->context_element->get_static_attributes(
importing static_attributes = ls_search_input ).
pass the values to the OVS component
ovs_callback_object->set_input_structure(
input = ls_search_input ).
when if_wd_ovs=>co_phase_2.
If phase 1 is implemented, use the field input for the
selection of the table.
If phase 1 is omitted, use values from your own context.
if ovs_callback_object->query_parameters is not bound.
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
if not <ls_query_params> is assigned.
TODO exception handling
endif.
call method ovs_callback_object->context_element->get_attribute
exporting
name = 'WERKS'
importing
value = lv_werks.
data: lv_subcat_text type rstxtmd.
select werks
name1
into table lt_select_list
from T001W.
ovs_callback_object->set_output_table( output = lt_select_list ).
when if_wd_ovs=>co_phase_3.
apply result
if ovs_callback_object->selection is not bound.
endif.
assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `WERKS`
value = <ls_selection>-werks ).
endif.
endcase.
endmethod. -
What is authorization object and how to create it for a table
Hi All,
What is authorization object and how to create it for a table?
ThanksHi
Authorization
For authorization checks, there are many ways of linking authorization objects with user actions in an SAP system. The following discusses three possibilities in the context of ABAP programming.
Authorization Check for Transactions
You can directly link authorization objects with transaction codes. You can enter values for the fields of an authorization object in the transaction maintenance. Before the transaction is executed, the system compares these values with the values in the user master record and only starts the transaction if the appropriate authorization exists.
Authorization Check for ABAP Programs
For ABAP programs, the two objects S_DEVELOP (program development and program execution) and S_PROGRAM (program maintenance) exist. They contains a field P_GROUP that is connected with the program attribute authorization group. Thus, you can assign users program-specific authorizations for individual ABAP programs.
Authorization Check in ABAP Programs
A more sophisticated, user-programmed authorization check is possible using the Authority-Check statement. It allows you to check the entries in the user master record for specific authorization objects against any other values. Therefore, if a transaction or program is not sufficiently protected or not every user that is authorized to use the program can also execute all the actions, this statement must be used.
AUTHORITY-CHECK OBJECT object
ID name1 FIELD f1
ID name2 FIELD f2
ID namen FIELD fn.
object is the name of an authorization object. With name1, name2 ... , and so on, you must list all fields of the authorization object object. With f1, f2 ... , and so on, you must specify the values that the system is to check against the entries in the relevant authorization of the user master record. The AUTHORITY-CHECK statement searches for the specified object in the user profile and checks the useru2019s authorizations for all values of f1, f2 ... . You can avoid checking a field name1, name2 ... by replacing FIELD f1 FIELD f2 with DUMMY.
After the FIELD addition, you can only specify an elementary field, not a selection table. However, there are function modules available that execute the AUTHORITY-CHECK statement for all values of selection tables. The AUTHORITY-CHECK statement is supported by a statement pattern.
Only if the user has all authorizations, is the return value sy-subrc of the AUTHORITY-CHECK statement set to 0. The most important return values are:
· 0: The user has an authorization for all specified values.
· 4: The user does not have the authorization.
· 8: The number of specified fields is incorrect.
· 12: The specified authorization object does not exist.
A list of all possible return values is available in the ABAP keyword documentation. The content of sy-subrc has to be closely examined to ascertain the result of the authorization check and react accordingly.
REPORT demo_authorithy_check.
PARAMETERS pa_carr LIKE sflight-carrid.
DATA wa_flights LIKE demo_focc.
AT SELECTION-SCREEN.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD pa_carr
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE e045(sabapdocu) WITH pa_carr.
ELSEIF sy-subrc <> 0.
MESSAGE e184(sabapdocu) WITH text-010.
ENDIF.
START-OF-SELECTION.
SELECT carrid connid fldate seatsmax seatsocc
FROM sflight
INTO CORRESPONDING FIELDS OF wa_flights
WHERE carrid = pa_carr.
WRITE: / wa_flights-carrid,
wa_flights-connid,
wa_flights-fldate,
wa_flights-seatsmax,
wa_flights-seatsocc.
ENDSELECT.
Regards
Hitesh -
Hi,
How to find the average of table row values it should display in next row in libwindow/CVI
Please let me know the solution.There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to find indexes in sql tables
Hi i need help for how to find the indexes for the sql tables.I had some tables in sql 2005 and i need to find indexes for that tables.Can anyone will help in this isssue.
I think you can use one of the built-in db functions ... (but it depends upon which database you're using)
in sql server:
sp_helpindex tablename -
How 2 find program for smartform
how 2 find program for smartform
Hi,
go to TNAPR table and find the driver program for the layout.
give the layout name, if you know the output type also give it.
OR
go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
that way you can find..
Or else...
Go to the Tcode -> NACE
OR
Go to the T-code 'SMARTFORMs'
Give your form name
go to the general attributes.
Check the Package name.
then go to T-Code-> SE80
there check the program name for a package wise
Regards,
KK
Message was edited by:
Kishore Kumar Karnati
Maybe you are looking for
-
HTTP_POST_FILES on UNIX server cannot read file
Hi, We are currently facing an issue where we are trying to upload a file to the Content Server using the FM HTTP_POST_FILES. The file we are trying to upload resides on the SAP server itself under the folder /usr/sap/DHC/SYS/global/temporary_folder/
-
Strange behavior from a PB G4 (Part 2)
On to my next issue. Often when I'm typing the insertion point will jump to someplace other than where it should be or just disappear all together. I'm not doing anything to cause it to do this. I've been being really carefull to not to do anything w
-
Diffrence between ListenerServlet and FormsServlet
New info : Where is the name servlet.oracle.forms.servlet.ListenerServlet taken from ? What is the difference between "servlet.oracle.forms.servlet.ListenerServlet" and "oracle.forms.servlet.FormsServlet" (both are present in zone.properties)? How ca
-
I'm trying to edit audio in Final Cut and simply want to chop parts of the audio. I'm editing in the Viewer. The audio does not appear in the canvas when I double click. Is there a way to simply chop audio without using Keyframes? Seems like this sho
-
How I use aria2 to download torrent files
I was reading topics' titles, and then I saw this one: https://bbs.archlinux.org/viewtopic.php?id=154476 At first, he wanted to use aria2, but then he switched to rtorrent. rtorrent is great, but It's not good for scripting, so I don't use it. aria2