ABAP to ITS
Hi Gurus,
We have developed a ITS updation screen ECC6.0.The problem we are facing is that we could not flash the success message (data updation for SAP table) as we do in normal ABAP program(the sucess message is working fine in ABAP).
Kindly, let us know how can we flash the same success message in ITS updation screen.
Waiting for your replies...
hi,
Option 1
In Parameter of ITS service .. give ~POPUP = 1
Option 2
Design a ABAP Screen for Success and Call that screen if Data Created Successfully
Regards
Rajashiva Ramalingam
Similar Messages
-
Unable to created users through UME on portal with AS ABAP as its data sorc
Hi,
Unable to created users through UME on portal with AS ABAP as its data source.
I have assigned SAP_BC_JSF_COMMUNICATION to the user SAPJSF but this only helps in editing the already existing users but not in creating new users on portal.
I have checked that that the role SAP_BC_JSF_COMMUNICATION is properly generated and has * in all authorizations. I have even assigned SAP_ALL and SAP_NEW to SAPJSF and another ID.
DO we need to make any config changes to make the database writable from portal. Please advise.
Thanks,Hi,
If your system is a AS ABAP + +JAVA System,, you have to do the following
1. Login to Client 001 using SAP GUI
2. Create a user id
3. Login to portal and you will be able to see the user.
4.Assign him the portal rights
If you want the portal to use seperate Database for USers, there is a setting in Visual admin, that you can change for the same, but i dont remember that -
HTML Controls in ABAP (not ITS)
Hello...
How to build a HTML form and post it by internet inside SAPGUI (ABAP Program)....??? It's possible....???Yes, its possiable. Check out the demo program
SAPHTML_EVENTS_DEMO. This uses an "internal" html page which interacts with the ABAP program using HTML control.
I've never done it, so I can't offer any simpler examples.
Regards,
Rich Heilman -
Hi Experts,
In this scenario we have one Material Mat1 and 2 plants namely, P1 and P2. At time of execution, in the selection screen, if we give for example: Mat1 and P1, data is displayed for that particular material and plant. Where as if we give MAT1 for P1 and P2 , the material again displayed for P1 which is in first row and it is not displaying the material for P2 which is in 2nd row.
If we interchange P2 is in first row, the material is displayed and it is not displaying for P1 which is in 2nd row.
In general Any material for any plant which is in 2nd row is not displayed only zeros are visible.
Kindly locate the solution for the above query in the below program.
Specification Name : Production Tracker
REPORT zpp_ptk .
TYPE-POOLS : slis.
TABLES : pbed,
mara,
mast,
marc,
makt,
pbid,
pbim,
stpo,
t001w,
scal,
kna1,
knmt,
equi,
a304,
konp,
zcalendar,
am60x.
DATA : gt_sort TYPE slis_t_sortinfo_alv,
gt_fieldcat TYPE slis_t_fieldcat_alv,
gt_fieldcat1 TYPE slis_fieldcat_alv,
gt_events TYPE slis_t_event ,
gv_pc_start(2) TYPE n,
gv_pcno(6),
BEGIN OF gt_pbed OCCURS 0,
matnr TYPE matnr,
p_matnr TYPE matnr,
plnmg TYPE plnmg,
entmg TYPE entmg,
perxx TYPE perxx,
ojtxb TYPE ojtxb,
ojtxp TYPE ojtxp,
backlog TYPE plnmg,
future TYPE plnmg,
END OF gt_pbed,
l_knumh LIKE a304-knumh, " added by ****** 08.06.2005
l_datab LIKE a304-datab, " added by ****** 08.06.2005
BEGIN OF it_date1 OCCURS 0,
it_date1 TYPE zstartdt,
enddt TYPE zenddt,
sapweekno TYPE zsapweekno,
END OF it_date1,
BEGIN OF gt_matnr OCCURS 0,
matnr TYPE matnr,
plnmg TYPE plnmg,
entmg TYPE entmg,
END OF gt_matnr,
BEGIN OF gt_stock OCCURS 0,
matnr TYPE matnr,
stock TYPE entmg,
END OF gt_stock,
gt_fpbed LIKE gt_pbed OCCURS 0 WITH HEADER LINE,
it_zcalendar LIKE zcalendar OCCURS 0 WITH HEADER LINE,
l_counter TYPE i,
l_plus15 LIKE scal-week,
l_wfpweekno LIKE scal-week,
l_selectedweekno LIKE scal-week,
BEGIN OF gt_backlog OCCURS 0,
matnr TYPE matnr,
backlog TYPE entmg,
END OF gt_backlog,
gt_future LIKE gt_backlog OCCURS 0 WITH HEADER LINE,
gt_output TYPE zpp_rollplan OCCURS 0 WITH HEADER LINE,
BEGIN OF gt_out OCCURS 0,
head(15) TYPE c,
matnr TYPE matnr,
stock TYPE labst,
backlog TYPE plnmg,
week1 TYPE wmeng,
week2 TYPE wmeng,
week3 TYPE wmeng,
week4 TYPE wmeng,
week5 TYPE wmeng,
week6 TYPE wmeng,
week7 TYPE wmeng,
week8 TYPE wmeng,
week9 TYPE wmeng,
week10 TYPE wmeng,
week11 TYPE wmeng,
week12 TYPE wmeng,
week13 TYPE wmeng,
END OF gt_out,
BEGIN OF gt_out26 OCCURS 0,
head(15) TYPE c,
matnr TYPE matnr,
stock TYPE labst,
backlog TYPE plnmg,
week1 TYPE wmeng,
week2 TYPE wmeng,
week3 TYPE wmeng,
week4 TYPE wmeng,
week5 TYPE wmeng,
week6 TYPE wmeng,
week7 TYPE wmeng,
week8 TYPE wmeng,
week9 TYPE wmeng,
week10 TYPE wmeng,
week11 TYPE wmeng,
week12 TYPE wmeng,
week13 TYPE wmeng,
week14 TYPE wmeng,
week15 TYPE wmeng,
week16 TYPE wmeng,
week17 TYPE wmeng,
week18 TYPE wmeng,
week19 TYPE wmeng,
week20 TYPE wmeng,
week21 TYPE wmeng,
week22 TYPE wmeng,
week23 TYPE wmeng,
week24 TYPE wmeng,
week25 TYPE wmeng,
week26 TYPE wmeng,
END OF gt_out26,
BEGIN OF it_week OCCURS 0,
it_week TYPE zsapweekno,
END OF it_week,
dd(4) TYPE c,
cc(2) TYPE c,
dd1(6) TYPE c,
l_val1(7) TYPE c,
l_val2(7) TYPE c,
l_val3(7) TYPE c,
l_val4(7) TYPE c,
l_val5(7) TYPE c,
l_val6(7) TYPE c,
l_val7(7) TYPE c,
l_val8(7) TYPE c,
l_val9(7) TYPE c,
l_val10(7) TYPE c,
l_val11(7) TYPE c,
l_val12(7) TYPE c,
l_val13(7) TYPE c,
l_val14(7) TYPE c,
l_val15(7) TYPE c,
l_val16(7) TYPE c,
l_val17(7) TYPE c,
l_val18(7) TYPE c,
l_val19(7) TYPE c,
l_val20(7) TYPE c,
l_val21(7) TYPE c,
l_val22(7) TYPE c,
l_val23(7) TYPE c,
l_val24(7) TYPE c,
l_val25(7) TYPE c,
l_val26(7) TYPE c,
it_ph TYPE plnmg,
it_dm TYPE dbmng,
it_mard LIKE mard OCCURS 0 WITH HEADER LINE,
it_tot1 TYPE p DECIMALS 3,
it_tot1_2 TYPE p DECIMALS 3,
it_tot2 TYPE p DECIMALS 3,
it_tot2_2 TYPE p DECIMALS 3,
it_tot3 TYPE p DECIMALS 3,
it_tot3_2 TYPE p DECIMALS 3,
it_tot4 TYPE p DECIMALS 3,
it_tot4_2 TYPE p DECIMALS 3,
it_tot5 TYPE p DECIMALS 3,
it_tot5_2 TYPE p DECIMALS 3,
it_tot6 TYPE p DECIMALS 3,
it_tot6_2 TYPE p DECIMALS 3,
it_tot7 TYPE p DECIMALS 3,
it_tot7_2 TYPE p DECIMALS 3,
it_tot8 TYPE p DECIMALS 3,
it_tot8_2 TYPE p DECIMALS 3,
it_tot9 TYPE p DECIMALS 3,
it_tot9_2 TYPE p DECIMALS 3,
it_tot10 TYPE p DECIMALS 3,
it_tot10_2 TYPE p DECIMALS 3,
it_tot11 TYPE p DECIMALS 3,
it_tot11_2 TYPE p DECIMALS 3,
it_tot12 TYPE p DECIMALS 3,
it_tot12_2 TYPE p DECIMALS 3,
it_tot13 TYPE p DECIMALS 3,
it_tot13_2 TYPE p DECIMALS 3,
it_tot14 TYPE p DECIMALS 3,
it_tot14_2 TYPE p DECIMALS 3,
it_tot15 TYPE p DECIMALS 3,
it_tot15_2 TYPE p DECIMALS 3,
it_tot16 TYPE p DECIMALS 3,
it_tot16_2 TYPE p DECIMALS 3,
it_tot17 TYPE p DECIMALS 3,
it_tot17_2 TYPE p DECIMALS 3,
it_tot18 TYPE p DECIMALS 3,
it_tot18_2 TYPE p DECIMALS 3,
it_tot19 TYPE p DECIMALS 3,
it_tot19_2 TYPE p DECIMALS 3,
it_tot20 TYPE p DECIMALS 3,
it_tot20_2 TYPE p DECIMALS 3,
it_tot21 TYPE p DECIMALS 3,
it_tot21_2 TYPE p DECIMALS 3,
it_tot22 TYPE p DECIMALS 3,
it_tot22_2 TYPE p DECIMALS 3,
it_tot23 TYPE p DECIMALS 3,
it_tot23_2 TYPE p DECIMALS 3,
it_tot24 TYPE p DECIMALS 3,
it_tot24_2 TYPE p DECIMALS 3,
it_tot25 TYPE p DECIMALS 3,
it_tot25_2 TYPE p DECIMALS 3,
it_tot26 TYPE p DECIMALS 3,
it_tot26_2 TYPE p DECIMALS 3,
it_back1 TYPE p DECIMALS 3,
it_back2 TYPE p DECIMALS 3,
it_back3 TYPE p DECIMALS 3,
it_back4 TYPE p DECIMALS 3,
it_back5 TYPE p DECIMALS 3,
it_back6 TYPE p DECIMALS 3,
it_back7 TYPE p DECIMALS 3,
it_back8 TYPE p DECIMALS 3,
it_back9 TYPE p DECIMALS 3,
it_back10 TYPE p DECIMALS 3,
it_back11 TYPE p DECIMALS 3,
it_back12 TYPE p DECIMALS 3,
it_back13 TYPE p DECIMALS 3,
it_back14 TYPE p DECIMALS 3,
it_back15 TYPE p DECIMALS 3,
it_back16 TYPE p DECIMALS 3,
it_back17 TYPE p DECIMALS 3,
it_back18 TYPE p DECIMALS 3,
it_back19 TYPE p DECIMALS 3,
it_back20 TYPE p DECIMALS 3,
it_back21 TYPE p DECIMALS 3,
it_back22 TYPE p DECIMALS 3,
it_back23 TYPE p DECIMALS 3,
it_back24 TYPE p DECIMALS 3,
it_back25 TYPE p DECIMALS 3,
it_back26 TYPE p DECIMALS 3,
it_pbhi LIKE pbhi OCCURS 0 WITH HEADER LINE,
int1 TYPE i,
int2 TYPE i,
int3 TYPE i,
int4 TYPE i,
int5 TYPE i,
int6 TYPE i,
int7 TYPE i,
int8 TYPE i,
int9 TYPE i,
int10 TYPE i,
int11 TYPE i,
int12 TYPE i,
int13 TYPE i,
int14 TYPE i,
int15 TYPE i,
int16 TYPE i,
int17 TYPE i,
int18 TYPE i,
int19 TYPE i,
int20 TYPE i,
int21 TYPE i,
int22 TYPE i,
int23 TYPE i,
int24 TYPE i,
int25 TYPE i,
int26 TYPE i,
*forecast purpose
p_fnavl TYPE c VALUE 'X',
it_zcal LIKE zcalendar OCCURS 0 WITH HEADER LINE,
BEGIN OF it_mkpf OCCURS 0,
mblnr TYPE mblnr,
budat TYPE budat,
END OF it_mkpf,
it_mseg LIKE mseg OCCURS 0 WITH HEADER LINE,
st_date TYPE zstartdt,
en_date TYPE zenddt.
*BUDAT
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001..
SELECT-OPTIONS : s_matnr FOR pbim-matnr OBLIGATORY.
PARAMETERS : p_werks TYPE werks_d OBLIGATORY,
p_dispo TYPE dispo,
p_mov TYPE bwart OBLIGATORY DEFAULT '321',
p_date1 TYPE pbed-wdatu DEFAULT '20070401'. " MODIF ID ABC..
*SELECT-OPTIONS : p_date2 FOR pbed-wdatu.
PARAMETERS : p_date2 TYPE wdatu.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK bb1 WITH FRAME TITLE text-002 .
PARAMETERS : p_13week RADIOBUTTON GROUP grp1,
p_26week RADIOBUTTON GROUP grp1.
SELECTION-SCREEN : END OF BLOCK bb1.
SELECT-OPTIONS : s_week FOR zcalendar-sapweekno NO-DISPLAY.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'P_DATE1'.
screen-input = '0'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
INITIALIZATION.
START-OF-SELECTION.
IF '20070401' > p_date2.
MESSAGE 'Please Give Greater that 01.04.2007 ' TYPE 'I'.
LEAVE LIST-PROCESSING.
ENDIF.
SELECT SINGLE sapweekno INTO s_week-low
FROM zcalendar
WHERE startdt >= p_date2. "-high AND enddt >= p_date2-low.
s_week-option = 'EQ'.
s_week-sign = 'I'.
APPEND s_week.
SELECT * FROM zcalendar INTO TABLE it_zcalendar.
SELECT * FROM mard INTO TABLE it_mard WHERE matnr IN s_matnr.
*********************FOR 13 WEEK*********************************************************************
IF p_13week EQ 'X'.
LOOP AT s_week.
s_week-high = s_week-low + 12.
MODIFY s_week TRANSPORTING high.
SELECT SINGLE startdt FROM zcalendar INTO st_date WHERE sapweekno = s_week-low.
SELECT SINGLE enddt FROM zcalendar INTO en_date WHERE sapweekno = s_week-high.
SELECT mblnr budat FROM mkpf INTO TABLE it_mkpf WHERE budat GE st_date AND budat LE en_date.
SELECT * FROM mseg INTO TABLE it_mseg FOR ALL ENTRIES IN it_mkpf WHERE mblnr = it_mkpf-mblnr
AND matnr IN s_matnr
AND werks = p_werks
and shkzg = 'S'
AND bwart IN ('321','322','101','102','131','132') .
LOOP AT it_mkpf.
SELECT * FROM mseg INTO it_mseg WHERE mblnr = it_mkpf-mblnr
AND matnr IN s_matnr
AND werks = p_werks
AND shkzg = 'S'
AND bwart IN ('321','322','101','102','131','132') .
APPEND it_mseg.
CLEAR it_mseg.
ENDSELECT.
ENDLOOP.
ENDLOOP.
PERFORM get_pbid.
BREAK-POINT.
PERFORM s_week_days.
PERFORM get_backlog.
PERFORM gt_out.
PERFORM build_fieldccatlog1.
PERFORM 13alv.
ENDIF.
******************END OF 13 WEEK*************************************************************************
*****************For 26 th Week*************************************************************************
IF p_26week EQ 'X'.
LOOP AT s_week.
s_week-high = s_week-low + 25.
MODIFY s_week TRANSPORTING high.
SELECT SINGLE startdt FROM zcalendar INTO st_date WHERE sapweekno = s_week-low.
SELECT SINGLE enddt FROM zcalendar INTO en_date WHERE sapweekno = s_week-high.
SELECT mblnr budat FROM mkpf INTO TABLE it_mkpf WHERE budat GE st_date AND budat LE en_date.
SELECT * FROM mseg INTO TABLE it_mseg FOR ALL ENTRIES IN it_mkpf WHERE mblnr = it_mkpf-mblnr
AND matnr IN s_matnr
AND werks = p_werks
AND shkzg = 'S'
AND bwart IN ('321','322','101','102') .
ENDLOOP.
PERFORM get_pbid.
PERFORM s_26week_days.
PERFORM gt_out26.
PERFORM build_fieldccatlog1.
PERFORM 26alv.
ENDIF.
**************END OF 26 TH WEEK **********************************************************************
*& Form get_pbid
text
FORM get_pbid .
DATA : lv_line TYPE i,
lv_perxx LIKE scal-week.
DATA it_dispo(1) TYPE c. " ashish
LOOP AT s_matnr. " TODAY
BREAK-POINT.
SELECT SINGLE diber INTO it_dispo FROM marc WHERE matnr = s_matnr-low
AND werks = p_werks.
IF it_dispo NE 'X'.
SELECT * FROM pbim WHERE matnr = s_matnr-low
AND werks EQ p_werks
AND loevr = space.
SELECT startdt enddt sapweekno INTO TABLE it_date1 FROM zcalendar WHERE sapweekno GE s_week-low AND sapweekno LE s_week-high.
SORT by s_matnr p_werks.
LOOP AT it_date1.
SELECT * FROM pbhi INTO TABLE it_pbhi WHERE bdzei = pbim-bdzei AND ( pdatu GE it_date1-it_date1 AND pdatu LE it_date1-enddt ).
IF sy-subrc EQ 0.
DELETE it_pbhi WHERE aenam = 'ABBAU'.
LOOP AT it_pbhi.
it_ph = it_ph + it_pbhi-plnmg.
it_dm = it_dm + it_pbhi-dbmng.
ENDLOOP.
it_ph = it_ph - it_dm.
gt_pbed-matnr = s_matnr-low.
gt_pbed-plnmg = it_ph.
gt_pbed-perxx = it_date1-sapweekno.
APPEND gt_pbed.
CLEAR it_pbhi.
CLEAR it_ph.
CLEAR it_dm.
REFRESH it_pbhi.
CLEAR gt_pbed.
ELSE.
ENDIF.
ENDLOOP.
ENDSELECT.
ELSE.
SORT BY s_matnr p_werks.
LOOP AT s_matnr.
SELECT * FROM pbid WHERE matnr = s_matnr-low
AND werks = p_werks
AND loevr EQ space.
****PHANI
SELECT * FROM pbed WHERE bdzei = pbid-bdzei.
MOVE-CORRESPONDING pbed TO gt_pbed.
PERFORM convert_to_week USING pbed-pdatu
CHANGING gt_pbed-perxx.
check gt_pbed-perxx in r_week.
gt_pbed-matnr = pbid-matnr.
PERFORM GET_PARENT USING gt_bom-MATNR
CHANGING gt_pbed-p_matnr
GT_pbed-OJTXB.
COLLECT gt_pbed.
CLEAR gt_pbed.
*PHANI
data it_date1 type ZSTARTDT.
SELECT startdt enddt sapweekno INTO TABLE it_date1 FROM zcalendar WHERE sapweekno GE s_week-low AND sapweekno LE s_week-high.
LOOP AT it_date1.
SELECT * FROM pbhi INTO TABLE it_pbhi WHERE bdzei = pbid-bdzei AND ( pdatu GE it_date1-it_date1 AND pdatu LE it_date1-enddt ).
IF sy-subrc EQ 0.
DELETE it_pbhi WHERE aenam = 'ABBAU'.
LOOP AT it_pbhi.
it_ph = it_ph + it_pbhi-plnmg.
it_dm = it_dm + it_pbhi-dbmng.
ENDLOOP.
it_ph = it_ph - it_dm.
gt_pbed-matnr = s_matnr-low.
gt_pbed-plnmg = it_ph.
gt_pbed-perxx = it_date1-sapweekno.
APPEND gt_pbed.
CLEAR it_pbhi.
CLEAR it_ph.
CLEAR it_dm.
REFRESH it_pbhi.
CLEAR gt_pbed.
ELSE.
ENDIF.
ENDLOOP.
ENDSELECT.
ENDLOOP.
ENDIF.
ENDFORM. " get_pbid
*& Form convert_to_week
text
-->IV_DATE text
-->XV_WEEK text
FORM convert_to_week USING iv_date
CHANGING xv_week.
DATA : lv_week LIKE scal-week.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
date = iv_date
IMPORTING
week = lv_week.
xv_week = lv_week.
ENDFORM. "CONVERT_TO_WEEK
*& Form get_stock
text
FORM get_stock .
DATA : lv_stock LIKE mard-insme.
LOOP AT gt_pbed.
READ TABLE gt_stock WITH KEY matnr = gt_pbed-matnr.
CHECK sy-subrc NE 0.
SELECT SUM( labst ) INTO lv_stock FROM mard
WHERE matnr = gt_pbed-matnr AND werks = p_werks.
SELECT SUM( insme ) INTO gt_stock-stock FROM mard
WHERE matnr = gt_pbed-matnr AND werks = p_werks.
gt_stock-stock = gt_stock-stock + lv_stock.
gt_stock-matnr = gt_pbed-matnr.
APPEND gt_stock.
ENDLOOP.
ENDFORM. " get_stock
FORM s_week_days .
DELETE gt_pbed WHERE perxx < s_week-low. " and perxx > s_week-high.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val1.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val2.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val3.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val4.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val5.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val6.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val7.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val8.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val9.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val10.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val11.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val12.
s_week-low4(2) = s_week-low4(2) + 1.
CONCATENATE 'WEEK' '-' s_week-low+4(2) INTO l_val13.
ENDFORM. " s_week_days
*& Form build_fieldccatlog
text
FORM build_fieldcatlog .
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'MATNR'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = 'MATERIAL'.
APPEND gt_fieldcat1 TO gt_fieldcat.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WERKS'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_m = 'WERKS'.
APPEND gt_fieldcat1 TO gt_fieldcat.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'HEAD'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = 'REF'.
APPEND gt_fieldcat1 TO gt_fieldcat.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'STOCK'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = 'FG-STOCK'.
APPEND gt_fieldcat1 TO gt_fieldcat.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'BACKLOG'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = 'BACKLOG'.
APPEND gt_fieldcat1 TO gt_fieldcat.
dd = sy-datum+0(4).
cc = l_val1+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val1.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK1'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val1.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val2+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val2.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK2'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val2.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val3+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val3.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK3'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val3.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val4+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val4.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK4'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val4.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val5+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val5.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK5'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val5.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val6+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val6.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK6'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val6.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val7+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val7.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK7'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val7.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val8+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val8.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK8'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val8.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val9+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val9.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK9'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val9.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val10+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val10.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK10'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val10.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val11+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val11.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK11'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val11.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val12+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val12.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK12'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val12.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
CLEAR : cc,dd1.
cc = l_val13+5(2).
CONCATENATE dd cc INTO dd1.
LOOP AT it_zcalendar WHERE sapweekno = dd1.
CONCATENATE 'WEEK-' it_zcalendar-wfpweekno+4(2) INTO l_val13.
CLEAR gt_fieldcat1.
gt_fieldcat1-fieldname = 'WEEK13'.
gt_fieldcat1-tabname = 'GT_OUT'.
gt_fieldcat1-seltext_l = l_val13.
APPEND gt_fieldcat1 TO gt_fieldcat.
ENDLOOP.
ENDFORM. " build_fieldccatlog
*& Form 13alv
text
FORM 13alv .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT =
it_fieldcat = gt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = '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
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_out
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " 13alv
*& Form gt_out
text
FORM gt_out .
LOOP AT s_matnr.
AT NEW low.
gt_out-matnr = s_matnr-low.
************BEGIN OF FIRST WEEK******************************
LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val15(2).
gt_out-week1 = gt_pbed-plnmg.
LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
IF p_mov = '321'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
it_tot1 = it_tot1 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '101'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
it_tot1 = it_tot1 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '131'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
it_tot1 = it_tot1 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
CLEAR gt_pbed.
ENDLOOP.
ENDLOOP.
it_tot1 = it_tot1 - it_tot1_2.
it_back1 = gt_out-week1 - it_tot1.
CLEAR it_zcalendar.
END OF FIRST WEEK ************************
**********************SECOND WEEK***************************************
LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val25(2).
int2 = int2 + 1.
CHECK int2 = 1.
gt_out-week2 = gt_pbed-plnmg.
LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
IF p_mov = '321'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
it_tot2 = it_tot2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
it_tot2_2 = it_tot2_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '101'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
it_tot2 = it_tot2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
it_tot2_2 = it_tot2_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '131'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
it_tot1 = it_tot1 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
it_tot1_2 = it_tot1_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
CLEAR gt_pbed.
ENDLOOP.
ENDLOOP.
it_tot2 = it_tot2 - it_tot2_2.
it_back2 = gt_out-week2 - it_tot2.
it_back2 = it_back2 + it_back1.
CLEAR it_zcalendar.
********************************End of The Second week***********************************************
*********************Third week*************************************************************************
LOOP AT gt_pbed WHERE matnr = s_matnr-low AND perxx4(2) = l_val35(2).
int1 = int1 + 1.
CHECK int1 = 1.
gt_out-week3 = gt_pbed-plnmg.
LOOP AT it_zcalendar WHERE sapweekno = gt_pbed-perxx.
IF p_mov = '321'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '321'.
it_tot3 = it_tot3 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '322'.
it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '101'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '101'.
it_tot3 = it_tot3 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '102'.
it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
ENDLOOP.
ENDIF.
IF p_mov = '131'.
LOOP AT it_mkpf WHERE budat GE it_zcalendar-startdt AND budat LE it_zcalendar-enddt.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '131'.
it_tot3 = it_tot3 + it_mseg-erfmg.
CLEAR it_mseg.
ENDLOOP.
LOOP AT it_mseg WHERE mblnr = it_mkpf-mblnr AND matnr = s_matnr-low AND bwart = '132'.
it_tot3_2 = it_tot3_2 + it_mseg-erfmg.
My first question to you would be ...you have defined the plant code as parameters so you can enter multiple plants...change that to a select-option and you would be able to display all the results.
Regards
Anurag -
Difference between ITS and web dynpro abap
Hi Experts.
Can any explain me what is the main difference between EWT/ ITS and web dynpro abap. Basically i am going to developed some existing EWT in webdynpro ABAP , so i want to know what are the advantage of WD ABAP over ITS .
Thanks in Advance.
SatyaClosing thread, thanks for your help.
Thanks,
Satya -
SSO to ABAP BSP without client
Dear colleagues.
In our scenario not-domain user need to reach ABAP BSP (ITS) application without entering password for ABAP WAS.
Is there any option to use SAP Netweaver Single singon-on 2 server to create redirection URL?
Regards
VladimirHi Vladimir,
SAP SSO issues certificates and deliver it automatically to the PC of the user (short living certificates -> 24 h standard), so it can be used for SSO. It is not a traditional CA. In a traditional CA you have to take care about the certificate lifecylcle which can be very costly but you can use the certificate for a longer timer. SAP SSO works with short living certificates, so you do not have to take care about the lifecylcle of the certificate.
So if you really want to have a "password free" solution, you have to use long lived certificates but take a care about the lifecycle (maintain certificates which are not valid anymore and distribute this information to all related systems, ..... ). Otherwise you have a security problem.
So it is really all about the use case (deployment, security requirements, ...), but you know now the options and you can decide dependig on the use case.
Another option is of course SAP Logon Tickets or SAML. But both also reguire an initial authentication without an AD.
Regards
Matthias -
Getting an error when i am execution a BI query using ABAP.
Hi Expert,
I am getting an error when i am execution a BI query using ABAP. Its Giving me this Error "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying as bellow.
Property Data Integrity has been set differently to the system default.
Current setting: 0 for GHRGPDM12
System default: u2019 7 u2018
As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
when i am debugging , I am getting error from
create instance of cl_rsr_request
CREATE OBJECT r_request
EXPORTING
i_genuniid = p_genuniid.
this FM. Its not able to create the object. Can any one please help me out.
Thanks in advance.
Regards
SatrajitHi,
I am able to solve this problem
Regards
Satrajit -
Java Stack is not started in SAP netweaver ABAP+JAVA Stack
Dear All,
Win2003 64 bit , ECC6.0 , Oracle 10.2.0.2.
Its a newly installed SAP Netweaver Dual Stack (PI) , Yesterday i have done Client copy from 001 to 999 (SAP_UCUS).
Client copy also successfully completed .
login/system_client=999 ,i have activated in Default profile and i have restarted the Server.
Now i dont have issue with ABAP stack ,its working fine, but java stack is not working running.
std_output0.out log:
Service com.sap.aii.adapter.mail.svc started. (812 ms).
Service com.adobe~XMLFormService started. (2937 ms).
Service com.sap.aii.af.ispeak.svc started. (390 ms).
ServiceManager started for 73719 ms.
Framework started for 85781 ms.
SAP J2EE Engine Version 7.00 PatchLevel is running!
PatchLevel September 11, 2006 16:35 GMT
>
Login :### Excluding compile: com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingImpl::initializeRelations
Excluding compile: com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType::_loadInto
Excluding compile: com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder::readSequence
Excluding compile: com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder::readElement
SAP J2EE Engine Version 7.00 PatchLevel is shutting down! PatchLevel September 11, 2006 16:35 GMT
=================
C:\Documents and Settings\ixdadm>jcmon pf=D:\usr\sap\IXD\SYS\profile\IXD_DVEBMGS
00_SAPXIDEV
[Thr 4576] MtxInit: -2 0 0
============================================================
JControl Monitor Program - Main Menu
============================================================
0 : exit
10 : Cluster Administration Menu
20 : Local Administration Menu
30 : Shared Memory Menu (Solid Rock, experimental)
command => 20
Can't open shared memory administration (rc = -107)
============================================================
Kindly suggest .
Edited by: satheesh0812 on Dec 30, 2010 12:00 PMHi,
Please provide the full log entries of server0_out.log.
You can access UME service properties in config tool by following this path..
Global server configuration -> services -> com.sap.security.core.ume.service
There you can set the following settings for new client 900 (it u want to change it)
ume.r3.connection.master.client
ume.r3.connection.master.user
ume.r3.connection.master.passwd
Refer this [useful link|http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bbdccc7850064e10000000a1553f7/frameset.htm] to get more detailed information. Refer [Config Tool actviities|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a3d713-5ab6-2c10-ddb1-e7487bc33384?quicklink=index&overridelayout=true] link To get more information.
Also, Make sure that the Users J2EE_GUEST, J2EE_ADMIN, SAPJSF ABAP Users exist in the ABAP client (i.e. client number as mentioned in ume.r3.connection.master.client ) and they are not locked. All the required roles need to be assigned properly.
Regards,
Bhavik G. Shroff
Edited by: Bhavik G. Shroff on Dec 31, 2010 2:58 PM -
Errror in RFC connection between SCM ABAP stack and JAVA Stack
Hi All
we have installed SCM Abap stack and SCM java stack on same system within single database.when i create rfc connection AI_RUNTIME_JCOSERVER from SCM Java stack to SCM Abap Stack its working fine,but when i am configuring same from SCM Abap to SCM Java using SM59 its giving error.
Error Details Error when opening an RFC connection
Error Details ERROR: failed to open file G:\usr\sap\SCD\DVEBMGS00\data\sideinfo.DAT
Error Details LOCATION: SAP-Gateway on host OPS20SCD1.Octal.pet / sapgw00
Error Details CALL: fopen
Error Details COMPONENT: SAP-GW-LIB (ReadSideInfo)
Error Details COUNTER: 1854
Error Details ERROR NUMBER: 2
Error Details ERROR TEXT: ENOENT: No such file or directory OR: The system cannot find the fi*
Error Details MODULE: gwxxside.c
Error Details LINE: 274
Error Details RETURN CODE: 451
Error Details SUBRC: 0
Error Details RELEASE: 701
Is it compulsory to create RFC connection between abap and java installed on the same system.
plese suggest.
Regardsto configure acceptance of the ABAP (integrated ITS / WebGUI) saplogonticket on the java stack, just log into the java stack (http://FQDN:50xxx/nwa) and select configuration THe last item in the list is Trusted System... click.
on the ensuing page, click on the add trusted system button --> by querying trusted sytem.
Enter the required data on the page:
system type: ABAP
host name: FQDN
System Nr: your instance number
client (of the productive client)
and a username and pw with superuser priveliges in the system (SAP_ALL/SAP_NEW, etc).
the click next
On the final screen, click finish.
You have now SSO setup between the ABAP and Java stacks. To configure SSO to accept java saplogontickets on ABAP see:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b0310d6-0801-0010-3185-b2371a280372
This should resolve your question. -
Native libraries in ABAP runtime
Hello
I have a question. Im developing application which is doing lots of XML processing (quite complicated and time consuming). Since XML support in ABAP itself its very poor we decided to use Java libraries on external server. Comunication between java and abap is done via Jco. But ... the best solution could be if we could use native libraries (java or C JNI wrapper to java) in ABAP. Is there a method or approach to expose interface in ABAP OO and then code implementation to use native library. How to deploy such library in R3.
I saw that all classes from iXML are connected somehow to native runtime.
Does anybody know how to do that, or just can point me to any documentation or example ?
Best regards
MarcinCan you make sure this native library is in the PATH(Windows) or LD_LIBRARY_PATH
(UNIX)?
Cameron Purdy wrote:
That has nothing to do with it being an EJB. It just means it can't find the
code to call.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"marc claeys" <[email protected]> wrote in message
news:3cd7e60a$[email protected]..
Everywhere I read not to use (load) native libraries in a bean.
However I couldn't find a reason for not doing so I tried.
The loading of the lib. is successful but when trying to call
a function of it I receive:
java.lang.UnsatisfiedLinkError: beanHelloWorld
Could someone explain why this happens?
Thanks in advance
Marc
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
ABAP and Java Stack: Which to choose/supported standards and components?
Hello,
I am trying to understand the role of the two stacks in NW. Maybe anyone has a few
hints where I can find answers to the following questions:
- An overview of supported Standards (Java 5 since when?)
- An overview of which component runs on which stack? Portal->Java, Integration Server->ABAP and so on.
- Guidelines when to install both stacks and when to use just one stack? When do I use which one?
- Has SAP an stategy towards an one Stack solution (possibly Java?)
Best regards and thanks for any pointers!
StefanAn overview of supported Standards (Java 5 since when?)
Go to service.sap.com/pam
Product Availability Matrix will tell you about supported version and platforms.
An overview of which component runs on which stack? Portal->Java, Integration Server->ABAP and so on.
Usually the question goes the other direction: what stacks we need for implementation of a particular function?
More and more products require ABAP backend and Java frontend.
For example Employee Self Service has been transerred from ABAP only ITS based to ABAP backend and Java frontend.
Same with SRM.
Guidelines when to install both stacks and when to use just one stack? When do I use which one?
Same as above, driven by business requirements, not technology.
Has SAP an stategy towards an one Stack solution (possibly Java?)
No. Core business functions are still being developed on ABAP and interface, GUI etc utilize JAVA.
Regards,
Slava -
To consume web service in ABAP is it required that server should be XI.
Hi ,
I am trying to connect to a webservice from netweaver 7.0 systemand it gives an error " Not configured as integration engine". Is it required to have integration engine to consume web service.
SanjayHi Sanjay
You can consume webservices in ABAP but its better to use XI in mid to avoid point to point communication. Using XI you can have a central hub for all services you consume or publish
Check this link as well
BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
Thanks
Gaurav -
Got stuck at import abap phase during system installation from system copy
hi,
we have ECC6 ehp4 sp5 level system (linux + db2), due to some reasons our quality system was crashed, we took homogeneous system copy of Production server through sapinst and now we are restoring in Quality server through sapinst. during import ABAP phase its taking long time to pass and system message its showing is
waiting 6134 minites for DDL template file DDLDB6.tpl in dump directories.
i stopped installation and once again started restoration through system copy. Now the system go stuck at the same phaseHi,
AFAIK, report SMIGR_CREATE_DDL should be run in se38 before starting the export. This generates the required DDL statements which are needed for system copy.
For more info, refer system copy guide in http://service.sap.com/instguides. Hope this helps.
Rgds,
Soujanya -
Hi Friends,
can i send me Creation of ABAP QUERY...
REGARDS,What Is SAP Queries
Many times a need arises for SAP Users and Functional Consultants to generate quick reports without getting any ABAP coding done time taken to complete the coding in development, transport and test it in QA system and then transport to production is sometimes too long. In such cases, ABAP/4 query is a tool provided by SAP for generating these kind of reports.
Type of Report Desired:
Before starting to write an ABAP query, its advisable to decide the type of report that the user wants. ABAP query provides the following type of reports:
Basic List Simple report
Statistics Report containing statistical functions like Average &Percentage
Ranked List Report written for analytical purpose
The output is always seen in the order of Basic List, then Statistics and then Ranked List if any. One ABAP query can have one basic list, maximum of 9 statistics and maximum of 9 ranked lists.
In a nutshell, an ABAP/4 query can be designed in four steps
- Creation of a user group
- Creation of functional area
- Assignment of user group to functional area
- Creation of the query based on functional area
The various objects that form an ABAP query can be created in the following 2 ways:
- Tools => ABAP/4 Workbench => Utilities => ABAP/4 Query
OR
- By executing the transaction codes mentioned below:
SQ01 ABAP/4 Query
SQ02 Functional Area
SQ03 User group
Step I - Create Functional Area
In the functional area section, the user indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query. One functional area can be assigned to many user groups. A functional area can be created with or without a logical database. To create a functional area with a logical database, one has to mention the name of the database and then select the fields from the tables that form the logical database.
ABAP Query Authorizations: To use an ABAP query, the user must have appropriate authorizations. Two ways of providing authorizations to the users are as follows:
- User groups
The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases.
- Authorizations
The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT which can take values 02 for Change, 23 for Maintain and 67 for Translate.
This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:
S_QUERY_ALL Change, maintain and translate query
S_QUERY_UPD Change and Translate
Though the general concept of an ABAP query is moderately difficult, the results and the long term use of the ABAP query is worth the effort.
Creating the ABAP Query
To create the query use the menu path Environment => Queries
· Give a name to the query and click on the Create button
· Give the description of the query in the next screen. Specify the output length and select the processing option from the Further Processing Options box. The data can be displayed in various formats such as table, download to a file, and display in Word etc.
· Click on the Next screen icon. Select the functional group screen. All the functional groups created in the functional area are displayed. Select the groups that you desire fields from only these groups will be displayed in the output. Click on the respective check boxes and click on the Next Screen icon.
· The Select Field screen gets displayed. Select all the fields from the user group that you need to display on the output of the query. If required, specify the short names for the fields using the menu path Edit => Short Names => Switch On/Off or you can also change the selection text contains in the order you want to appear on the selection screen. You can also maintain column headers for the fields by using the menu path Edit => Column Header => Maintain.
· Click on the Next Screen icon to get the Selections Screen. Here you can check against the fields that you require to be shown on the selection screen.
· Now we need to specify the output type for the query as Basic List, Statistics or Ranked List. Choose the option Basic List.
· On the Basic List line structure screen the following things can be done
o Specify the report layout in detail lines on which the fields will appear.
o Order in which the fields will appear in the output
o Sort order for the fields this is optional.
o For the numeric fields you can check against the fields for which you require totals in the output.
o Beautify the output according to the options provided.
· Click on the next screen icon, to specify the control levels as mentioned below
o Specify the sort order. The default sort order is ascending and can be changed to descending if required.
o Totals for each field selected for sorting can be displayed
o To display the output of a field in a box click on the check box against box. To display a line after the output of a field, click on the check box against BlnkLn
o To display the output of a field on a new page click on the check box against New Page
· Click on the next screen icon to get the List Line options Screen. Here you can specify the background color for displaying the output.
· Click on the next screen icon to get the Field Output Option screen. In this you can specify the following:
o Change the output length or the display positions of the fields
o Specify the display position of the unit for quantity or currency fields. Click left radio button to display it before the figure, middle radio button to display it after the figure while last radio button to hide the unit altogether.
o Specify color for the column of every field under the Format option.
o Specify the label against the output of sort fields.
· Click on the Next screen option to go to the Basic List Header screen. Here you can specify
o Give page header and page footer for the output
o Include user name and date by specifying &N and &D respectively.
After providing all the above options you can save the query and execute it by clicking the Execute button twice
Regards,
Maha -
Reg:working with multiple windows in webdynpro-abap
Hi ,
How can we create multiple windows and how can we link them...
suppose we have 3 fields on first screen .how to move the data from the first screen to second screen..
Thanks & Regards
Suman PuthadiHi
As per your Subject you are looking for "working with multiple windows in webdynpro-abap" and for abap there is a different forum. Web Dynpro ABAP
Hope its clear to you...
Even you can read this post when ever you get time Read before posting
Regards
Ayyapparaj
Maybe you are looking for
-
How do you get the value of a selected list item?
I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing
-
No further information.
-
Where can I download an older version of Pages for iOD 5.1.1?
Where can I download an older version of Pages for iOS 5.1.1?
-
Reg:Howq to set Default role on SSO Authentication
We have a scenario where Default roles should be set to Contributor on SSO Authentication(not using LDAP). I have the below configuration SSO_DefaultRoles=contributor SSO_ModifyExtraParams=true SSO_SetAuthInfo=true SSO_IsSimpleAuth=false in oraclesso
-
Hi Friends, Info cube contains aggregated data and when query is executing on this cube that query retrieve this aggregated data so performance will be high. suppose i have data in table , if i create a query on this one ( by using business objects