Avoiding save option POP upin a interactive planning screen
Hi,
I have a requirement to avoid the Pop up menu which asks to save changes, when i close the interactive planning table. This save option comes up even though i havent changed any data. So i need to switch off this pop up, if i am not really doing nay changes in the planning table. I just view the data.
regards
Karthik
Hi,
If you are just viewing, why don't you set the parameter /SAPAPO/SDP94_D_MODE to X in user own data or SU01 - parameters tab. It puts you in display mode by default and when you go to edit mode, it works as usual.
Checking whether there are any changes and then giving the popup may put extra load on the system...but you can try with BADI /SAPAPO/SDP_INTERACT, method SAFETY_POPUP_EXCLUDE...
I haven't tried this though.
Similar Messages
-
"Save" Option pops up while Submitting
Hello Friends,
We have a functionality where there is a form(Adobe Interactive), and when the user clicks on the "Submit" button
the fields data in the pdf form should get attached as xml in the mail.
Now when I test it by clicking on the "Submit" button, a pop-up comes up asking me to save the pdf.
Once I save the pdf, there is no conversion of xml and attachment to the mail.
On the other hand, If I do not save the pdf and cancel the "save", it gets attached to the mail as xml.
I wonder why the "save" option pops up.
Is there a way where I can disable it ? And design the functionality wherein the "Submit" button directly
attaches the content to the mail in xml.
Please let me know guys.
Regards,
SanjayThanks for your quick response yesterday! After chatting with our official IT guy, He lined some things out for me. We are using SQL 2005. We discussed working up a program to add our data directly, which is an option. It will take some learning on my part, and I am willing to do it.
It would be optimal, in my mind, to use our web version in conjunction with Labview. But the more experienced person might know better.
When I call up our webpage on the front panel, I am able to navigate it by clicking around just like a normal browser. Using this method, the refresh issue I mentioned in my original post is not a problem. It refreshes with no pop-up. BUT I lose the capability to place my data into the fields. I am assuming the reference at the property node before the data placement is incorrect. (pictured below)
Is there a way to physically navigate a webpage and then use Labview to find the reference of whatever page I am currently on in order to place my data? This might be the route I need to go. -
User can't access interactive planning screen
Hi
we has one user already can logon APO init screen. but when him enter T-code: /SAPAPO/SDP94
there has same error "No vaild version exists for planning area '9ADP01' do you want to initiallize a planning
version?"
and either check YES or No, also can't display Planning screen.
i think there has some authorization not give this user.
could you let me know how to reslove this issue?
Thanks Kim
Edited by: Songhua Kim on Jul 18, 2008 10:17 AMHi Kim,
I think there is no authorization Problem.Whenever you open Interactive demand planning Screen you will find default planning Book,which is used by previous user with same transaction.
Try following steps:
1.Go to /n/sapapo/sdp94 T-code.
2.You will find one Pop Up that & massage in that "No vaild version exists for planning area '9ADP01' do you want to initiallize a planning
version?"
3.Press Yes.
4.In planning version field , enter active version 000
5.Enter
6.Press Execute Button.
You will get all planning book.Select your respective planning & it`s data view.
Hope so it will helpful for you.
Regards
Sujay -
Saving data in the Interactive Planning Data
Hi,
I want to save data in the interactive Planning and for some key figures it says that the data is saved successfully but the data is not saved when I returne to the Interactive Planning.
What can it be?
I have looked for possible causes, but I have not identify it
Thanks in advanceHi ,
Are the key figures that you are trying to save data for "auxillary key figures" . If so they will retain their value only till your are in the interactive planning screen , once you back out and come in again you will not be able to see the values that you put earlier. Check that and update me
Thanks
Saradha -
I m running a website on intranet. while accessing pdf file more than 8 MB in size. A window having Openwith, Save option pops up. i would like firefox to open PDF files of any size strightway in the browser without pop ups. Please help
Thanks in anticipationkearly - thanks a million for posting both the question & the reply! I just unchecked that little box by accident, & couldn't figure out for the life of me how to fix it. Thanks again!!
-
Getting prompted to Save As when using Save option
We would like to deploy Reader XI with Protected Mode enabled. We have noticed that when using the Save option the user receives a prompt to Save As instead. I understand this is a security feature to basically grant Reader/Acrobat permission to save to this location.
Issue is that we have in house software that opens the PDF using Reader allowing the user to make markups and then save, but if the user saves the file to a different location this will cause the in house software to fail. Older version of Reader with Protected Mode disabled allows just the save to be used and the original file location to be preserved.
Is there anyway to white list this Directory so that Reader can save to it without a Save As prompt?
Only fix I know of currently is to disable Protected Mode but we would like to avoid that if possible
ThanksThere is a notation in the documentation that may be relevant.
"Permissions granted by other features often overlap. For example, cross domain policies, internet access settings in Trust Manager, and certificate trust settings for certified documents sometimes interact so that the most permissive setting takes precedence. Users should TEST THEIR CONFIGURATION prior to deployment."
Have you checked the possible overlapping features? -
Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option
I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.-
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
In this scenario, I already developed Data Definition (XML) and Template (RTF) for the report and a self service page with 'Generate PDF' button. When the button is clicked the template is getting filled with the data from the database and displaying the PDF output. A dialog box with 'Open/Save/Cancel' appears before the PDF document is shown.
But my requirement is to avoid this dialog box and Save option so when the button is clicked the document has to be directly sent to the printer.
Is there anyway to achieve this? Please help as this is very urgent..
Thanks,
NarenNaveen,
You need to read the documentation here:
http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
All of the information you need is in these:
Administration and Developer's Guide
Report Designer's Guide
JavaDocs
With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
For an example that should be very close to what you need to do, see the comments section of this page:
http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
Find the comment titled: "Alternative: BlobDomain from data template"
The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
Kurz -
Hello,
The feature 'Select Time Buckets Profile' which can be selected from the icon 'Period Structure' in Interactive Planning in DP when selected after loading data in the dataview, is being applied to only the future horizon.
I tried to use the next feature from the menu 'Set Time Buckets profile', this too gives option to select only 'TB Profile ID (Future)' and gets applied to future horizon.
Is this a bug in the system or it comes like that. If we want the selected TBP to be applied to both future and past, is there any additional setting we need to do to be able to change the past profile on the fly using this feature?
Thanks,
TejThanks Sunitha for your clarification, its a little surprising that we need to change at the dataview level Only for the past horizon. Because in production system, a business user might want to do this , but will not be able to do due to security.
It would be good to have this feature usable for past horizon as well.
Guru Charan,
Not necessarily that Business users will not be concerned about knowing past patterns, sometimes it becomes important to analyse history as well , as you rightly said - 'we are much concerned with how the future is getting affected based on the past data.', It becomes important to analyse both history and forecast in the same buckets and therefore need to be using the same profile both for past and future for comparing on same levels. I understand this is not a bug, but you could say its necessary feature which is missing in interactive planning.
Thanks,
Tej -
SAP PP-Single item interactive planning & simulation Mode in MRP
Hello SAP-Guruu2019s
Pls tell me the Use of Single item interactive planning & simulation Mode in MRPDear,
MD43 provide you with interactive planning.
if you use long term planning and you want to import the
result of long term planning to productive planning, you can import long term planning result from MD43.
In the second screen of MD43 (almost same as MD04), go to menu and select edit
=>Copy simulative LT planned order.
MD03 does not have interactive mode. So once you kick the MRP from MD03,
MRP is triggered and save the MRP result automatically.
I hope this explanation help your understanding.
Regards,
R.Brahmankar -
How to save a user version of interactive reports in 3.2.
My users ask me to save a "modified version" of a defined interactive report (eg. the want to change the selected columns and the remember them).
When I connect to a report as developer I see a "Save Report *" option which asks me if I want to apply the "configuration" as default for all users (this is not my need).
When I connect as normal user I simply don't see any save option.
I read in the documentation it's possible (if I understood well) but I din't find the way.
My reports were developed in 3.1 and then migrated to 3.2.
Tks
TullioThat can only work if you use an Authentication scheme (so not on a ' Public' page).
And check the Report Attributes of that Report: Is 'Save Report' ticked? -
Hi experts,
Could you plz provede me an example for an EDITABLE ALV with the SAVE option. i.e. i could edit the ALV output and after the changes i should save the changes i made by clicking SAVE button.
Thanks in advance
Regards,
Ramhi,
check the sample code
REPORT ZLAXMI_REPORT6 NO STANDARD PAGE HEADING
MESSAGE-ID ZZ
LINE-SIZE 132
LINE-COUNT 65 .
TABLES: MARA.
TYPE-POOLS: SLIS.
TYPES: BEGIN OF T_MARA,
MATNR TYPE MARA-MATNR, "Material Number
ERSDA TYPE MARA-ERSDA, "Creation date
BRGEW TYPE MARA-BRGEW, "Gross weight
NTGEW TYPE MARA-NTGEW, "Net weight
MTART TYPE MARA-MTART, "Material type
MBRSH TYPE MARA-MBRSH, "Industry Sector
REC_SEL TYPE C , "checkbox
END OF T_MARA.
V A R I A B L E S
DATA: V_REPID LIKE SY-REPID,
V_FLAG(1) TYPE C.
CONSTANTS :
C_X(1) TYPE C VALUE 'X',
C_PF_STATUS TYPE SLIS_FORMNAME VALUE 'F_SET_PF_STATUS',
C_FC_DELETE(6) TYPE C VALUE 'DELETE',
C_FC_MODIFY(6) TYPE C VALUE 'MODIFY',
C_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'F_USER_COMMAND',
C_USER_COMMAND_MODIFY TYPE SLIS_FORMNAME
VALUE 'F_USER_COMMAND_MODIFY',
C_ICON_DELETE TYPE ICON-NAME VALUE 'ICON_DELETE', " Icon,Delete'
C_ICON_CANCEL TYPE ICON-NAME VALUE 'ICON_CANCEL', " Icon,Cancel'
C_FC_SAVE(4) TYPE C VALUE 'SAVE'.
*internal table declarations.
DATA: IT_MARA TYPE STANDARD TABLE OF T_MARA WITH HEADER LINE,
IT_MODIFY TYPE STANDARD TABLE OF T_MARA WITH HEADER LINE,
IT_TEMP TYPE STANDARD TABLE OF MARA WITH HEADER LINE,
*-ALV Internal Tables.
*--Field Catalog
IT_FIELDCAT TYPE STANDARD TABLE OF
SLIS_FIELDCAT_ALV WITH HEADER LINE,
*--Layout
WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
*--Sort
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV ,
**-Structure for excluding function codes
WA_EXTAB TYPE SLIS_EXTAB,
**-To hold function codes to be excluded in ALV toolbar
IT_EXTAB TYPE SLIS_T_EXTAB.
*selection screen.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR,
S_ERSDA FOR MARA-ERSDA.
SELECTION-SCREEN: END OF BLOCK B1.
*--Radio buttons to select either Display/Delete/Modify
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME
TITLE TEXT-002.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-003.
PARAMETERS: P_DISP RADIOBUTTON GROUP RAD1 DEFAULT 'X'.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-005.
PARAMETERS: P_UPD RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-004.
PARAMETERS: P_DEL RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN END OF BLOCK B2 .
AT SELECTION-SCREEN.
PERFORM VALIDATE_SCREEN.
*start of selection
START-OF-SELECTION.
*clear the internal tables to be used.
CLEAR: IT_MARA,IT_MARA[],
V_FLAG.
*get the data
PERFORM GET_DATA.
*end of selection
END-OF-SELECTION.
IF IT_MARA[] IS INITIAL.
MESSAGE I000 WITH
'No Records found for the given Selection Criteria'(012).
ELSE.
*do alv process
V_REPID = SY-REPID.
*--Sort the Output Fields
PERFORM SORT_FIELDS.
*--Build Field catalog for the Output fields
PERFORM BUILD_FIELDCAT.
*--Set the Layout for ALV
PERFORM SET_LAYOUT.
IF P_DISP = C_X.
*--Exclude any Buttons on the Appn tool bar
perform change_default_pf_status.
MOVE C_FC_DELETE TO WA_EXTAB-FCODE. " DELETE button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
MOVE C_FC_MODIFY TO WA_EXTAB-FCODE. " MODIFY button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
ELSEIF P_UPD = C_X.
*--Exclude DELETE Button on the appn tool bar
MOVE C_FC_DELETE TO WA_EXTAB-FCODE. " DELETE button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
ELSEIF P_DEL = C_X.
*--Exclude MODIFY button on appn tool bar
MOVE C_FC_MODIFY TO WA_EXTAB-FCODE. " MODIFY button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
ENDIF.
*--Exclude SAVE button for all options
MOVE 'SAVE' TO WA_EXTAB-FCODE. " SAVE button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
*--Display ALV output
PERFORM LIST_DISPLAY TABLES IT_MARA
USING C_USER_COMMAND.
ENDIF.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM GET_DATA .
SELECT MATNR
ERSDA
BRGEW
NTGEW
MTART
MBRSH
FROM MARA
INTO TABLE IT_MARA
WHERE MATNR IN S_MATNR
AND ERSDA IN S_ERSDA.
IF SY-SUBRC <> 0.
*no records selected leave processing
STOP.
ENDIF.
SORT IT_MARA.
ENDFORM. " get_data
*& Form sort_fields
text
--> p1 text
<-- p2 text
FORM SORT_FIELDS .
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'MATNR'.
WA_SORT-SPOS = '1'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'ERSDA'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
ENDFORM. " sort_fields
*& Form build_fieldcat
text
--> p1 text
<-- p2 text
FORM BUILD_FIELDCAT .
IT_FIELDCAT-COL_POS = '1'.
IT_FIELDCAT-FIELDNAME = 'MATNR'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '15'.
IT_FIELDCAT-SELTEXT_L = 'Material number'(022).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '2'.
IT_FIELDCAT-FIELDNAME = 'ERSDA'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'Created on'(023).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '3'.
IT_FIELDCAT-FIELDNAME = 'BRGEW'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'GROSS WEIGHT'(024).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '4'.
IT_FIELDCAT-FIELDNAME = 'NTGEW'.
IT_FIELDCAT-OUTPUTLEN = '15'.
IT_FIELDCAT-SELTEXT_L = 'NET WEIGHT'(025).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '5'.
IT_FIELDCAT-FIELDNAME = 'MTART'.
IT_FIELDCAT-OUTPUTLEN = '3'.
IT_FIELDCAT-SELTEXT_L = 'Material type'(026).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '6'.
IT_FIELDCAT-FIELDNAME = 'MBRSH'.
IT_FIELDCAT-OUTPUTLEN = '25'.
IT_FIELDCAT-SELTEXT_L = 'Industry sector'(027).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-FIELDNAME = 'REC_SEL'.
IT_FIELDCAT-NO_OUT = C_X.
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
ENDFORM. " build_fieldcat
*& Form list_display
text
-->P_IT_MARA text
-->P_C_USER_COMMAND text
FORM LIST_DISPLAY TABLES P_IT_MARA
USING P_USER_COMMAND TYPE SLIS_FORMNAME.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = C_PF_STATUS
I_CALLBACK_USER_COMMAND = P_USER_COMMAND
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT[]
IT_EXCLUDING = IT_EXTAB[]
IT_SORT = IT_SORT[]
TABLES
T_OUTTAB = P_IT_MARA
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. " list_display
*& Form F_SET_PF_STATUS
Set PF_STATUS STANDARD modifying the standard toolbar
by excluding some buttons
-->P_IT_EXTAB -- TABLE OF EXCLUDING FUNCTIONS
FORM F_SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
CLEAR : WA_EXTAB,
IT_EXTAB.
*--Set the Modified PF status for the ALV.
SET PF-STATUS 'ALV_STATUS_01' EXCLUDING RT_EXTAB.
ENDFORM. " SET_PF_STATUS
*& Form f_user_command
Handle user action on ALV toolbar
FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
RS_SELFIELD-REFRESH = C_X.
IF R_UCOMM = C_FC_DELETE.
*--User Selected DELETE button.
PERFORM DELETE_SELECTED_RECORDS.
ELSEIF R_UCOMM = C_FC_MODIFY.
*--If user selects MODIFY button.
PERFORM CHANGE_RECORDS.
ENDIF.
ENDFORM. "F_USER_COMMAND
*& Form POP_UP_CONFIRMATION
text
<--P_ANSWER text
FORM POP_UP_CONFIRMATION
CHANGING P_ANSWER TYPE C.
DATA:
L_TITLE(14) TYPE C, " Title of pop-up
L_TXT_QUESTION(52) TYPE C, " Text displayed in pop-up
L_DISP_CANCEL TYPE C, " Display 'Cancel' button?
L_BTN1 TYPE ICON-NAME, " Icon on button 1
L_BTN2 TYPE ICON-NAME. " Icon on button 2
L_TITLE = 'Delete'(017). " delete
L_TXT_QUESTION = 'Are you sure to delete?'(018).
L_BTN1 = C_ICON_DELETE.
L_BTN2 = C_ICON_CANCEL.
**-Display pop-up asking user for confirmation
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = L_TITLE
TEXT_QUESTION = L_TXT_QUESTION
TEXT_BUTTON_1 = 'Yes'
ICON_BUTTON_1 = L_BTN1
TEXT_BUTTON_2 = 'No'
ICON_BUTTON_2 = L_BTN2
DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = 'X'
IMPORTING
ANSWER = P_ANSWER
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'Error executing function module:'(019)
'POPUP_TO_CONFIRM'.
ENDIF.
ENDFORM. "pop_up_confirmation
*& Form set_layout
text
--> p1 text
<-- p2 text
FORM SET_LAYOUT .
IF P_DEL = C_X OR P_UPD = C_X.
*--Allow Input only if user choose 'UPDATE'/ 'DELETE' radio buttons
WA_LAYOUT-BOX_FIELDNAME = 'REC_SEL'.
WA_LAYOUT-BOX_TABNAME = 'IT_MARA'.
ENDIF.
*--Display Header based on the user selection
IF P_DISP = C_X.
WA_LAYOUT-WINDOW_TITLEBAR =
'Display '(036).
ELSEIF P_DEL = C_X.
WA_LAYOUT-WINDOW_TITLEBAR =
'Delete '(037).
ELSEIF P_UPD = C_X.
WA_LAYOUT-WINDOW_TITLEBAR =
'Change '(038).
ENDIF.
ENDFORM. " set_layout
*& Form change_default_pf_status
text
--> p1 text
<-- p2 text
FORM CHANGE_DEFAULT_PF_STATUS .
MOVE C_FC_DELETE TO WA_EXTAB-FCODE. " DELETE button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
MOVE C_FC_MODIFY TO WA_EXTAB-FCODE. " MODIFY button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
ENDFORM. " change_default_pf_status
*& Form f_user_command
Handle user action on ALV toolbar
FORM F_USER_COMMAND_MODIFY USING R_UCOMM LIKE SY-UCOMM "#EC *
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA : L_ANSWER TYPE C. "#EC *
IF R_UCOMM = C_FC_SAVE.
*user selected save button
READ TABLE IT_MODIFY WITH KEY REC_SEL = 'X'.
*check if user selected atleast one line.
IF SY-SUBRC <> 0.
MESSAGE I000 WITH 'No record(s) Selected to Modify'(016).
EXIT.
ENDIF.
LOOP AT IT_MODIFY WHERE REC_SEL = 'X'.
*--Check the entered values are valid or not.
IF NOT ( it_modify-status = 'A' OR
it_modify-status = 'C' OR
it_modify-status = 'E' ).
*--User Entered invalid value for STATUS field,so Display Error Msg
CLEAR R_UCOMM.
MESSAGE e000 WITH 'Invalid value '''(031)
'' for Status in the Record # '(032)
sy-tabix.
ENDIF.
ENDLOOP.
CLEAR: IT_TEMP,
IT_TEMP[].
LOOP AT IT_MODIFY WHERE REC_SEL = 'X'.
MOVE-CORRESPONDING IT_MODIFY TO IT_TEMP.
APPEND IT_TEMP.
CLEAR IT_TEMP.
ENDLOOP.
*--start new code
DATA : IT_TEMP2 LIKE STANDARD TABLE OF MARA WITH HEADER LINE.
SELECT * FROM MARA
INTO TABLE IT_TEMP2
FOR ALL ENTRIES IN IT_TEMP
WHERE MATNR = IT_TEMP-MATNR.
IF SY-SUBRC = 0.
LOOP AT IT_MODIFY WHERE REC_SEL = 'X'.
READ TABLE IT_TEMP2 WITH KEY MATNR = IT_MODIFY-MATNR.
IF SY-SUBRC = 0.
IT_TEMP2-NTGEW = IT_MODIFY-NTGEW.
IT_TEMP2-BRGEW = IT_MODIFY-BRGEW.
MODIFY IT_TEMP2 INDEX SY-TABIX.
ENDIF.
ENDLOOP.
ENDIF.
*modify mara table with the changed values
MODIFY MARA FROM TABLE IT_TEMP2 .
*--end new code
IF SY-SUBRC = 0.
COMMIT WORK AND WAIT.
*--Display message with Success in Updating database
MESSAGE I000 WITH SY-DBCNT
' Record(s) has been Updated'(020).
CLEAR :
IT_MARA,
IT_MARA[].
*get-data again from database.
PERFORM GET_DATA.
RS_SELFIELD-REFRESH = C_X.
ELSE.
*--Error occurred
MESSAGE I000 WITH 'Error occured in Modifying the database'(021).
ENDIF.
ENDIF.
ENDFORM. "f_user_command_modify
*& Form validate_screen
text
--> p1 text
<-- p2 text
FORM VALIDATE_SCREEN .
DATA : LV_MATNR LIKE MARA-MATNR.
*--validate product
IF NOT S_MATNR[] IS INITIAL.
SELECT MATNR
INTO MARA-MATNR
FROM MARA
WHERE MATNR IN S_MATNR.
ENDSELECT.
IF SY-SUBRC <> 0.
*--Error
MESSAGE E000 WITH 'Invalid Material'(034).
ENDIF.
ENDIF.
ENDFORM. " validate_screen
*& Form delete_records
text
--> p1 text
<-- p2 text
FORM DELETE_RECORDS .
LOOP AT IT_MARA.
MOVE-CORRESPONDING IT_MARA TO IT_TEMP.
APPEND IT_TEMP.
CLEAR IT_TEMP.
ENDLOOP.
DELETE MARA FROM TABLE IT_TEMP.
IF SY-SUBRC = 0.
*--Successfully selected records Deleted.
COMMIT WORK AND WAIT.
*--Display Success Message to the user
MESSAGE I000 WITH SY-DBCNT
' Record(s) deleted Successfully'(010).
ELSE.
*--Error occured in deletion
MESSAGE I000 WITH 'Error occured in Deleting the Record(s)'(011).
ENDIF.
CLEAR: IT_MARA,
IT_MARA[],
IT_TEMP,
IT_TEMP[].
V_FLAG = C_X.
STOP.
ENDFORM. " delete_records
*& Form delete_selected_records
text
--> p1 text
<-- p2 text
FORM DELETE_SELECTED_RECORDS .
DATA : L_ANSWER(1) TYPE C.
READ TABLE IT_MARA WITH KEY REC_SEL = C_X.
IF SY-SUBRC <> 0.
MESSAGE I000 WITH 'No record(s) Selected to Delete'(013).
EXIT.
ELSE.
*--Ask for delete confirmation
PERFORM POP_UP_CONFIRMATION
CHANGING L_ANSWER.
IF L_ANSWER = '1'. " 'Yes'
CLEAR: IT_TEMP,
IT_TEMP[].
LOOP AT IT_MARA WHERE REC_SEL = 'X'.
MOVE-CORRESPONDING IT_MARA TO IT_TEMP.
APPEND IT_TEMP.
CLEAR IT_TEMP.
ENDLOOP.
DELETE MARA FROM TABLE IT_TEMP.
IF SY-SUBRC = 0.
*--Successfully selected records Deleted.
COMMIT WORK AND WAIT.
*--Display completed work information to the user
MESSAGE I000 WITH SY-DBCNT
' Record(s) deleted Successfully'(014).
*--Clear the Internal tables
CLEAR: IT_MARA,
IT_MARA[].
*--Reselects entries from Database again & display in ALV
PERFORM GET_DATA.
ELSE.
*--Error occured
MESSAGE I000 WITH
'Error occured in Deleting the Record(s)'(015).
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " delete_selected_records
*& Form change_records
text
--> p1 text
<-- p2 text
FORM CHANGE_RECORDS .
READ TABLE IT_MARA WITH KEY REC_SEL = 'X'.
*--check user selected at least 1 record to MODIFY or not
IF SY-SUBRC <> 0.
MESSAGE I000 WITH 'No record(s) Selected to Modify'(016).
EXIT.
ELSE.
CLEAR : IT_MODIFY,
IT_MODIFY[].
LOOP AT IT_MARA WHERE REC_SEL = 'X'.
IT_MODIFY = IT_MARA.
APPEND IT_MODIFY.
CLEAR IT_MODIFY.
ENDLOOP.
*--Change PF status for this new ALV list.
PERFORM CHANGE_PF_STATUS_AGAIN.
*--Change Field Catalog to make INPUT enabled.
READ TABLE IT_FIELDCAT WITH KEY FIELDNAME = 'NTGEW'.
IT_FIELDCAT-INPUT = C_X.
MODIFY IT_FIELDCAT INDEX SY-TABIX.
*--Call ALV LIST DISPLAY with this new values.
PERFORM LIST_DISPLAY TABLES IT_MODIFY
USING C_USER_COMMAND_MODIFY.
ENDIF.
ENDFORM. " change_records
*& Form change_pf_status_again
text
--> p1 text
<-- p2 text
FORM CHANGE_PF_STATUS_AGAIN .
MOVE C_FC_DELETE TO WA_EXTAB-FCODE. " DELETE button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
MOVE C_FC_MODIFY TO WA_EXTAB-FCODE. " MODIFY button on ALV
APPEND WA_EXTAB TO IT_EXTAB.
ENDFORM. " change_pf_status_again -
Hi,
Iam using IR 11 version. I have written script for exporting chart and pivot data.I used command button to export.Whenever i clik on the command button its exporting successfully but i want to save the files in different locations.for example.. if i clik on the command button it should ask for where to save the file.
script which i have written for export files..in this where i need to keep the save option???
try{
ActiveDocument.Sections["C_TTT"].Export("C:\\TTT.jpeg",bqExportFormatJPEG)
ActiveDocument.Sections["P_TTT"].Export("C:\\TTT.csv",bqExportFormatCSV)
Alert("exported successfully")
}catch(e)
Alert("Failed To Export")
}When you click on a method in the Script Editor it tells you the required and optional parameters in the lower left corner of the editor.
And if you click Help after clicking on the Method you get the following:
Export (Method)
Applies To:
ChartSection object, (CubeQuery) QuerySection object, DataModelSection object, Document object, DashboardSection object, OLAPQuerySection object, PivotSection object, QuerySection object, ResultsSection object, Section object, TableSection object, ReportSection object
Description:
Creates a file with the information from a section object. Files can be created using the standard data formats from the BqExportFileFormat constant group.
Note:
For UNIX users of the Export and ExportToStream methods,Interactive Reporting Web Client and Interactive Reporting Web Client reference the umask command of the user running the Interactive Reporting Service to determine the three-digit octal code. This code defines the read-write-execute permissions to be turned off. Typically, umask is used in .login or .profile and in the Bourne and C shells. It is a built-in command.
Syntax:
Expression.Export(Filename As String, [optional] FileFormat As BqExportFileFormat, [optional]IncludeHeaders As Boolean], [optional] Boolean Prompt), [optional] BqEncoding Encoding)wayne -
How to show pop-up at Interaction Center
Dear friends,
I would like to share with you how to show pop-up screen at Interaction Center.
As you should knows, IC doesnu2019t show pop-up screen, because the philosophy in IC is to avoid all theses pop-up.
Sometimes we need to show these pop-ups, so I want to explain how to do that.
Before CRM 2007.
Note 487734 - Popup windows in Customer Interaction Center
This consulting note explains how to do a simple change in standard abap program.
At CRM 2007, do the follow:
View CRMV_IC_POPU control in which Business transaction profile will be allows pop-up screen. This view can be maintained through tx SM30.
There are two field u201CBusiness Transaction Profileu201D and u201CAllows Dialog Boxu201D
The first one fill with the name of your Business Transaction Profile, unfortunately list value of this field is not working, so you must type the value correctly. Next, mark the check box u201CAllows Dialog Boxu201D.
You can find u201CBusiness Transaction Profileu201D name, doing the follow:
Tx SPRO, IMG, CRM, Business Roles, Define Business Role.
Select your Business Role and then double click on folder u201CAssign Function Profilesu201D, next at colum u201CFunction Profile IDu201D locate value IC_BT. Your Business Transaction Profile is the value at the field u201CProfile Valueu201D, standard value use to be DEFAULT.
Type this value, e.g. DEFAULT at field u201CBusiness Transaction Profileu201D in table CRMV_IC_POPU.
Best regards,
LalasI was dammed by a helldemon and so I will never be back to my dear CRM.
But anyhow, thanks man. I'm taking this to my I_SHOULD_REMEMBER_THIS file. -
Key Figure Display in Interactive Planning
Hello,
I am unable to display some of the key figures in SNP Interactive Planning. All these Key Figures are present in Planning book and are also included in the data view.
Is there any setting wherein I can control the display of Key figure although that key figure is present in Planning book and data view. For Example I have my "safety stock" key figure in my planning book and data view, but I am unable to see the "safety stock" key figure in SNP interactive planning.
Would really appreciate your help.
Thanks,
Sarath.Hi Visu,
Your answer is really helpful, thanks for that. But while I am trying to hide some key figures it is not allowing me to do so. It is either hiding all the key figures or unhiding all. Please let me know if why the system is behaving like this.
Thanks -
hi experts,
I have an executable program which displays alv output, my requirement is after the output is displayed in ultilities tab(drop down) we have saving option which is generally disabled.
how to make this enabled?
regards,
jayantI guess you are talking about saving variants, aren't you?
For this you should use
data: ls_variant type disvariant.
ls_variant-report = sy-repid.
l_variant-variant = 'SOME_SAVED_VARIANT'.
CALL METHOD gr_alvgrid->set_table_for_first_display
EXPORTING
i_save = 'A' "this will enable save option
is_variant = ls_variant "this will set default variant in layout
Regards
Marcin
Maybe you are looking for
-
Since installing the new Firebox I have been unable to get my Facebook profile photo to appear. The same goes for the profile pics of FB friends in the chat list.
-
HT4623 how can i connect my wifi to my iphone?
i have my wifi plugged into my computer, as well as my iphone. why wont my iphone recognize the wifi? how can i get the wifi to work on my iphone?
-
I take photos on and they arent in my album
I restored my phone and all my photos were downloading back agin, and after they did, i took more photos with my phone and they won't show up on my photo album, i've turned off my phone and held down the home and power button till the apple comes on
-
Error: Previous downloads were not completely finished: Termination
Hi, when replicating an condition adapter object i get a mapping error in SMW01 with detail text: Previous downloads were not completely finished: Termination Error when carrying out initial download The adapter object was definitly downloaded some m
-
Data load failing with a short-dump
Hello All, There is a data load failing with the following short-dump: Runtime Errors UNCAUGHT_EXCEPTION Except. CX_FOEV_ERROR_IN_FUNCTION Full text: "UNCAUGHT_EXCEPTION" CX_FOEV_ERROR_IN_FUNCTIONC "CL_RSAR_FUNCTION========