I need below fields at my selection screen.From which table we can find the
Sales Org > only one selection field
Division > only one selection field
Channel > from u2013 to fields
Sales Office Channel > from u2013 to fields
Sales Rep Channel > from u2013 to fields
User ID of the CSR Channel > from u2013 to fields
Customer Channel > from u2013 to fields
Material Channel > from u2013 to fields
Date: Channel > from u2013 to fields
I need these fields at my selection screen.From which tables I find these things.I need this logic also.
I need help
Similar Messages
-
From which tables i would find the delivery and billing document field..??
I need to create an ALV report which displays the following details in the output.
Order No Item No Material Order Qty Item Category Plant Delivery Billing Document Sales Org Dist Channel Division Created By Created On Changed On
For(Order No Item No Material Order Qty Item Category Plant) i took the fields from vbap and
for(Sales Org Dist Channel Division Created By Created On Changed On)i took the fields from vbak..
From which tables i would find the delivery and billing document field related to sales document.??
need help...
Moderator message : Requirements dumping not allowed, thread locked.
Edited by: Vinod Kumar on Mar 6, 2012 2:53 PMi am new to abap...so i dont have idea about sd table relationship.
so please reply how to add delivery and billing doc in my coding below..
*& Report ZINAA_SD
REPORT zinaa_sd.
TABLES: vbap, vbak, vbfa.
TYPE-POOLS: slis.
CONSTANTS: c_x TYPE char1 VALUE 'X'.
TYPES:
BEGIN OF st_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
END OF st_vbap,
BEGIN OF st_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_vbak,
BEGIN OF st_final,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
pstyv TYPE vbap-pstyv,
kwmeng TYPE vbap-kwmeng,
werks TYPE vbap-werks,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
aedat TYPE vbak-aedat,
END OF st_final.
DATA:
lt_vbap TYPE TABLE OF st_vbap,
ls_vbap TYPE st_vbap,
lt_vbak TYPE TABLE OF st_vbak,
ls_vbak TYPE st_vbak,
lt_final TYPE TABLE OF st_final,
ls_final TYPE st_final,
lt_fieldcat TYPE slis_t_fieldcat_alv,
ls_fieldcat TYPE slis_fieldcat_alv,
layout TYPE slis_layout_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbap-vbeln,
s_erdat FOR vbap-erdat.
SELECTION-SCREEN END OF BLOCK b1.
PERFORM select_data.
PERFORM loop_final.
PERFORM sort.
PERFORM a USING:
'VBELN' TEXT-002,
'POSNR' TEXT-003,
'MATNR' TEXT-004,
'KWMENG' TEXT-005,
'PSTYV' TEXT-006,
'WERKS' TEXT-007,
'VKORG' TEXT-008,
'VTWEG' TEXT-009,
'SPART' TEXT-010,
'ERNAM' TEXT-011,
'ERDAT' TEXT-012,
'AEDAT' TEXT-013.
PERFORM display.
*& Form SELECT_DATA
text
FORM select_data.
SELECT
vbeln
vkorg
vtweg
spart
ernam
erdat
aedat
INTO CORRESPONDING FIELDS OF TABLE lt_vbak
FROM vbak
WHERE vbeln IN s_vbeln AND erdat IN s_erdat.
IF sy-subrc = 0.
SORT lt_vbak by vbeln.
ENDIF.
SELECT
vbeln
posnr
matnr
kwmeng
pstyv
werks
INTO CORRESPONDING FIELDS OF TABLE lt_vbap
FROM vbap
FOR ALL ENTRIES IN lt_vbak
WHERE vbeln = lt_vbak-vbeln.
IF sy-subrc = 0.
SORT lt_vbap by vbeln.
ENDIF.
ENDFORM. "SELECT_DATA
*& Form LOOP_FINAL
text
FORM loop_final.
LOOP AT lt_vbap INTO ls_vbap.
ls_final-vbeln = ls_vbap-vbeln.
ls_final-posnr = ls_vbap-posnr.
ls_final-matnr = ls_vbap-matnr.
ls_final-kwmeng = ls_vbap-kwmeng.
ls_final-pstyv = ls_vbap-pstyv.
ls_final-werks = ls_vbap-werks.
READ TABLE lt_vbak INTO ls_vbak WITH KEY vbeln = ls_vbap-vbeln BINARY SEARCH.
ls_final-vkorg = ls_vbak-vkorg.
ls_final-vtweg = ls_vbak-vtweg.
ls_final-spart = ls_vbak-spart.
ls_final-ernam = ls_vbak-ernam.
ls_final-erdat = ls_vbak-erdat.
ls_final-aedat = ls_vbak-aedat.
APPEND ls_final TO lt_final.
CLEAR ls_final.
ENDLOOP.
ENDFORM. "LOOP_FINAL
*& Form SORT
text
FORM sort.
ls_sort-spos = '01' .
ls_sort-fieldname = 'VBELN'.
ls_sort-tabname = 'LT_FINAL'.
ls_sort-up = c_x.
ls_sort-subtot = c_x.
APPEND ls_sort TO lt_sort .
ENDFORM. "SORT
*& Form A
text
-->FNAME text
-->SELTEXT text
-->EMPHA text
FORM a USING fname TYPE string seltext TYPE string.
IF fname = 'KWMENG'.
ls_fieldcat-do_sum = c_x.
ENDIF.
ls_fieldcat-fieldname = fname.
ls_fieldcat-seltext_m = seltext.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ENDFORM. "A
*& Form ALV
text
FORM display.
layout-zebra = c_x.
layout-colwidth_optimize = c_x.
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 = ' '
I_CALLBACK_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 = layout
it_fieldcat = lt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = lt_sort
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = C_X
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_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 = lt_final
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 -
From what table I can find the field STTXT?
From what table I can find the field STTXT (Description of maintenance status)?
Regards,
SubhasishHello,
Have a look at thgis thread.
what is STATUS_TEXT_EDIT function
Vasanth -
How to Find out the from which table we can get the following fields?
The following fields are from invoice data
How to know or from which table we get the following fields:
Header Details:
Manifest:, Finance Control #:, Alternate SID:, Carrier:, Container/Trailer #:, Hazmat Code:, Harmonizing Code, Freight Forwarder, Fiscal Rep., Ship From, Notify Party
Item Details:
VAT/Tax Rate %, VAT/Tax Amount, Measurements, Net Weight, Gross Weight
thanksDear Krishnama
Place your mouse on the required fields and press F1. A box with header Performance Assistant will appear in front of you where you select "Technical information" (icon like hammer and spanner).
You can now see what table it is.
thanks
G. Lakshmipathi -
Could anyone tell me in which tables could I find the field DMSHB?
Hi All
Could anyone tell mein which tables could I find the field DMSHB?
It's managed in the t.code f-32
ThanksHi,
find the below tables;
BWPOS
DSKOP
J_1AOIFWVL
MHND
RFASLD11B
TBKOW
TZIN3
Thanks -
Looks like by default it share desktop, is there anyway to show selective screen from my laptop?
Welcome to the Apple Community.
Unfortunately not. -
How to capture the user change in an input field on a selection screen?
I am coding a selection screen in which there are two input fields. The first field takes a Unix directory from the user input. Based on the input value, the second field will be populated with a the name of a file under the corresponding directory.
My question is how I can make the program capture the user input without having to make the user press ENTER after they enter the value in the first field?
Any help will be greatly appreciated.Venkat,
Actually you led me to the real solution! It's the function module DYNP_VALUES_READ that does the trick for me. This function enables the program to capture dynamic user changes without recourse to PAI. Please refer to the code below:
REPORT zreiabsintf MESSAGE-ID zreiabsintfmc.
*<HGDC------------------------------------------------------------------
* Selection screen for the conversion program
*HGDC>------------------------------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-001.
PARAMETERS: p_indir LIKE epsf-epsdirnam OBLIGATORY, " Inbound file directory
p_infile LIKE epsf-epsfilnam DEFAULT gc_infile OBLIGATORY, " Inbound file name
SELECTION-SCREEN END OF BLOCK input.
*<HGDC------------------------------------------------------------------
* Displays a file-open dialog when the user clicks the search
* help button next to the inbound file text field. The user
* can select the inbound file visually.
*HGDC>------------------------------------------------------------------
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
* Capture any user change to the directory.
PERFORM check_dir_change.
* Display the file open dialog
PERFORM file_open_dialog CHANGING p_infile.
*<HGDC------------------------------------------------------------------
* Global constants
*HGDC>------------------------------------------------------------------
CONSTANTS:
gc_indir LIKE epsf-epsdirnam
VALUE '/interfaces/<SID>/inbound/', " Default inbound directory template
gc_infile LIKE epsf-epsfilnam VALUE 'input'. " Default inbound file name
*<HGDC------------------------------------------------------------------
* Global data
*HGDC>------------------------------------------------------------------
DATA:
gs_dynpfields TYPE dynpread, " Fields of the current screen
gt_dynpfields LIKE STANDARD TABLE OF gs_dynpfields. " Table of the screen fields
*& Form file_open_dialog
* Opens a dialog window for the user to choose a file in
* the specified Unix directory.
* <--P_FILE is the file to be selected.
FORM file_open_dialog CHANGING p_file.
* Validate the directory.
OPEN DATASET p_indir FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
MESSAGE i001(zreiabsintfmc) WITH p_indir. " Unable to open the given directory
EXIT.
ENDIF.
CLOSE DATASET p_indir.
* Call the dialog window to open a file in the directory.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = p_indir
IMPORTING
serverfile = p_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE i002(zreiabsintfmc). " Failed to open the file.
EXIT.
ENDIF.
ENDFORM. " file_open_dialog
*& Form check_dir_change
* text
* --> p1 text
* <-- p2 text
FORM check_dir_change .
CLEAR gs_dynpfields.
CLEAR gt_dynpfields.
gs_dynpfields-fieldname = 'P_INDIR'.
gs_dynpfields-fieldvalue = p_indir.
APPEND gs_dynpfields TO gt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = gt_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_dynpfields INTO gs_dynpfields INDEX 1.
p_indir = gs_dynpfields-fieldvalue.
ENDFORM. " check_dir_change
Thanks for all your answers! The problem is now solved.
Edited by: Ning Hu on Apr 9, 2008 11:32 AM
Edited by: Ning Hu on Apr 9, 2008 11:34 AM -
Can you "combine" criteria for 2 or more fields on a Selection Screen?
Good day everyone,
Here's my question: I understand that I can put fields on a Selection Screen and pre-fill them with data values. In this particular case, I want to pre-fill a couple of hidden fields with data values that will be used as criteria when I read data from the database; however, I need to pull back records that have this COMBINATION of data. For example:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
So in my SQL, if I say "werks IN s_werks" and "btrtl IN s_brtrl", true, it will still work. But really, I need to say "if werks = 'z002' and btrtl = 'z001', or werks = 'z002' and btrtl = 'z002', etc. I can't rely on the simple "IN" functionality because it's possible a new value could be added in the future:
WERKS BTRTL
Z003 Z003
So if I use the "IN" logic and the record has werks = 'Z002' and btrtl = 'Z003', it would be returned. But I really don't want it returned, since a combination of werks = 'Z002' and btrtl = 'Z003' doesn't exist in my table of valid combinations.
Is this even possible to do in a Selection Screen? Do I go ahead and populate the fields separately, use the "IN" functionality, then spin through my resulting internal table and delete anything that doesn't match my "table" of valid combinations? Do I skip putting these on a Selection Screen completely and check the values in my SQL statement?
Thanks in advance -- points, as always, will be given.Hi
Yuo can try to use FOR ALL ENTRIES option.
IF you have:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
You should do something like that:
DATA: BEGIN OF <TAB_SEL> OCCURS 1,
WERKS TYPE WERKS,
BTRTL TYPE BTRTL,
END OF <TAB_SEL>.
WERKS BTRTL
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
SELECT * FROM <TABLE> INTO TABLE ITAB
FOR ALL ENTRIES IN <TAB_SEL>
WHERE WERKS = <TAB_SEL>-WERKS
AND BTRTL = <TAB_SEL>-BTRTL.
In this case you need to fill correctly the internal table <TAB_SEL> with the all combinations.
Max -
To get plant field in my selection screen based on user profile maintained
Hi All,
I have plant (WERKS) field in my selection screen. Now I need to get the plant value maintained in the user profile for that user. So how to get the plant value based on the user profile.
Please let me know if anyone having idea on this. I will reward to you with the valid points.
Regards
raghu.Hi Raghu,
I have searched and found this information, check it may help you
Check the SY-UNAME with the the name of the Plant
User Plant user data take it from T001W table
and All logon User data will be in USR02 table
take the data from corresponding tables and check.
If you are working in SRM
Use FM BBP_READ_ATTRIBUTES to get the User plant after passing the User ID to the FM.
in SUIM go to Users by Complex Selection criterion.
In that there would be the Authorization Object..select an object which has the value plant in it and enter the value inthat....
Also u can enter WERKS value as 1120 in the object field and get the list,
Regards,
Satish -
REPORT PAINTER - Add a field to a selection screen - custom report
Hi,
I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
Thanks a lot,
JulienHi Julien Girard ,
Could you please check the below link :
http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
Regards,
S.Manu. -
REPORT PAINTER - Add a field to a selection screen to a CUSTOM REPORT
Hi,
I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
Thanks a lot,
JulienHi Julien Girard ,
Could you please check the below link :
http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
Regards,
S.Manu. -
Can I get field name of Selection screen ?
Hi, experts.
I'd like to manage PGM's screens & fields of screens. I need to know field names of selection screen in external PGMs to manage input values of those fields.
For values, I'll use 'Dynp_values_read', but what should I use for getting field names of selection screen?
Is there any functions, classes or tables for PGM's fields of selection screen?
I've found tables&functions for this and I found D020S, D020T, D021T for PGM's screen. But I counld't see proper field names that shows on a selection screen when I excuted PGM. I guess there's a conversion routine between data that saved in repository and field name on screen.
Please let me know what should I use a function, tables or else.
Thanks.Hi
Use Read text pool syntax
READ TEXTPOOL program name
INTO T_TPOOL
LANGUAGE 'NL'.
within TB_TPOOL all select option field namees will be stored under field ID with type S
Edited by: Lavanya K on Apr 22, 2009 10:02 AM -
User must fill at list one field in a selection screen in report
Hi experts,
i have a report that the user should choose between 2 fields or he can fill them both. but he must to fill at list one of them- at the selection screen.
how do i check that the user filled at list one of them.
any help will be appreciate it.
dana.Hi ,
You can check that in AT SELECTION-SCREEN event.
To validate that in the IF condition check whether any one of the parameters
filled or not.If both the fields are initial then give a error message to proceed further.
Check the code -
PARAMETERS : p_name(20) TYPE c,
p_id(10) TYPE c.
AT SELECTION-SCREEN.
IF p_name IS INITIAL AND p_id IS INITIAL .
MESSAGE 'Enter at least one field' TYPE 'E'.
ENDIF.
START-OF-SELECTION.
WRITE 'Test'.
Regards
Pinaki -
Currency field on a selection screen of type 'DMBTR'.
Hello ABAPers,
Could you please tell me how to do it?
I have a currency field on a selection screen of type 'DMBTR'.
When i input and press the enter key ,i want the value to be displayed in the following style.
1. CURRENCY EQ 'JPY'
EX:
Value before pressing EnterKey = 123456
Value after pressing EnterKey = 123,456
i.c the value should be displayed without decimal point
2. CURRENCY NE 'JPY'
EX:
Value before pressing EnterKey = 123456
Value after pressing EnterKey = 123,456.00
i.c the value should be displayed with decimal point
Note:The above trick has already been done on a standard dynpro screen of Tr.Code FB60 and Field 'Amount'.
<removed_by_moderator>
Thanks and Regards,
Mohan
Edited by: Govindasamy Mohan on Oct 8, 2009 6:22 PM
Edited by: Julius Bussche on Oct 9, 2009 1:36 PMHi ABAP Lover,
Thanks a lot for your reply.
I had the same idea as yours like using data type 'P'.
But, the problem is that there is only one currency field on the screen .There is also a field of 'Company Code'.
Both fields are mandatory .
Hence,the requirement is to convert the currency value to the currency of the company code which is input .
The conversion should yield the following output on the screen after pressing the enter button.
1. When currency EQ 'JPY' , the value should be displayed without decimal point
2.When currency NE 'JPY' , the value should be displayed with decimal point
I am very sorry for not explaining you clearly in my first posting.
Thanks and Regards,
Mohan -
Add certain field at dynamic selection screen in FBL3N transaction
Hello Expert,
I would like to add entry date field (BKPF-CPUDT) at dynamic selection screen in FBL3N transaction.
So, I went to SE36 transaction and changed something in selection view for SDF.
However, it didn't work.
Is there anyone who knows how to add a certain field at dynamic selection screen in FBL3N transaction?
Thanks in advance.
BR,
Chris KimHi
Refer to the following thread
Additional field selections in FB03
It talks about adding Header Text field
You should be able to add entry date similarly
Regards
Sach!n
Maybe you are looking for
-
Save word document in MS Access
Hi Can anyone tell me how can i save and open word documents in MS Access database using java? Thanks
-
FV60 Vendor Invoice Amount Split Tab Field
Greetings! Our users do not have authorization to access to FB60 - how can we open the fields (OTA and NAME OF OTA PAYEE) in the Amount Split Tab using FV60 - Park Vendor Invoice? Thank you in advance
-
EKKO+ RSEG : Report times out
Hi What would be the most effetive way to check whether an purchase order has been invoice receipt(IR) and what the invoice document number is? The report times out because i don't use the year and invoice document number when reading rseg. The link
-
Bill of Material (BOM) for any Material
Dear all, I want to fetch the BOM Components for any material. can any body tell me the Flow of tables with link between them for finding the bom. Thans in advance Regards, Anshuman
-
Multiple ASM DiskGroup with BCV
Hello. I have a question about multiple Diskgroup using BCV in the same ASM instance. OS:linux rhel 5 update 1 Database:10.2.0.4 ASM and CRS 11.1 We are consolidating applications into one instance. Each application will have their own tablespaces, a