Displaying ALV as in standard Tcode FBL5N
Hi Experts,
My requirement is to display ALV list sorted on company code, Customer number and currency fields. Then it should be subtotaled based on the currency field and sum up payment amount field as displayed in standard transaction FBL5N.
I have done till this part by making the it_sort-subtotal field = 'X' In currency field. And field fieldcat-do_sum = 'X' on Payment amount field.
Now the ALV list should display separate totals for each currency after every customer. Then the grand total for every currency after every company code for all the customers in that company code. And in the end of ALV grand total should be displayed based on adding all the subtotals for each currency.
For example :
COMPANY CODE || CUSTOMER || PAYMENT AMOUNT || CURRENCY
2030 || 6 || 5.00 || USD
2030 || 6 || 1.00 || USD
TOTAL 6.00 USD
2030 || 6 || 4.00 || SGD
|| 6 || 3.00 || SGD
TOTAL 7.00 SGD
6 USD
7 SGD
2030 || 6318 || 1.00 || NZD
2030 || 6318 || 2.00 || NZD
TOTAL 3.00 NZD
2030 || 6318 || 4.00 || USD
2030 || 6318 || 1.00 || USD
TOTAL 5.00 USD
3.00 NZD
5.00 USD
============================================================
11.00 USD
7.00 SGD
3.00 NZD
I Hope I made myself clear. Please help on the issue.
Edited by: Sunanda05 on Apr 13, 2011 9:08 AM
Edited by: Sunanda05 on Apr 13, 2011 9:14 AM
Edited by: Sunanda05 on Apr 13, 2011 10:08 AM
Note Still Valid in Market place.
"SAP Note 1111155 - FSCM-DM: Termination "Open SQL
statement is too large."
Note Language: English Version: 10 Validity: Valid Since 07-28-2010
Summary
Symptom
When you access dispute case using the integration (creating dispute case
using FI transactions (for example, FBL5N), clearing items to which dispute
case have been assigned), the system issues the dump "Open SQL statement is
too large".
The error occurs if there are many (more than 1000) dispute cases for a
customer.
Other terms
FBL5N, FBZ1, F-32, integration
Reason and Prerequisites
This problem is due to a very large dispute case volume.
Solution
Import the relevant Support Package or implement the attached correction
instructions.
Header Data
Release Status: Released for Customer
Released on: 07-28-2010 08:02:45
Master Language: German
Priority: Correction with medium priority
Category: Program error
Primary Component: FIN-FSCM-DM Dispute Management
Valid Releases
Software Component Release From
Release
To
Release
and
Subsequent
SAP_APPL 600 600 600
SAP_APPL 602 602 602
SAP_APPL 603 603 603
SAP_APPL 604 604 604
SAP_APPL 605 605 605
PI 2004.1 2004_1_47"
Similar Messages
-
Standard tcode FBL5N dump in pre production.
I am getting a dump when I execute the standard tcode FBL5N (Customer line item) with one company code. FBL5N tcode is not at all giving dump in production system, however it dumps in pre production.
The dump exists in the function module : fdm_local_get_objects_range while executing the SELECT stmt
*SELECT * FROM fdm_dcobj*
INTO CORRESPONDING FIELDS OF TABLE et_object_data
WHERE logsys LIKE i_logsys
AND obj_type LIKE i_obj_type
AND obj_key IN it_range_obj_key
AND relation LIKE i_relation
AND case_guid_loc IN it_guid
AND is_confirmed LIKE i_confirmed
AND is_voided LIKE i_voided.
Do I need to search for sap note ?
Below is dump analysis
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
in procedure "FDM_LOCAL_GET_OBJECTS_RANGE" "(FUNCTION)", nor was it propagated by
a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The SQL statement generated from the SAP Open SQL statement violates a
restriction imposed by the underlying database system of the ABAP
system.
Possible error causes:
o The maximum size of an SQL statement was exceeded.
o The statement contains too many input variables.
o The input data requires more space than is available.
o ...
You can generally find details in the system log (SM21) and in the
developer trace of the relevant work process (ST11).
In the case of an error, current restrictions are frequently displayed
in the developer trace.
How to correct the error
The SAP Open SQL statement concerned must be divided into several
smaller units.
If the problem occurred due to the use of an excessively large table
in an IN itab construct, you can use FOR ALL ENTRIES instead.
When you use this addition, the statement is split into smaller units
according to the restrictions of the database system used.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:Note Still Valid in Market place.
"SAP Note 1111155 - FSCM-DM: Termination "Open SQL
statement is too large."
Note Language: English Version: 10 Validity: Valid Since 07-28-2010
Summary
Symptom
When you access dispute case using the integration (creating dispute case
using FI transactions (for example, FBL5N), clearing items to which dispute
case have been assigned), the system issues the dump "Open SQL statement is
too large".
The error occurs if there are many (more than 1000) dispute cases for a
customer.
Other terms
FBL5N, FBZ1, F-32, integration
Reason and Prerequisites
This problem is due to a very large dispute case volume.
Solution
Import the relevant Support Package or implement the attached correction
instructions.
Header Data
Release Status: Released for Customer
Released on: 07-28-2010 08:02:45
Master Language: German
Priority: Correction with medium priority
Category: Program error
Primary Component: FIN-FSCM-DM Dispute Management
Valid Releases
Software Component Release From
Release
To
Release
and
Subsequent
SAP_APPL 600 600 600
SAP_APPL 602 602 602
SAP_APPL 603 603 603
SAP_APPL 604 604 604
SAP_APPL 605 605 605
PI 2004.1 2004_1_47" -
Displaying Customer Contacts in TCODE FBL5N
Hi ,
I need to display Customer Contacts in tcode: FBL5N
this is same as i am getting the Customer Contacts in tcode:FD03
So i need to display data in pop box with ALV with other push buttons on it
so can any one will sujest how to go about it.
Or i need to use any Enhancements for it
if please give me a advice
thank you
Regards
Raghavendra PrasadHi,
<b>Implement BTE 1650</b> (LINE ITEM DISPLAY: Add to data per line ).
Goto transaction FIBF to impplement BTE. You will find this BTE under "Environment - > Info system(p/s).
Refer to this link for more information related to BTEs
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
This is how you implement BTE.
In FI you can use BTEs (Business transaction evernts). You can use transaction FIBF to implement BTEs. Following are the steps on how you can implement BTE once you are in transaction FIBF.
<b>[1].</b> first of all you need to find out the suitable BTE for your requirement. There are two kind of interfaces available in SAP for BTEs a). Publish & Subscribe interfaces and b). Process interfaces .
To do this, choose Environment -> Info system (P/S) or Environment -> Info system (Processes). Execute the program. You should enter "A" as the attribute type. You see the respective interfaces with which the R/3 System provides you. Note the key of the interface which you require. ( key is nothing but the '8' digit / character number ). All the iterface comes with sample function module. Once you identify the interface which meet your requirement, double-click it and it will show you the sameple function module.
In your case you will find your BTE under Environment -> Info system (p/s). The BTEs ise,
Key Description
<b>00001650: LINE ITEM DISPLAY: Add to data per line</b>
If you double click any of this, it will show you the sample function moule name. In this case the sample FM is <b>SAMPLE_INTERFACE_00001650.</b>
Note down the key and sample FM name.
<b>[2].</b> Enter a product using "Settings -> products -> of a Customer. Here you enter the product name in customer name space and give meaningful description. ( do not check "active" check box this time - see step-5 for this ).
<b>[3].</b> Go to Settings -> P/S function modules or Process function modules -> of a customer. Here you go to either P/S function module or process function module depending of what BTE you are implementing from step-1.
In your case the BTE is from P/S info system you go to "Settings -> P/S function module -> of a customer".
Here you make following entries.
> a) Process ( this key for the interface you selected in step-1 )
> b) Function module ( Enter a custom function module name, here you just give the meaningful name. The function module can be designed once you finish the required settings in transaction FIBF )
> c) The product that you want to use ( this is the product you entered in step-2)
<b>[4].</b> Now you go to transaction SE37 to design your custom FM. For this you Copy the sample module you note down in step-1 and call it the same as the function module entered in step 3. Fill the source text of the empty function module. Activate the function module.
<b>[5].</b> Now go to transaction FIBF again and go to the menu path as described in Step-2. Now you active the product you entered earlier by checking "active" checkbox.
<b>[6].</b> Run the R/3 transaction / program affected and test whether calling your function module works.
Let me know if you have any question.
Regards,
RS -
Hide alv column of a standard tcode...
Hello Experts,
I was just given a task to hide a certain column in a standard tcode(LI14). So what
I tried first was to just create a transaction variant but it did not work since
the column that I need to hide is an alv list display. So I debugged the transaction
and it calls another standard program but it doesn't contain any ALV related FMs either in
the calling or the called program.
Anyone encountered this type of problem?Hi,
I just debug the standard transaction(LI14) and it calls another program that to my surprise, does not use ALV but uses WRITE statement instead. I asked our functional guy and he said that there are no config available for it. So I think I'll just create a custom program for this one. -
I want to restrict the display of F4 values in the standard tcode
In the standard tcode F-22 , for the customer display(F4 help values) ,i dont want to display a group or set of customers to be displayed. Which is the best way of doing this?
Thanks .
Edited by: peter k on Jan 19, 2009 7:27 AMHi Peter K,
Hope this will help you https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707439da-ead9-2910-5c97-af6ca0b6fbb1
Cheers,
Pravin S -
To call standard tcode in webdynpro( thru webgui) : Assistance class
Hi Gurus,
I have an alv display in which the vbeln entries have link to action control.
i.e when i click vbeln( sales order no), it should open a new window through its/webgui.
1.I am getting following error when i activate , get_execute_location is private/protected.
2. How do i go about the following code:
wd_comp_controller->execute_get_location(
IMPORTING
e_host = lv_host
e_out_protocol = lv_out_protocol
e_port = lv_port ).
Within my method of my assistance class I call an interface in class cl_http_server to procure my host,
protocol and port number.
CALL METHOD cl_http_server=>if_http_server~get_location
IMPORTING
host = e_host
port = e_port
out_protocol = e_out_protocol.
Can some one explain in detail.
Best Regards,
Navin Fernandes.Hi Navin,
To display a standard tcode in your webdynpro application using ITS you can use the following code
DATA: url TYPE string,
host type string,
port type string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'SE11'
INTO url.
*get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
* call the url which we created above
lo_window_manager->create_external_window(
exporting
url = url
receiving
window = lo_window ).
lo_window->open( ).
Hope this helps!
Best Regards,
Radhika Vadher. -
Help needed Displaying ALV Secondary list without using oops concept
Hi Experts
Help needed Displaying ALV Secondary list without using oops concept.
its urgent
regds
rajasekharhi chk this code
******************TABLES DECLARATION*****************
TABLES : VBAP,MARA.
*****************TYPE POOLS**************************
TYPE-POOLS : SLIS.
****************INTERNAL TABLES**********************
DATA : BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
END OF IT_VBAP.
****************TEMPORARY VARIABLES******************
DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
*****************FIELD CATALOG***********************
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
****************LAYOUT*******************************
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
***************VARIANT*******************************
DATA : G_VARIANT LIKE DISVARIANT.
****************SAVE*********************************
DATA : G_SAVE(1) TYPE C.
*****************EVENTS******************************
DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
G_EVENTS TYPE SLIS_T_EVENT.
******************PF STATUS**************************
DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
******************USER COMMAND************************
DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
R_UCOMM LIKE SY-UCOMM.
****************SELECTION SCREEN************************
SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
***************AT SELECTION SCREEN*********************
AT SELECTION-SCREEN.
PERFORM VALIDATE.
**************START-OF-SELECTION**************************
START-OF-SELECTION.
PERFORM GET_DETAILS.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM VARIANT.
PERFORM SAVE.
PERFORM EVENTS.
PERFORM ALV_DISPLAY.
*********************FORMS*******************************************
*& Form validate
text
--> p1 text
<-- p2 text
FORM VALIDATE .
SELECT SINGLE VBELN
FROM VBAP
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'enter valid vbeln'.
ENDIF.
ENDFORM. " validate
*& Form get_details
text
--> p1 text
<-- p2 text
FORM GET_DETAILS .
SELECT VBELN
POSNR
MATNR
FROM VBAP
INTO TABLE IT_VBAP
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'no details found'.
ENDIF.
ENDFORM. " get_details
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-OUTPUTLEN = 10.
WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-OUTPUTLEN = 6.
WA_FIELDCAT-SELTEXT_L = 'ITEM'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-OUTPUTLEN = 18.
WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " fieldcat
*& Form LAYOUT
text
--> p1 text
<-- p2 text
FORM LAYOUT .
WA_LAYOUT-ZEBRA = 'X'.
ENDFORM. " LAYOUT
*& Form VARIANT
text
--> p1 text
<-- p2 text
FORM VARIANT .
CLEAR G_VARIANT.
G_VARIANT-REPORT = SY-REPID.
ENDFORM. " VARIANT
*& Form SAVE
text
--> p1 text
<-- p2 text
FORM SAVE .
CLEAR G_SAVE.
G_SAVE = 'A'.
ENDFORM. " SAVE
*& Form EVENTS
text
--> p1 text
<-- p2 text
FORM EVENTS .
CLEAR XS_EVENTS.
XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
XS_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND XS_EVENTS TO G_EVENTS.
ENDFORM. " EVENTS
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
WRITE :/ ' INTELLI GROUP'.
ENDFORM. "TOP_OF_PAGE
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = PF_STATUS
I_CALLBACK_USER_COMMAND = USER_COMMAND
I_STRUCTURE_NAME =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = G_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
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBAP
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 SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'Z50651_PFSTATUS' EXCLUDING EXTAB.
ENDFORM. "SET_PF_STATUS
*& Form SET_USER_COMMAND
text
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE :/ 'MATERIAL TYPE :' , V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
REPORT Z_ALV_INTERACTIVE MESSAGE-ID ZMSG_50651
LINE-SIZE 100
LINE-COUNT 60
NO STANDARD PAGE HEADING.
******************TABLES DECLARATION*****************
TABLES : VBAP,MARA.
*****************TYPE POOLS**************************
TYPE-POOLS : SLIS.
****************INTERNAL TABLES**********************
DATA : BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
END OF IT_VBAP.
****************TEMPORARY VARIABLES******************
DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
*****************FIELD CATALOG***********************
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
****************LAYOUT*******************************
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
***************VARIANT*******************************
DATA : G_VARIANT LIKE DISVARIANT.
****************SAVE*********************************
DATA : G_SAVE(1) TYPE C.
*****************EVENTS******************************
DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
G_EVENTS TYPE SLIS_T_EVENT.
******************PF STATUS**************************
DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
******************USER COMMAND************************
DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
R_UCOMM LIKE SY-UCOMM.
****************SELECTION SCREEN************************
SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
***************AT SELECTION SCREEN*********************
AT SELECTION-SCREEN.
PERFORM VALIDATE.
**************START-OF-SELECTION**************************
START-OF-SELECTION.
PERFORM GET_DETAILS.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM VARIANT.
PERFORM SAVE.
PERFORM EVENTS.
PERFORM ALV_DISPLAY.
*********************FORMS*******************************************
*& Form validate
text
--> p1 text
<-- p2 text
FORM VALIDATE .
SELECT SINGLE VBELN
FROM VBAP
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'enter valid vbeln'.
ENDIF.
ENDFORM. " validate
*& Form get_details
text
--> p1 text
<-- p2 text
FORM GET_DETAILS .
SELECT VBELN
POSNR
MATNR
FROM VBAP
INTO TABLE IT_VBAP
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'no details found'.
ENDIF.
ENDFORM. " get_details
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-OUTPUTLEN = 10.
WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-OUTPUTLEN = 6.
WA_FIELDCAT-SELTEXT_L = 'ITEM'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-OUTPUTLEN = 18.
WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " fieldcat
*& Form LAYOUT
text
--> p1 text
<-- p2 text
FORM LAYOUT .
WA_LAYOUT-ZEBRA = 'X'.
ENDFORM. " LAYOUT
*& Form VARIANT
text
--> p1 text
<-- p2 text
FORM VARIANT .
CLEAR G_VARIANT.
G_VARIANT-REPORT = SY-REPID.
ENDFORM. " VARIANT
*& Form SAVE
text
--> p1 text
<-- p2 text
FORM SAVE .
CLEAR G_SAVE.
G_SAVE = 'A'.
ENDFORM. " SAVE
*& Form EVENTS
text
--> p1 text
<-- p2 text
FORM EVENTS .
CLEAR XS_EVENTS.
XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
XS_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND XS_EVENTS TO G_EVENTS.
ENDFORM. " EVENTS
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
WRITE :/ ' INTELLI GROUP'.
ENDFORM. "TOP_OF_PAGE
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = PF_STATUS
I_CALLBACK_USER_COMMAND = USER_COMMAND
I_STRUCTURE_NAME =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = G_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
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBAP
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 SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'STANDARD' EXCLUDING EXTAB.
ENDFORM. "SET_PF_STATUS
*& Form SET_USER_COMMAND
text
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE :/ 'MATERIAL TYPE :' , V_MTART.
SUBMIT SLIS_DUMMY WITH P_MATNR EQ IT_VBAP-MATNR
WITH P_MTART EQ V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
plz reward if useful -
Prob in getting Mail body for the standard tcode F150(Dunning).
Hello all,
I am using F150 for the dunning notice print out.After seeing the display of the dunning notice once we come back it populates a popup window where it asks to send the mail to the particular mailid or not. I have used the BTE --- SAMPLE_PROCEE_00001040 and copied it as z function module and customised according to my requirement in order to get the mail id of the customer in the pop up.My mail is going to the customers mail id properly only but my prob is that we are not able to get any mail body for that particular mail.Where can we add the mail body text to that mail in the standard tcode f150.can any one suggest is it possible or not.
Regards,
Pavani.
Edited by: Pavani Rayappureddi on Aug 11, 2009 11:21 AMsolved my self.
added C_ITCPO-TDTITLE = 'Pending Receivables Statement-XXX GROUP'.
in the bte code. -
How to get the form name which is used in standard tcode like me23n in sap
how to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PMhow to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM -
Pop up screen needs to be added to standard tcode
Hi all ,
"How to add a pop - up screen to standard Tcode. "
I want to add a pop up - screen to the tcode : CO15.
In this Tcode i will enter the Production order and press enter.
In the next screen I will give the quantity (for eg. 5) for that production order and also date fields .
When I click on the save button, I want to display a pop-up screen giving all the 5 items and also checkbox for each item. The user will then check whatever number of items he wants for eg he will check 3 items and press enter button which(enter button) also needs to be put in that pop up screen.
Next time he want to check the other 2 items also.Initially he has checked the 3 items.
So this time the POP-UP screen should display the rest 2 items which were not checked .
Edited by: peter k on Oct 27, 2008 5:24 AMWas it a pop-under?
Because far as I know they couldn't fix that. Only stop pop-ups.
If you want to stop them for real, then install Firefox web browser and the NoScript add-on.
Head to Firefox toolbar > customize and drag the Temp Allow All Button to the toolbar area.
When you surf, your Javascript will be turned off by default, and if you need it, then you click the Temp Allow All Button and it loads, therefore reducing the pop-unders and pop-ups drastically.
Also add Ad Block Plus too for more less hassle free surfing. -
Add New Column in ALV Report of Standard SAP ME28.
Hi anybody,
I want add new column in alv report of standard SAP Program ME28 Screen.
Add Last PO Price column inside ALV Report ME28 Screen.
Can u please anybody tell me how to add new column in ME28 Screen.
Thanks
S.Muthu.Try to find any BADI for the same
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
OR
Also one more option is to copy ME28 and, make modifications to the copied program. -
Issue with displaying ALV in a popup window
Hi Experts,
I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.
If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.
Has anyone else come across this issue before. All your suggestions, responses are welcome.
Thanks,
VivekHI,
My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.
I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.
types: begin of ty_belnr,
belnr type vbkpf-belnr,
end of ty_belnr.
data: lt_belnr type standard table of ty_belnr,
lo_node type ref to if_wd_context_node,
lo_element type ref to if_wd_context_element.
select belnr
from vbkpf
into table lt_belnr
where ausbk = 'UC'
and bukrs = 'UC'
and gjahr = '2011'
and usnam = sy-uname.
if sy-subrc eq 0.
lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
lo_node->bind_elements( new_items = lt_belnr[] ).
endif.
Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM -
How to call subscrreen of Standard Tcode as popup
Hi All,
I want to call a subscreen of a standard TCode as popup.
Req : When we click on Bill to Party partner,in Partner's tab in sales order,we get a subscreen displaying information about the same.
Is this possible to get this subscreen as POP UP while SAVING Sales Order (when we click on SAVE to save sales order in VA01).
Please help me out.
Thanks in advance..
Regards,
Amit.Hi Jim,
Thank you i missed this point.
So now i am planning to add custom fields to likp table and map this fields to my custom module pool screen so on making changes the standard likp header detail should be modified. so when user clicks on save of vl02n it would update the record. How to achieve this?
and as per my above post. I have created a Zprogram with Screen 9000, now i want to call this screen, on click of button from vlo2n as pop up how to achieve this? -
Handle back button in standard tcode .
I am doing a BDC on standard tcode MEMASSPO which displays the 3rd screen directly of the tcode.
Now problem is when I press the BACK button on this screen it takes me to the previous screen of the same tcode.
My requirement is that it should take me to SAP Menu when i click the BACK button.
I am pasting the BDC code below:
START-OF-SELECTION.
PERFORM bdc_dynpro USING 'SAPMMSDL' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MASSSCREEN-VARNAME'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TAB2'.
PERFORM bdc_dynpro USING 'SAPMMSDL' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MASSSCREEN-VARNAME'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FIND'.
PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'SVALD-VALUE(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FURT'.
PERFORM bdc_field USING 'SVALD-VALUE(01)'
'ELIKZ'.
PERFORM bdc_dynpro USING 'SAPMMSDL' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=NEXT'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MASSFVIEW-FIELDTEXT(02)'.
PERFORM bdc_field USING 'MASSFVIEW-CHECKBOX(01)'
'X'.
PERFORM bdc_field USING 'MASSFVIEW-CHECKBOX(02)'
'X'.
PERFORM bdc_dynpro USING 'SAPLMSMT' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'NONEXT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=OK'.
PERFORM bdc_dynpro USING 'SAPLMASS_SEL_DIALOG' '0100'.
CALL TRANSACTION 'MEMASSPO' USING bdcdata MODE 'E'.
Please help me.......Hi,
You can do it by appending (at the end of the BDC data) the exit actions when the screen X (the one you get after the BACK button has been pressed) is reached.
As you run the BDC with mode 'E', it will stop the BDC data when SAP sees that screen X from the BDC data is not the screen currently displayed. Then, if the user displays later the screen X, SAP continues to execute the BDC data from screen X.
This topic is shortly described here: http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F
Sandra -
Reg. can we display alv grid using field groups (extracts)
Hi,
can we display alv grid using field groups (extracts). is this possible. i have to develop a blocked alv.
tnks
Yerukala SettyNo, you will need the data in an internal table to use ALV.
Cheers
Allan
Maybe you are looking for
-
Change dot colours on month view???
Hi, Is it possible to change the dot colours on the month view of the calendar so it represents the sync'd calendars? It would be better if it showed a coloured dot under the day's number relevent to the calendar that has an appointment +ie. if you h
-
Having trouble linking to an html page in Flash.
Hello, I have been using Flash for a short while and have just learned how to create a rotating banner. At this point my problem is adding a hotspot or a link from each image highlighted in the Flash movie. Can anyone take a look at my flash file and
-
Wich software should I use to create a game??
I'm sorry if I did not find answer to my question in the forum, but I don't understand so much english. I would like to create a game, and I'm searching for the software. could you help me? Thank you
-
Hi all, We have a BI 7.0 system, and Iam able to insert a data provider (query) in my Report Designer and able to change the report as per requirement and save it too. The problem is once i have made the necessary changes, i want to view th
-
Photoshop Elements 8 Licencing Problem
Photoshop Elements 8 (s/n 1057-1463-2368-0256-2492-2362) has only ever been installed on 2 machines; one was my current laptop Computer which suffered a HD crash, but no problem, I still had a third licence left unused. In late December the same HD f