Call WD popup from SE38 report..?
Is it possible to call a web dynpro popup out of 'standard' coding (like SE38 report, SE37 function module, SE24 method)?
If yes, is it also possible to pass back values from the web dynpro popup to the report, function module, method)?
How?
Hi,
mixing SAP GUI and Web Dynpro ABAP technology is not recommended, see also SAP note 1098009
Regards, Heidi
Similar Messages
-
I would like to open a popup window by clicking a value in a report. I am using the following Java Script:
<script language="JavaScript" type="text/javascript">
function customerPopup2 (sold_to_org_id) {
var url;
url = 'f?p=&APP_ID.:7:::::P7_SOLD_TO_ORG_ID:' +SOLD_TO_ORG_ID;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=700,height=400");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
and my select statement looks like this:
SELECT a, b, c ,
'<a href="javascript:customerPopup2('''
|| sold_to_org_id
|| ''');">'
|| HTF.escape_sc (customer_name)
|| '</a>' sold_to_org_id
FROM table
Everything works. I am able to open the page but the value I want to pass to the item on that page is showing:
[object HTMLTableCellElement]
and not what I would like to see - my "sold_to_org_id".
I was trying to do it differently, by using the column link to pass the value of the #sold_to_org_id# to the element of my popup page. That works but in that case the page doesn't open as popup - it opens in the full screen mode.
What am I missing?
Denes KubicekHi,
APEX_UTIL.PREPARE_URL is PL/SQL function, and you can not use it on URL target.
http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#insertedID60
Try following:
Change your report query have one extra column
SELECT ...
APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:11:&SESSION.::NO:11:P11_PERSON_ID:' || PERSON_ID, NULL, 3) AS URL_FOR_JS
FROM...In report attributes set this new URL_FOR_JS column hidden
Then change link column URL target
javascript:popUp2('#URL_FOR_JS#',800,700);Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME
Edited by: jarola on Nov 30, 2011 5:41 PM
Edited by: jarola on Nov 30, 2011 6:00 PM -
How to call a Workflow from a Report in SE38?
How to call a Workflow from a Report in SE38?
Please can Anyone Send me a Source code (with Explanation)which I can use for calling Workflow >> WS99900253?
Regards,
Shashank.you can use FM
SAP_WAPI_CREATE_EVENT
SWE_EVENT_CREATE
OR
SAP_WAPI_START_WORKFLOW
Regarding usge of this FMS search the forums you will get ample examples.
Thanks
Arghadip -
How to call a package from the Report in Oracle Application Express
How to call a package from the Report in Oracle Application Express
Hello,
What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
Or do you want to execute a procedure when something happens on the page, like clicking a button?
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Can we call a bdc from a report program?
hi
Can we call a bdc from a report program?
Thanks
RamaHello,
Yes..
Check this example:
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA : L_EBELN TYPE EKPO-EBELN,
L_EBELP TYPE EKPO-EBELP.
DATA : L_DATE1 TYPE SY-DATUM,
L_DATE2 TYPE SY-DATUM,
L_YEAR(4),
L_MONTH(2),
L_DATE(2).
DATA: L_AMOUNT1 LIKE RK40C-WTGBTR.
DATA: L_POSID_OLD TYPE PS_POSID.
DATA: L_POSID_NEW TYPE PS_POSID.
DATA: LS_COBK LIKE COBK.
DATA: LT_ITEMS LIKE RK40C OCCURS 0 WITH HEADER LINE,
LT_COEP LIKE COEP OCCURS 0 WITH HEADER LINE,
LT_COEPL LIKE COEPL OCCURS 0 WITH HEADER LINE,
LT_COEPR LIKE COEPR OCCURS 0 WITH HEADER LINE,
LT_MESG LIKE MESG OCCURS 0 WITH HEADER LINE.
DATA: LV_NUM TYPE POSNR_ACC VALUE '1'.
DATA: CD_SEND_REC_REL LIKE COHEADER-SEND_REC_REL,
LD_STATUS LIKE RK23F-STATUS.
DATA: L_DYNNR LIKE FELD-DYNNR.
CLEAR : L_DATE,L_DATE1,L_DATE2,L_YEAR,L_MONTH.
L_DATE1 = SY-DATUM.
L_YEAR = L_DATE1(4).
L_MONTH = L_DATE1+4(2).
L_DATE = L_DATE1+6(2).
CONCATENATE L_DATE L_MONTH L_YEAR INTO L_DATE2 .
CASE R_UCOMM.
WHEN '&IC1'. "doubleclick
CHECK RS_SELFIELD-FIELDNAME = 'EBELN'.
READ TABLE G_T_FINAL INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
READ TABLE G_T_TEMP WITH KEY LOGNUM = G_T_FINAL-LOGNUM.
IF SY-SUBRC = 0.
MESSAGE I899(KB) WITH TEXT-004.
ELSE.
CLEAR : L_EBELN,L_EBELP,LS_COBK,LT_ITEMS,G_T_BDC,G_T_MESSAGE,
CD_SEND_REC_REL,LD_STATUS.
REFRESH: LT_ITEMS,G_T_BDC,G_T_MESSAGE.
SET PARAMETER ID 'BES' FIELD G_T_FINAL-EBELN.
GET PARAMETER ID 'BES' FIELD L_EBELN.
SET PARAMETER ID 'BSP' FIELD G_T_FINAL-EBELP.
GET PARAMETER ID 'BSP' FIELD L_EBELP.
SORT G_T_FINAL BY EBELN EBELP.
READ TABLE G_T_FINAL WITH KEY EBELN = L_EBELN
EBELP = L_EBELP
BINARY SEARCH.
IF SY-SUBRC = 0.
LS_COBK-KOKRS = G_T_FINAL-KOKRS.
LS_COBK-GJAHR = SY-DATUM+0(4).
LS_COBK-VRGNG = 'RKU1'.
LS_COBK-PERAB = SY-DATUM+4(2).
LS_COBK-PERBI = SY-DATUM+4(2).
LS_COBK-BLDAT = SY-DATUM.
LS_COBK-BUDAT = SY-DATUM.
LS_COBK-CPUDT = SY-DATUM.
LS_COBK-USNAM = SY-UNAME.
LS_COBK-WSDAT = SY-DATUM.
LS_COBK-KURST = 'M'.
LS_COBK-VARNR = '05SAP'.
LS_COBK-KWAER = G_T_FINAL-WAERS.
LS_COBK-CPUTM = SY-UZEIT.
CLEAR : L_POSID_OLD,L_POSID_NEW.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
EXPORTING
INPUT = G_T_FINAL-POSID_NEW
IMPORTING
OUTPUT = L_POSID_NEW.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
EXPORTING
INPUT = G_T_FINAL-POSID_OLD
IMPORTING
OUTPUT = L_POSID_OLD.
L_AMOUNT1 = G_T_FINAL-AMOUNT.
LT_ITEMS-ZLENR = LV_NUM.
LT_ITEMS-EPSPNR = L_POSID_NEW.
LT_ITEMS-SPSPNR = L_POSID_OLD.
LT_ITEMS-KSTAR = G_T_FINAL-KSTAR.
LT_ITEMS-WAERS = G_T_FINAL-WAERS.
LT_ITEMS-WTGBTR = L_AMOUNT1.
LT_ITEMS-WKGBTR = L_AMOUNT1.
APPEND LT_ITEMS.
CLEAR: LT_ITEMS.
* For reposting the Cost
CHECK NOT LT_ITEMS[] IS INITIAL.
CALL FUNCTION 'K40C_COBK_CHECK_POST'
CHANGING
ITCOBK = LS_COBK
EXCEPTIONS
PERIOD_BLOCKED = 1
EXTERNAL_NUMBER_MISSING = 2
ERROR_OCCURED = 3.
IF SY-SUBRC IS INITIAL.
CALL FUNCTION 'K40C_DOCUMENT_LINE_CHECK'
EXPORTING
DOC_HEADER = LS_COBK
IGNORE_WARNINGS = 'X'
TABLES
DOC_ITEMS = LT_ITEMS.
*...Create Tables for database
CALL FUNCTION 'K40C_DOCUMENT_CREATE'
EXPORTING
DOC_HEADER = LS_COBK
TABLES
DOC_ITEMS = LT_ITEMS
ITCOEP = LT_COEP
ITCOEPL = LT_COEPL
ITCOEPR = LT_COEPR.
CALL FUNCTION 'K40C_DOCUMENT_POST'
TABLES
ITCOEP = LT_COEP
ITCOEPL = LT_COEPL
ITCOEPR = LT_COEPR
CHANGING
DOC_HEADER = LS_COBK.
ENDIF.
ENDIF.
IF SY-SUBRC = 0.
GET PARAMETER ID 'KBXXN_P_VAR_RKU1' FIELD CD_SEND_REC_REL.
GET PARAMETER ID 'KBXX_START_DYNPRO' FIELD LD_STATUS.
IF CD_SEND_REC_REL IS INITIAL AND LD_STATUS IS INITIAL.
CLEAR L_DYNNR.
L_DYNNR = '1220'.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'COHEADER-SEND_REC_REL'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=PVAR'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'L'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RK23F-STATUS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=LISI'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'S'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM FILL_BDC_SCREEN USING L_DYNNR L_DATE2 L_MONTH.
ENDIF.
IF CD_SEND_REC_REL EQ '05SAP' AND LD_STATUS EQ 'S'.
CLEAR L_DYNNR.
L_DYNNR = '1220'.
PERFORM FILL_BDC_SCREEN USING L_DYNNR L_DATE2 L_MONTH.
ELSEIF CD_SEND_REC_REL EQ '05SAP' AND LD_STATUS EQ 'L'.
CLEAR L_DYNNR.
L_DYNNR = '1220'.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' L_DYNNR.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RK23F-STATUS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=LISI'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'S'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM FILL_BDC_SCREEN USING L_DYNNR L_DATE2 L_MONTH.
ELSEIF CD_SEND_REC_REL NE '05SAP' AND LD_STATUS EQ 'S'.
CASE CD_SEND_REC_REL.
WHEN '01SAP' OR '02SAP' OR '04SAP' OR '08SAP' OR '09SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1220'.
WHEN '03SAP' OR '07SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1230' .
WHEN '06SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1210'.
WHEN '10SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1270'.
ENDCASE.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' L_DYNNR.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'COHEADER-SEND_REC_REL'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=PVAR'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'S'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM BDC_FIELD USING 'RK23F-WAERS'
'EUR'.
PERFORM FILL_BDC_SCREEN USING L_DYNNR L_DATE2 L_MONTH.
ELSEIF CD_SEND_REC_REL NE '05SAP' AND LD_STATUS EQ 'L'.
CASE CD_SEND_REC_REL.
WHEN '01SAP' OR '02SAP' OR '04SAP' OR '08SAP' OR '09SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1220'.
WHEN '03SAP' OR '07SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1230' .
WHEN '06SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1210'.
WHEN '10SAP'.
CLEAR L_DYNNR.
L_DYNNR = '1270'.
ENDCASE.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'COHEADER-SEND_REC_REL'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=PVAR'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'L'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RK23F-STATUS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=LISI'.
PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'
'05SAP'.
PERFORM BDC_FIELD USING 'RK23F-STATUS'
'S'.
PERFORM BDC_FIELD USING 'COHEADER-BLDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-BUDAT'
L_DATE2.
PERFORM BDC_FIELD USING 'COHEADER-PERIO'
L_MONTH.
PERFORM FILL_BDC_SCREEN USING L_DYNNR L_DATE2 L_MONTH.
ENDIF.
CALL TRANSACTION 'KB11N' USING G_T_BDC MODE G_MODE MESSAGES
INTO G_T_MESSAGE.
IF NOT G_T_MESSAGE[] IS INITIAL.
READ TABLE G_T_MESSAGE WITH KEY MSGTYP = 'S'.
IF SY-SUBRC = 0.
DELETE FROM BALHDR WHERE LOGNUMBER = G_T_FINAL-LOGNUM AND
OBJECT = G_T_FINAL-OBJECT AND
SUBOBJECT = G_T_FINAL-SUBOBJECT.
COMMIT WORK.
G_T_TEMP = G_T_FINAL.
APPEND G_T_TEMP.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
CLEAR G_T_MESSAGE.
REFRESH G_T_MESSAGE.
*refresh g_t_bdc.
CLEAR G_T_BDC.
REFRESH G_T_BDC.
ENDIF.
ENDCASE.
ENDFORM. " USER_COMMAND
Vasanth -
Need help to calling a form from a report
I would like to call a form from the report preview, that is
there will be button on that report preview and when click on
that button then another form will start running. Another problem
is, without clicking on that button report will not allow to
exit. How ?
nullDW Brown wrote:
It becomes a link from the column format section..
DOWNLOAD:<tablename>:<column>:ID::MIMETYPE:FILENAME:LAST_UPDATE_DATE::inline:Click Here
So far I haven't found a way to use something link "target=_blank"One way would be to use a Dynamic Action to apply the <tt>target="_blank"</tt> attribute to each link, or convert them to use APEX pop-ups or a jQuery lightbox like fancyBox.
Create an example on apex.oracle.com if you need more assistance. -
How to Trigger a Job from se38 Report
Hi,
I need to trigger a job from an se38 report program.
Currently the code I'm using is:
SUBMIT YARTZ_SPOOL
USER SY-UNAME
VIA JOB 'YARTZ_JOB2'
NUMBER 1
TO SAP-SPOOL
SPOOL PARAMETERS l_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
But the SY_SUBRC return I get is 8 which stands for 'Error In job Scheduling'
Is the method used correct?
Or am i going wrong in scheduling the job? As far as Job scheduling goes, I used the Date/Time schedule and scheduled it at a time 20 minutes later.
Thanks.Hi,
use the code
IF p_bjob = 'X'.
CONCATENATE sy-cprog sy-datum sy-uzeit
INTO jobname SEPARATED BY '_'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT YARTZ_SPOOL
WITH <selection-screen parameters if any>
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE i029 WITH jobname.
ENDIF.
ELSE.
MESSAGE s000 WITH text-003.
STOP.
ENDIF.
ENDIF.
reward points if useful
regards,
Anji -
Can we call a transaction from a report
hi
can we call a transaction from a reporthi,
we can call
check it
*& Report ZSALESORDERDETAILS_ASHOK
REPORT ZSALESORDERDETAILS_ASHOK
NO STANDARD PAGE HEADING
LINE-SIZE 50
LINE-COUNT 35(5).
*data declaration.
tables :vbak.
tables: VBAP.
DATA : TVBAK LIKE VBAK OCCURS 0 WITH HEADER LINE,
TVBAP LIKE VBAP OCCURS 0 WITH HEADER LINE,
TEMP TYPE p decimals 5 VALUE '0.0' ,
A type i,
FIELDNAME TYPE STRING,
FIELDVALUE TYPE VBAP-VBELN.
DATA G_CB.
selection-screen begin of block screen1 with frame title TEXT-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /32(35) COMM1.
SELECTION-SCREEN ULINE /27(35).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS TVBELN FOR VBAK-VBELN.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN COMMENT /30(50) COMM2.
SELECTION-SCREEN ULINE /27(40).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS TERDAT FOR VBAK-ERDAT.
SELECTION-SCREEN SKIP.
selection-screen end of block screen1.
*Initialization
Initialization .
TVBELN-low = 4000.
TVBELN-high = 5000.
TVBELN-option = 'BT'.
TVBELN-sign = 'I'.
APPEND TVBELN.
TERDAT-low = '19960202'.
TERDAT-high = '20020302' .
APPEND TERDAT.
AT SELECTION-SCREEN .
SELECT *
FROM VBAK
INTO TABLE TVBAK
WHERE VBELN IN TVBELN AND erdat IN Terdat .
IF sy-subrc ne 0.
MESSAGE 'ENTERED ORDER NOT FOUND' type 'E'.
ENDIF.
START-OF-SELECTION.
REFRESH TVBAK.
SELECT *
FROM VBAK
INTO TABLE TVBAK
WHERE VBELN IN TVBELN AND ERDAT IN TERDAT.
END-OF-SELECTION.
LOOP AT TVBAK.
WRITE: /2 SY-VLINE,
TVBAK-VBELN INPUT ON ,
15 SY-VLINE,TVBAK-ERDAT hotspot on,
30 SY-VLINE, 35 TVBAK-ERNAM,
46 SY-VLINE,
g_cb AS CHECKBOX.
ENDLOOP.
A = SY-LINCT - SY-LINNO - 1.
SKIP A .
RESERVE A LINES.
AT SELECTION-SCREEN OUTPUT.
comm1 ='SELECT SALES ORDER RANGE'.
comm2 ='SELECT SALES ORDER CREATION DATE'.
TOP-OF-PAGE.
ULINE.
WRITE /15 ' SALES ORDER REPORT ' COLOR = 1 .
ULINE.
WRITE : /7 ' VBELN ' COLOR = 5 ,
19 ' ERDAT ' COLOR = 5,
34 ' ERNAM ' COLOR = 5.
ULINE.
END-OF-PAGE.
IF SY-LSIND = 0.
ULINE.
WRITE : /2 'NUMBER OF LINE IN THIS PAGE = ', SY-LINNO.
SKIP.
WRITE: /30 'PAGE NUMBER = ', SY-PAGNO.
ULINE.
ELSEIF SY-LSIND = 1.
ULINE.
WRITE : /12 'TOTAL PRICE = ' ,TEMP.
CLEAR TEMP.
SKIP.
WRITE : /30 'PAGE NUMBER = ', SY-PAGNO.
ULINE.
ENDIF.
at line-selection.
GET CURSOR FIELD FIELDNAME VALUE FIELDVALUE.
IF FIELDNAME = 'TVBAK-VBELN'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = FIELDVALUE
IMPORTING
OUTPUT = FIELDVALUE.
WINDOW STARTING AT 60 2 ENDING AT 120 25.
IF SY-LSIND = 1.
SELECT
FROM VBAP
INTO TABLE TVBAP
WHERE VBELN EQ FIELDVALUE.
LOOP AT TVBAP.
TEMP = TEMP + TVBAP-NETPR.
WRITE : /2 SY-VLINE, TVBAP-matnr,
17 SY-VLINE,TVBAP-VBELN,
30 SY-VLINE,TVBAP-NETPR currency 'IN',
49 SY-VLINE.
ENDLOOP.
ULINE.
A = SY-LINCT - SY-LINNO - 1.
SKIP A .
RESERVE A LINES.
ENDIF.
<b>ELSEIF SY-LSIND = 2.
call transaction 'MM01' .
ENDIF.</b>
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE : / SY-ULINE,
/7 ' DETAIL OF GIVEN SALES ORDER ' COLOR = 5,
/ SY-ULINE,
/4 'MATNR',
22 'VBELN',
35 'NETPR',
/ SY-ULINE.
Regards
ASHOK
Message was edited by:
ASHOK KUMAR -
Calling a proxy from ABAP Report
Hi All,
Can any one gimme some idea about calling a XI proxy from ABAP Report.
I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
Thanks in advance.
Tnx,
Joe.Hi Meetjoe,
We have to design the required interface in PI ,that is used to hold the report data when tigerred a proxy and generate the proxy based on the interface if the Proxy is based on the Outbound side its called client proxy or if the proxy is genereated on Inbound interface we call it server proxy.
need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
In your case its gonna be the client proxy refer the follwing links for your better understanding
For concepts on Proxies:
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
To enable Proxy connections:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a
Smaple scenarios on Proxy:
Proxysettings /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
ABAP Server Proxy /people/siva.maranani/blog/2005/04/03/abap-server-proxies
ABAP Client Proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Thanks,
Ram. -
Hi ,
Please let me know how to call sapscript from se38.
Regards,
Sreeja.Look at [BC SAPscript: Printing with Forms|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf] there you will find the FM to call ([OPEN_FORM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=open_form&adv=false&sortby=cm_rnd_rankvalue], [WRITE_FORM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=write_form&adv=false&sortby=cm_rnd_rankvalue], [CLOSE_FORM |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=close_form&adv=false&sortby=cm_rnd_rankvalue]and the like, look at the pdf for "Example of a Print Program")
Don't forget to use [search at sdn|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=sapscript&adv=false&sortby=cm_rnd_rankvalue].
Regards -
Calling Stored procedure from portal report
I have a simple portal report. ie.
select empname
from emp
where dept = :dept
The users can customize the portlet and change the value of the bind variable (:dept).
On the Additional PL/SQL section of the report I need to call a procedure and
pass the value of the bind variable. Since the portlet is not being called from
another, p_arg_names and p_arg_values will not give me anything. In the above example I would
need to pass the value of ":dept" to the procedure. How do I get the value?Hi,
Have you tried the 'get_value' function?..The syntax is
declare
l_dept number(5);
begin
l_dept := get_value('dept');
/* further process */
end;
where 'dept' is name of the bind variable.
-Krishnamurthy -
Calling a popup from FPM button
Hi All,
The scenario is from SRM (7.0).
1. I click on a button in the FPM Identification Region lets say - Create PO.
2. When I click on the button Create PO, it creates a PO in the back ground and gives me a confirmation pop up saying that the PO is created.
Now my requirement is such that I need to populate the header/ Payment terms texts in the PO.
As the button being clicked is in FPM frame work, how do I call a pop up and pass the texts in to the PO.
Best Regards,
BashaI hope someone has an answer to this. I am looking for a similar solution. I do know the Web Dynpro Component for that screen is FPM_OIF_COMPONENT, the view is CNR_VIEW, the "Create Purchase Order" button is OTHER_FUNCTIONS_22 and the method ONACTIONBUTTON_PRESSED controls all of the other buttons (ie. Print Preview, Close, etc.). However, I can't find what happens when the Create PO button is pushed.
Edited to Add: The Web Dynpro info only applies to the RFx Response screen. Probably not what you are looking at.
Edited by: Sharina Smith on Apr 28, 2009 8:45 PM -
How can we call a transaction from a report?
hi
experts can u help me for thischeck this:
CHECK sy-ucomm = '&IC1'.
CASE sy-ucomm.
WHEN 'MATNR'.
READ TABLE it_final INDEX selfield-tabindex.
IF sy-subrc EQ 0.
SET PARAMETER ID 'MAT' FIELD it_final-matnr.
SET PARAMETER ID 'WRK' FIELD it_final-werks.
SET PARAMETER ID 'LAG' FIELD it_final-lgort.
SET PARAMETER ID 'CHA' FIELD it_final-charg.
CALL TRANSACTION 'MMBE' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
In this case, if ur report has material code(matnr), plant(werks), storage location(lgort), batch(charg) as the output fields and u click on the material, then it will display the details of that material for the T- code MMBE.
reward points if useful.
Message was edited by: anju
anju sinha -
Calling SAP transaction from Webi report?
Hi experts,
With BI/BW query, we can retrieve data from R/3 source system via report-to-report interface. For instance, from a Purchasing query with data aggregated by Vendor, the user can trigger the R/3 transaction ME2L by clicking on a row.
Is there a similar feature in BOBJ Webi report? For instance, can we use hyperlink or some other means to do this?
Any idea will be much appreciated.
Thanks and regards,
LindaHi Stratos,
Really appreciate your advice. Following your suggestion of using blank cell, the server is determined dynamically for the hyperlink.
However, there're still some issues with defining a hyperlink for table columns. For instance, I have 2 columns in the table - Cost Centre and Cost Element. SAP transactions KS03 and KA03 are to be launched respectively for these 2 columns. The value of the clicked column (Cost Centre, Cost Element) is to be passed to the SAP transaction.
I've created the following hyperlink for the Cost Centre column:
http://[[MyServer]]?sap-client=([Client])&sap-language=EN&~transaction=KS03
with Tool Tip = [[L01 Cost Center Key]]
The link is not working immediately, so I adjusted the formula as follows via the formula editor (by adding double quotes for <MyServer>):
="<a href=\""[[MyServer]]"?sap-client="URLEncode(""[[Client]])"&sap-language=EN&%7Etransaction=KS03\" title=\"\" target=\"_self\" nav=\"web\">"[[L01 Cost Center Key]]+"</a>"
Clicking the <tick> button does not return any error.
When I click on the Cost Center column, the SAP transaction is launched successfully. However, there're still a few issues:
1) The Cost Center Key is not passed to the SAP transaction. Is Tool Tip the way to go?
2) When checking the hyperlink (via right-click > Hyperlinks > Edit Hyperlink), I found the Tool Tip (L01 Cost Center Key) has disappeared
3) After I've clicked <OK> to exit the Edit Hyperlink window, I got the error message 'Invalid character '[[MyServer]]' at position 14. (Error: WIS10080)'.
-- It seems correct syntax in the formula editor is considered invalid in the hyperlink editor.
Do you mind commenting on what could have caused the above issues?
Thanks again for your time.
Linda -
I have a form that opens a tabular report in pdf output. What i'd like to do is to be able to click on one line (record) of the report and go back to the same record in the form for updates.
I know i can write code in the report that would link up to the form. What i don't know how to do is to tell the report that the calling form, hence the applet, is already open and that it should not reload the applet.
I'm working on Forms and Reports 6i over the web
Kind Regards, NicolaI have a form that opens a tabular report in pdf output. What i'd like to do is to be able to click on one line (record) of the report and go back to the same record in the form for updates.
I know i can write code in the report that would link up to the form. What i don't know how to do is to tell the report that the calling form, hence the applet, is already open and that it should not reload the applet.
I'm working on Forms and Reports 6i over the web
Kind Regards, Nicola
Maybe you are looking for
-
Time Machine Recovery - PLEASE HELP
I searched to find something close enought to solve my problem but was unable so I aplogize if this has occured before. Last night I backed up my hard drive in preperation to erase my computer in order to partition it for boot camp and was running 10
-
I don't have a firefox tab or button in my new installation. How can I recover it?
I have firefox version 5 on my desktop and just installed it on my new laptop but the firefox tab is missing. How can I recover it?
-
HD space disapearing quickly.. but can't figure out why
I have had this MBP for about two months. And even though I have put a few small programs on it(plus Call of Duty 2), I have also deleted certain things such as the Office Trial, and numerous other programs. I have even put a good chunk of my iTunes
-
[SOLVED] Flash conflicts with pulse
A while ago, I posted this: https://bbs.archlinux.org/viewtopic.php?id=102976 Basically, I couldn't play movies in totem or listen to music with rhythmbox or banshee. At the moment I thought it was simply a pulseaudio problem or misconfiguration, but
-
Very loud fan, blank screen, nothing more on power-up
I'm hoping for a miracle here... just bought the PB in december (4 months ago). ran fine last night, on battery. plugged it in, burned a CD, ejected it, no problem. shut the lid halfway. came back 30 min later. was still plugged in but had shut down