BADI for changing Appraisal document application name for Web dynpro ABAP
Hi,
For Appraisal document customizing through PHAP_CATALOG_PA, We have BADI HRHAP00_BSP_TMPL to change the BSP application name which can be used in Web layout for output display. Using this we can change application name from HAP_DOCUMENT to custom BSP application name
Similarly, what is the BADI for changing Web dynpro ABAP applictaion name? Currently its triggering HAP_MAIN_DOCUMENT.
how do we change application name to some custom web dynpro application name
Regards,
Kothand
Hi Karim,
I don't know, if there is any chance to get the Webdynpro application name. At least in the ABAP System fields is no information about the webdynpro application name.
One remark: I have allways problems with BAPIS / BADIS that behave different depending on the caller. Could it be a good idea to pass some information through the interface / parameters?
Best regards
Renald
Similar Messages
-
Problem in calling abap editor with the program name in Web Dynpro ABAP
Hi,
I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application.
I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program.
How to do that?
Please find my code below:
DATA : FINAL_URL TYPE STRING,
URL TYPE STRING.
DATA: LV_HOST TYPE STRING,
LV_PORT TYPE STRING.
DATA V_TCODE TYPE TCODE.
DATA: LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
DATA: LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA: LO_WINDOW TYPE REF TO IF_WD_WINDOW.
DATA: LD_URL TYPE STRING.
V_TCODE = 'SE38'.
*Call below method to get host and port
CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
IMPORTING
HOST = LV_HOST
PORT = LV_PORT ).
CONCATENATE 'http'
'://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?sap-client=&transaction=' V_TCODE '&OKCODE=SHOW'
INTO URL.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
LD_URL = URL.
CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = LD_URL
RECEIVING
WINDOW = LO_WINDOW.
LO_WINDOW->OPEN( ).
Now, how to pass my Zprogram name into the URL.
I need to get the editor screen with the display of the program.
Thanks,
RadhikaHi Kiran,
Please find my code below:
DATA : URL TYPE STRING.
DATA: LV_HOST TYPE STRING,
LV_PORT TYPE STRING.
DATA: LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
DATA: LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA: LO_WINDOW TYPE REF TO IF_WD_WINDOW.
DATA: LD_URL TYPE STRING.
*Call below method to get host and port
CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
IMPORTING
HOST = LV_HOST
PORT = LV_PORT ).
CONCATENATE 'http'
'://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&transaction=se38&RS38M-PROGRAMM=Y2PSOLTREE&~okcode=shop'
INTO URL.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
LD_URL = URL.
CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = LD_URL
RECEIVING
WINDOW = LO_WINDOW.
LO_WINDOW->OPEN( ).
Here,, Y2PSOLTREE is the program, that should show in SE38 screen.
I used the above code, but still it is showing the SE38 initial screen.
Thanks,
Radhika -
How to find a BADI to change the default value of a Web Dynpro Screen?
Hello Experts!!
My requirement is as follows-
The SAP cProjects Distribution Functions screens default the Calculation Base to Per Day(This is represented via the initially-selected value in a listbox). The requirement is to make it deafult to the current standard Per Month (This also appears in the list box).
Is there any BADI to achieve this?
I tried putting a debug point in the Get_Instance method of the class cl_exithandler to find all the BADIs associated with the screen. I got a bunch of BADIs with no luck. And now I am not even able to debug anymore as the debuger is not opening. Can anybody tell me why this is happening? It was working two days before. And yes I have read all the posts about debugging a web dynpro application and I am doing everything that is mentioned there- I have set an external debug point and I have checked the "IP Matching" checkbox against my name in the workbench, but, with no luck
Any help on this will be greatly appreciated.
Thanks and Regards,
SmithaYou can't do this on a running VI. If you have an idle VI, you can open a reference to that VI and use an invoke node with the Make Current Values Default method, but that will only work in LV (i.e. not in an EXE) and will affect all the controls. What you can do is save the values to a file and load them when the program starts. OpenG's File I/O package includes some VIs which will help you with that.
Try to take over the world! -
How to set application parameter in web dynpro abap?
Hi experts,
Is there any way we can set up our own application parameter (for ex. mode ) of our application. And based on that parameter we can visible/invisible certain elements of view . so by having only one webdypro application component, and making multiple applications and assigning paramter to each , we can make our application userfriendly.
Thanks,
Saurin Shah.Hi Saurin,
For this you will have to use the concept of Component and Application Configuration in WebDynpro. Go through [this tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b52e13c3-0901-0010-8fa6-d11a51821b7c] to get an idea of how you can go ahead to meet your requirements.
Regards,
Uday -
Not able to upload file in DMS(Document Mang. system) using Web dynpro ABAP
Hi All,
I am facing a problem while uploading the file into the DMS ( Document Management System ) from Webdnrpo .
I am using the BAPI - BAPI_DOCUMENT_CREATE2 to create the document .
CASE - 1
when i am providing the storage category mention below and no data carrier1
ls_documentfiles-storagecategory = 'ZHMEL_CS'. it is not able to upload the document in the DMS system and when i check
in the debugg mode it giving error as ""Error while checking in and storing: C:\TEST.TXT "" .
CASE - 2
When i am not using the storage category and providing the the data carrier as default
ls_documentdata-DATACARRIER1 = 'DEFAULT'. It is able to create the document in the DMS but i am not able to read that document .
I checked with DMS Consultant that DMS is configured for ZOL ( documenttype) with a storage category as 'ZHMEL_CS'.
The code which i have used is below :
ls_documentdata-documenttype = 'ZOL'.
ls_documentdata-documentversion = '00'.
ls_documentdata-documentpart = '000'.
ls_documentdata-description = 'Test Document'.
ls_documentdata-laboratory = '001'.
ls_documentdata-WSAPPLICATION1 = 'TXT'.
ls_documentdata-DOCFILE1 = 'C:\TEST.TXT'.
ls_documentdata-SAVEDOCFILE1 = 'C:\TEST.TXT'.
*ls_documentdata-FILESIZE1 = 000000000000.
*ls_documentdata-FILESIZE2 = 000000000000.
ls_documentdata-WSAPPLICATION1 = 'TXT'.
ls_documentfiles-DOCUMENTTYPE = 'ZOL'.
ls_documentfiles-DOCUMENTPART = '000'.
ls_documentfiles-DOCUMENTVERSION = '00'.
ls_documentfiles-storagecategory = 'ZHMEL_CS'.
ls_documentfiles-WSAPPLICATION = 'TXT'.
ls_documentfiles-DOCPATH = 'C:\'.""lv_filename.
ls_documentfiles-DOCFILE = 'TEST.TXT'."lv_filename.
ls_documentfiles-description = 'Test Document'.
ls_documentfiles-language = 'EN'.
ls_documentfiles-CHECKEDIN = 'X'.
APPEND ls_documentfiles to lt_documentfiles .
*&----Fill Descriptions
w_descr-language = 'EN'.
w_descr-language_iso = 'EN'.
w_descr-description = 'Test'.
append w_descr to lt_descr.
clear w_descr.
**w_hostname = 'HMEL-DV1R3_DR3_00'.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_documentdata
*hostname = 'content-srv'
*pf_http_dest = 'SAPHTTPA'
*pf_ftp_dest = 'SAPFTPA'
IMPORTING
DOCUMENTNUMBER = lv_DOCUMENTNUMBER
return = gv_return
TABLES
documentdescriptions = lt_descr
documentfiles = lt_documentfiles.
Please let me know your valuable inputs on the same ..
Edited by: Omm Awasthi on Dec 30, 2010 12:22 AM
Edited by: Omm Awasthi on Dec 30, 2010 12:25 AMHi omm , from functional side your require a document type and content repository
I have used below code in a function module to create document , we have create object link as PO to the doc.
FUNCTION ZFM_SR_CREATE_FROM_EXTERNAL .
""Local Interface:
*" IMPORTING
*" VALUE(IV_DOCUMENTNUMBER) TYPE DOKNR OPTIONAL
*" VALUE(IV_DOCUMENTTYPE) TYPE DOKAR OPTIONAL
*" VALUE(IV_DOCUMENTVERSION) TYPE DOKVR OPTIONAL
*" VALUE(IV_DOCUMENTPART) TYPE DOKTL_D OPTIONAL
*" VALUE(IV_STORAGE_CAT) TYPE CV_STORAGE_CAT OPTIONAL
*" VALUE(IV_DOKST) TYPE DOKST OPTIONAL
*" VALUE(IT_DM_FILES) TYPE ZDM_TT_FILES OPTIONAL
*" VALUE(IV_EBELN) TYPE EBELN
*" EXPORTING
*" VALUE(EV_DOCUMENTNUMBER) TYPE DOKNR
*" VALUE(ES_RETURN) TYPE BAPIRET2
V00.00 DD.MM.YYYY *
*********************New Method of Uploading File*********************************
CONSTANTS path_name TYPE dms_path
VALUE '/tmp/'.
CONSTANTS log TYPE dms_path VALUE '/tmp/logFO.txt'.
DATA: ls_draw TYPE bapi_doc_draw2,
lt_documentfiles TYPE TABLE OF bapi_doc_files2,
ls_documentfiles TYPE bapi_doc_files2,
ls_dm_files TYPE zdm_files,
lv_filename TYPE string,
lv_ext TYPE string,
lv_file_type TYPE draw-dappl,
lv_file_name TYPE dms_path,
lv_msg(80) TYPE c,
lt_objectlinks TYPE TABLE OF bapi_doc_drad,
ls_objectlinks TYPE bapi_doc_drad,
lv_ebelp TYPE ebelp
Prepare Data
MOVE iv_documentnumber TO ls_draw-documentnumber.
MOVE iv_documenttype TO ls_draw-documenttype.
MOVE iv_documentversion TO ls_draw-documentversion.
MOVE iv_documentpart TO ls_draw-documentpart.
ls_draw-statusextern = iv_dokst.
ls_draw-statusintern = iv_dokst.
ls_draw-username = sy-uname.
LOOP AT it_dm_files INTO ls_dm_files.
SPLIT ls_dm_files-filepath AT '.' INTO lv_filename lv_ext.
CALL FUNCTION 'CV120_DOC_GET_APPL'
EXPORTING
pf_file = ls_dm_files-filepath
IMPORTING
pfx_dappl = lv_file_type.
TRANSLATE lv_file_type TO UPPER CASE.
OPEN DATASET log FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER lv_ext TO log.
ls_documentfiles-wsapplication = lv_file_type.
TRANSLATE ls_documentfiles-wsapplication TO UPPER CASE.
CONCATENATE path_name
lv_filename
lv_ext
INTO lv_file_name.
CONDENSE lv_file_name NO-GAPS.
TRANSFER lv_file_name TO log.
OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE MESSAGE lv_msg.
*Transfer Attachment Content to Application Server
TRANSFER ls_dm_files-content TO lv_file_name.
CLOSE DATASET lv_file_name.
TRANSFER 'move data to lt_files' TO log.
ls_documentfiles-storagecategory = iv_storage_cat.
ls_documentfiles-docfile = lv_file_name.
ls_documentfiles-DOCUMENTVERSION = IV_DOCUMENTVERSION.
APPEND ls_documentfiles TO lt_documentfiles.
CLEAR lv_file_name.
CLOSE DATASET log.
ENDLOOP.
IF iv_ebeln IS NOT INITIAL.
ls_objectlinks-objecttype = 'EKPO'.
SELECT SINGLE ebelp INTO lv_ebelp FROM ekpo WHERE
ebeln = iv_ebeln
AND loekz eq space.
CONCATENATE iv_ebeln lv_ebelp INTO ls_objectlinks-objectkey.
APPEND ls_objectlinks TO lt_objectlinks.
ENDIF.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_draw
pf_ftp_dest = 'SAPFTPA'
pf_http_dest = 'SAPHTTPA'
IMPORTING
documentnumber = ev_documentnumber
return = es_return
TABLES
objectlinks = lt_objectlinks
documentfiles = lt_documentfiles.
DATA: ls_doc_data type bapi_doc_draw2,
ls_doc_datax type bapi_doc_drawx2,
ls_return type bapiret2.
Set value for document data
ls_doc_data-statusextern = 'IW'.
ls_doc_data-statusintern = 'IW'.
Set value for document data check
ls_doc_datax-statusextern = 'X'.
ls_doc_datax-statusintern = 'X'.
CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
EXPORTING
DOCUMENTTYPE = 'ROS'
DOCUMENTNUMBER = IV_DOCUMENTNUMBER
DOCUMENTPART = IV_DOCUMENTPART
DOCUMENTVERSION = IV_DOCUMENTVERSION
DOCUMENTDATA = ls_doc_data
DOCUMENTDATAX = ls_doc_datax
HOSTNAME =
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
SENDCOMPLETEBOM = ' '
pf_ftp_dest = 'SAPFTPA'
pf_http_dest = 'SAPHTTPA'
CAD_MODE = ' '
ACCEPT_EMPTY_BOM = ' '
IMPORTING
RETURN = ls_return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS =
OBJECTLINKS =
DOCUMENTSTRUCTURE =
DOCUMENTFILES = lt_documentfiles.
LONGTEXTS =
COMPONENTS =
move es_return to ES_RETURN.
IF es_return-type CA 'EA' ."NE 'E' AND es_return-type NE 'A'.
"do nothing
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
LOOP AT lt_documentfiles INTO ls_documentfiles.
DELETE DATASET ls_documentfiles-docfile.
ENDLOOP.
ENDFUNCTION. -
Save PDF in KM - Personal Documents of user with Web Dynpro ABAP (WDA)
Hi Experts,
I have a WebDynpro ABAP Application, running in my Portal, which generates (after some input steps) a pdf (Adobe Form) as confirmation. Of course the user can save and print the pdf-form by himself, but I would like to save the PDF automatically to his "Personal Documents Folder" in KM to "archive" it.
Does anyone know how this might work? Is there a standard-way to do this?
Thanks for any proposal
Best regards.
VolkerWe figured it out. We had been using an application parameter WDDISABLEUSERPERSONALIZATION to prevent users from hiding UI elements on the view. After upgrading to 7.31 this also prevented re-arranging columns and adjusting column sizes directly on the the grid. We replaced this parameter with WDENABLEUIELEMENTSHIDE instead to prevent users from hiding elements, but it now allows moving columns with drag/drop and resizing.
-
How to send Variable from a web dynpro abap application to anthor
HI all:
I have two web dynpro abap applications .
I want to send a Variable from a web dynpro abap application to another web dynpro abap application using post method.
Because, now I have used append_field_url to send Variable,but this method will display the Variable in the URL.
I do not need this result.
I need the Variable from a web dynpro abap application to another web dynpro abap application and the Variable will not display in the URL.
Can you give me an example?
Thanks.HI Nawal Kishor Mittal :
I have tried your method,but I can not get the value of variable.
My code is as follows:
The first web dynpro abap application:
DATA:BEGIN OF l_send,
l_value TYPE string,
END OF l_send.
l_send-l_value = '400001'.
EXPORT l_send-l_value FROM l_send TO SHARED MEMORY indx(aa) ID 'YTEST_MATNR'.
The second web dynpro abap application:
DATA:BEGIN OF m_send,
s_value TYPE string,
END OF m_send.
IMPORT m_send-s_value TO m_send FROM SHARED BUFFER indx(aa) ID 'YTEST_MATNR'.
DELETE FROM MEMORY ID 'YTEST_MATNR'.
Thanks. -
Need a BADI for Change Own Data Application to implement customer needs
Hi All,
I wanted to know the specific BADI which could be used for doing customer specific coding for 'Change Own Data" application.
Here the need is to do some business specific checks to suit the the customer needs
Best Regards,
SowmyaHi Sowmya,
We are also having same kind of requirement so I was wondering if you can help me with the kind of solution that you implemented. BADI name or Implementation code etc.,
Appreciate any inputs on this...
Thanks,
Rgds,
Lakshmi -
Making change in original application file for new version
Hi
I am new to DMS.
I have a basic query about versioning of DIR.
I have created a DIR with status in Released.
I have attached a original application to the DIR. Now when I am creating a new version of DIR, original application file is also getting copied to the new version which is desired.
My problem is I want to make changes into original application file in new version of DIR and want to save. But I am unable to do so. It is not allowing me to change the original application file for new version which is desired for storing some ISO documents.
Is there any settings which I am missing?
Waiting for reply ASAP.
Thanks and Regards,
Niraj SikligarHi
If you want to make changes in the "Release" Status, go to dc10, select Doc type and define status screen. Do not put "S" (Lock mode) for Status - Release
Also please check in new version , you are clicking on Edit symbol in Orginals tab, if u double click the file, it would open always in display mode , and it wont allow you to make any changes
Regards
Aby -
User-Exit for changing Sales Document Number - Urgent
Hi Experts ,
Please suggest me the <b>User Exit for changing Sales Document Number.</b>
thanks,
Jayesh<b></b>hi jayesh,
chech this exit-----EXIT_SAPFV45S_002.
this exit's description says " Change Sales Document Using Configuration".
Other available exits are
SDAPO001 Activating Sourcing Subitem Quantity Propagation
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
Reward me if useful..........
Harimanjesh AN -
How do I change the .php file name for a page of my site?
how do I change the .php file name for a page of my site? The only link to the page is the nav. button link for it in the global nav. The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.
The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.
I don't understand this reason. How would changing the file extension solve your breadcrumb issue? Why don't you explain the issue in more detail. -
How do I change the artist/owner name for my podcast?
How do I change the artist/owner name for my podcast?
For eg, a podcast has 'The Ricky Gervais Podcast' and underneath 'Ricky Gervais'. I can't see where to change the latter. I can't change that through our podcast host Libsyn.
Is it done through iTunes?
JackYou can't change anything in iTunes: all infomation is carried in the feed, in this case in the 'itunes:author' tag. there will certainly be somewhere to enter it but if you can't find it you will need to contacts Libsyn; or quite possible Rob Walch, who works for them and posts here, will see this question.
-
Webdynpro Application Name for MSS/Employee Search Iview
Hi all,
I want to modify <b>MSS/EmployeeSearch</b> application. I am not able to find out the technical name(WebDnypro Application name) for this <b>MSS/employee search</b> I view. I know we can find it out from pcd I view properties, but in this case its different from PCD.
Regards
PraveenI solved it my self
-
Substitution for change of document header
Hi
I have created a substitution for the change of document header for a company code. I have made it in GGB1 and activated it in the Tcode OBBH.
However it does not allow me to post the document (Tcode FB01) - I get the syntex error in program 'GBTLEFI0' in include 'GBTLEFIB' in line '1593' - 'The FORM "SUBCON_3ZDEPIND047" does not exist. and the processing is terminated.
Please provide the solution
Thanks
NeerajHi
For changing the documents we can use LSMW instead of substitutions.
Thanks
Sandesh -
[JS]: Is there anyway to change a document's name?
Is there anyway to change a document's name? Or create a document with a certain name?
I'm looking at the JavaScript reference, and it says that document.name is a readonly value. Is this entirely true / is there any other way to change the name of a document?
Any help would be much appreciated
Thanks!app.documents.add ([showingWindow: bool=true][, documentPreset: DocumentPreset][, withProperties: Object])
the main interest for you is the "withProperties" part.
Maybe you are looking for
-
I am noticing a Bunch of Preloader Problems With Captivate 5
That are not being answered on the Adobe forums and they all seem to be some what related. I am have major preloader issues and wish this would be resolved. http://forums.adobe.com/message/3595269 http://forums.adobe.com/message/3209686 http://forums
-
Crystal 10 server to bo xi 3.1 not all instances
I have used the import wizard to pull the reports across into BO XI 3.1 on server 2003. I get the reports and folders but not all the existing instances of the reports. There are 480 + reports and alot of instances all of which are needed. Has any on
-
Can you increase the brightness of a photo in order to edit and then return to the original brighten
Can you increase the brightness of a photo temporarily while editing in PS and then return to the original brightness. My problem is that I want to delete some objects in my photo and can hardly see them.
-
How can I import sharp photos from Galaxy s5 Smartphone to Photoshop?
When I open photographs in Photoshop CS3, they are not sharp as the photographs taken by the Galaxy phone. Should I update to CS4 or do I need to buy CS5 to reproduce these sharp phone images? I don't want a monthly subscription. Any advice?
-
Why can't I open an email attachment on my mac? The attachment comes as a .numbers doc on my ipad and iphone and I can open it easily but it comes as a .zip file on the mac and cannot open it. Why???