Implementing BADI MD_ADD_COL_EZPS for MD04 custom column
Hi there,
I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
My Question is:
Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
(At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
Any help appreciated.
Thanks,
David.
Hi Shubhendu,
in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
Same applies to EZ2_MODE for second column, EZ3_MODE for third.
look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
The code is hit for each record displayed in MD04
Hopefully this helps you.
Regards,
David
Similar Messages
-
Implementing BADI MD_ADD_COL_EZPS in extending MD04 transaction.
Hello Experts,
I have a query in regard to extending MD04 transaction.
Currently MD04 is enhanced with 3 custom buttons (used buttons are: BUTTON1_EZ, BUTTON2_EZ and BUTTON3_EZ) being displayed based on which a new column gets displyed in the table control.
Now when I have to add a new custom button, I try to use BUTTON1_PS in same implementation of BADI "MD_ADD_COL_EZPS" to display another column in table control.
The problem here is that it isn't getting displayed on MD04 screen nor can I use it from path in Menu Bar:
Settings --> User Exit Periods. Here it isn't showing in activated mode.
Kindly provide your inputs.
Regards,
AnshAny inputs would be of great help.
Regards,
Ansh -
Implement BADI CKMLAVR_SIM for AVR Cost Component.
Hello All,
I am trying to implement badi CKMLAVR_SIM.
I am refering OSS note 896461.
I populated :
gw_ckmlhd-kalnr = '100524889'.
gw_ckmlhd-bwkey = 'AB'.
gw_ckmlkeph-kalnr = '100524889'.
gw_ckmlkeph-bdatj = '2011'.
gw_ckmlkeph-poper = '1'.
gw_ckmlkeph-categ = 'AB'.
gw_ckmlkeph-keart = 'H'.
gw_ckmlkeph-mlcct = 'E'.
gw_ckmlkeph-kkzst = 'X'.
gw_ckmlkeph-curtp = '10'.
gw_ckmlkeph-waers = 'ZAR'.
gw_ckmlkeph-kst001 = '1000'.
I think so i am missing something.
Please suggest if anybody has initialize the actual value of cost component using badi CKMLAVR_SIM.
Thanks,
Ankit.Hi Experts,
I am facing the same problem.
Need your input on this..
Thanks in Advance.
Thanks,
Ankit. -
How to implement BADI's for the below issue
Hi All,
The URL is being populated correctly (without any spaces) to the follow on document (PR/PO) created in R/3 after implementing code corrections in BBP (replacing space by = as shown below).
When sending the PO to supplier portal, the outbound IDOC segment does not get populated properly. The text format = is again converted to space in ECC 6.0 which was not the case with 4.5B.
This is an upgrade issue as the function module used to format text FORMAT_TEXTLINES is completely different in ECC 6.0. The entire code of this function module in 4.5B has been commented in ECC 6.0 and new code has been implemented which splits the text and inserts spaces while formatting as shown below.
This issue can be resolved by implementing a customer exit or a BADI which gets called after standard SAP populates the IDOC. It requires implementing custom code to remove the unwanted spaces inserted by standard SAP for text id F07. Hence after SAP completes its processing to populate the IDOC, the text would be processed further to remove unwanted spaces before actually sending the IDOC out from SAP R/3.
Thus this upgrade issue resolution requires R/3 development
1. BADI Definition: ME_MMPUR_EINM, Method: PROCESS_TEXT
This option is preferable.
2. User exit: EXIT_SAPLEINM_002
I need your help on how to write this code in the form of BADI's.where we write and how to implement. ASAP
thanks,
SridharHi All,
The URL is being populated correctly (without any spaces) to the follow on document (PR/PO) created in R/3 after implementing code corrections in BBP (replacing space by = as shown below).
When sending the PO to supplier portal, the outbound IDOC segment does not get populated properly. The text format = is again converted to space in ECC 6.0 which was not the case with 4.5B.
This is an upgrade issue as the function module used to format text FORMAT_TEXTLINES is completely different in ECC 6.0. The entire code of this function module in 4.5B has been commented in ECC 6.0 and new code has been implemented which splits the text and inserts spaces while formatting as shown below.
This issue can be resolved by implementing a customer exit or a BADI which gets called after standard SAP populates the IDOC. It requires implementing custom code to remove the unwanted spaces inserted by standard SAP for text id F07. Hence after SAP completes its processing to populate the IDOC, the text would be processed further to remove unwanted spaces before actually sending the IDOC out from SAP R/3.
Thus this upgrade issue resolution requires R/3 development
1. BADI Definition: ME_MMPUR_EINM, Method: PROCESS_TEXT
This option is preferable.
2. User exit: EXIT_SAPLEINM_002
I need your help on how to write this code in the form of BADI's.where we write and how to implement. ASAP
thanks,
Sridhar -
BADi used for creating customer own data in transaction me52n
Hi experts,
please any one tell me what is the procedure for creating or changing. How to get access for customer own data in transaction me52n. How to get authorization checks.
thank you,
regards
vijay krishnaHi
check this link.
Name of Badi used with transaction ME52N
Thanks
Viquar Iqbal -
Implement BADI PT_GEN_REQ for program RPTARQEMAIL - ESS
Hi,
I was trying to implement this method with the idea to send, always, a mail to the HR responsible.
For that I've written the following code (example):
method IF_EX_PT_GEN_REQ~GET_ADMINS.
data:
admins_receivers TYPE ptreq_email_receivers_tab,
p_receivers_temp TYPE somlreci1 .
p_receivers_temp-receiver = 00000001.
p_receivers_temp-rec_type = 'P'.
append p_receivers_temp to admins_receivers.
endmethod.
The problem is that it is not being sent any e-mail.
Any idea what is missing?
Thanks!
Any idea where can I find an example?
Edited by: Pedro Taveira on Nov 29, 2010 6:52 PMThe problem was with the parameters...
It is solved -
Implement BADI MEGUI_LAYOUT for ME52N in sap
Hi All,
Can I make the order field disabled basing on some conditions of cost centre using the BADI MEGUI_LAYOUT.
If yes can anyone mention the way it should be done.
Thanks in AdvanceClosed
-
Can't Save Custom Columns in Effects Tab?
In the now archived thread at
<http://discussions.apple.com/thread.jspa?messageID=5264320�>
Jerry Hoffman and D. Gilmore describe how to right-click on a column in the Browser (other than the Name column) and then choose the Save Column Layout option, which is exactly what I'm wanting to do. Weird thing though is when I try to do this for the custom column layout I've created under my Browser's Effects tab, that "Save Column Layout..." option is greyed out, along with most of the others as well.
Under the Project tab, I can Save and Load column layouts to my heart's content, but under the Effects tab, the only options which AREN'T greyed out when I right-click on a column heading (any column heading) are Hide Column (at the top) and Show Thumbnail (at the bottom). The other five in between (including Save Column Layout) are inaccessible.
Am using 6.0.2 with OS X 10.5.2. Any theories?
Bonus Question:
Is there any way to make a custom column layout in the Browser be part of a custom window arrangement, so that when I select one of my custom window arrangements FCP will load my preferred Browser column layout at the same time?
Thanks,
John Bertram
TorontoThanks to both Jerry and Doug for that confirmation -- albeit not the one I was hoping for!
And though it may come as a surprise, I did indeed create a custom layout of the Effects tab columns: with my Browser window over on a separate monitor, I like to have the Name column set wider (so the full names of all my Nattress FX are visible), then the Description column first (also set wider so I can actually see what the description says), and then my own Comments column immediately following that.
Despite the limited number of info columns in that Effects tab, it does seem odd that they would implement a Save Column Layout option in other Browser tabs, while then displaying it but not actually implementing it in this one tab.
So along with making custom column layouts part of custom window arrangements, I guess it's time I sent in yet another Feature Request to the friendly folks at FCP Feedback.
In any case, thanks again for the confirmation that at least my system wasn't doing something weird.
jb -
How to make the display of custom column names in UWL(not bother abt values
Hi all
i want to make the display of custom column names in UWL ( for example GP)
i dont want or not looking about values for those custom columns . i know that thru custom connector we can achieve to retrieve the values for those custom columns. but currently i am looking only just to display the custom column names( for example GP custom column names, just i want to display the name of the columns ) in UWL .
Thanks
SunilHello Prashant,
You can add the control to your custom pagelayout, the following article has an example:
http://spandps.com/2012/02/22/showing-the-audience-target-field-in-an-editmodepanel-sharepoint-sp2010-in-projectserver-ps2010/
Btw, the SPFieldTargetToControl has a required property:
http://msdn.microsoft.com/en-us/library/microsoft.office.server.webcontrols.fieldtypes.spfieldtargettocontrol.required(v=office.14).aspx
- Dennis | Netherlands | Blog |
Twitter -
Implementing BADI BDCP_BEFORE_WRITE
Dear Experts,
I have implemented BADI BDCP_BEFORE_WRITE for a message type /SAPSLL/CREMAS_SLL.
I have also added code to the method FILTER_BDCPV_BEFORE_WRITE.
I have also placed a break point inside the implmented method. But at runtime I am unable to stop at the break point.
At runtime I found that the class name associated to BADI at run time was found to be CL_EXM_IM_BDCP_BEFORE_WRITE(example class) and not ZCL_IM__BDCP_BEFORE_WRITE which I have used to implement.
Also, the update debugger is on.
Why does the system not halt at the breakpoint inside the implemented method?
Regards,
JitenHi Nabheet,
Thanks for your reply.
Yes. There is only one active BADI for a particular filter condition. Actually the change pointer was not activated for the required message type(which was also filter condition) and hence I was having the problem.
After activating the change pointers I am now able to halt at the breakpoint in the required method.
Thanks,
Jiten -
BaDi or User-Exit for a new column in COGI
Hi everybody,
is there a User-Exit or a BaDi to add a new column in the TA COGI?
Maybe anyone have an idea!
Best regards,
MarkusBefore Posting Pls try to Search from the Forum...definitely will be find ur Answer
Pls Check the Exits Associated to COGI
Exit name Short text
CONF0001 Enhancements in order confirmation
CONFPI01 Process order conf.: Calculate cust.specific default values
CONFPI02 Process order confirmation: Customer spec. input checks 1
CONFPI03 Process order conf.: Cust. spec. check after op. selection
CONFPI04 Process order conf.: Customer specific input checks 2
CONFPI05 Process order conf.: Cust. spec. enhancements when saving
CONFPI06 Process order confirmation: Actual data transfer
CONFPM01 PM/SM order conf.: Determine cust. specific default values
CONFPM02 PM/SM order confirmation: Customer specific input checks 1
CONFPM03 PM/SM order conf.: Cust. spec. check after op. selection
CONFPM04 PM/SM order conf.: Customer specific input check 2
CONFPM05 PM/SM order conf.: Cust. specific enhancements when saving
CONFPP01 PP order conf.: Determine customer specific default values
CONFPP02 PP order conf.: Customer specific input checks 1
CONFPP03 PP order conf.: Cust. specific check after op. selection
CONFPP04 PP order conf.: Customer specific input checks 2
CONFPP05 PP order conf.: Customer specific enhancements when saving
CONFPP06 PP Order Confirmations: Actual Data Transfer
CONFPP07 Single Screen Entry: Inclusion of User-Defined Subscreens
CONFPS01 PS confirmation: Determine customer specific default values
CONFPS02 PS confirmation: Customer specific input checks 1
CONFPS03 PS confirmation: Customer specific check after op. selection
CONFPS04 PS confirmation: Customer specific input checks 2
CONFPS05 PS confirmation: Customer specific enhancements when saving
BADI Used for COGI
VIM_AE_BADI
Try to Implement Ur Code in Suitable User Exit or BADI.
Reagrds,
SD -
XRPM: Need to find the BADI for adding custom fields to master data
Hi,
We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
ThanksDear Arunava,
1) In your R3 goto SE16 --> open table ROOSOURCE.
Search for your OLTP source...eg: 0RPM*
The column EXTRACTOR will give you the module name.
2) Also look/follow the link:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
Currently available BAdIs include:
RPM_BUPA_CUST_FIELDS BUPA customer fields
RPM_CALC_BUPA_BPFTE Calculate the business partner availability
RPM_CALC_STAFF_ICON calculate the staffing icon
RPM_CREATEUSR_NAME Generates user names
RPM_HR_IN_IF001 Customer exit for inbound time processing
RPM_HR_IN_IF002
RPM_HR_IN_IF003
RPM_HR_IN_IF004
RPM_HR_IN_IF005
RPM_HR_IN_IF006
RPM_INTEGRATION_OPTS get and set the project integration options
/RPM/OBJECT_SERVICES Object support services
/RPM/PERSON_CUST_FLD Resource customer fields
RPM_PROCESS_DATA Inbound processing of time data by customer
Good Luck, BB -
Dear All,
<b>In the PO creation badi, in create/change/save methods, i need to clear the purchase info record defaulted by SAP.
Also in create method, PO price needs to be defaulted as the same as PR price, if the reference PR is found. User should be able to change this default price and save the PO.</b> Hence, I have to restrict this logic only to create method.
Now i am trying to implement BADI for PO def (ME_PROCESS_PO_CUST) with (impl name: ZMM_POCREATE). For clearing the purchase info record i put the code in 2 different methods
1. PROCESS_ITEM
DATA: ls_mepoitem TYPE mepoitem.
break LAKSHMIS.
Get the PO item Details
ls_mepoitem = im_item->get_data( ).
ls_mepoitem-INFNR = space.
Set the item data
CALL METHOD im_item->set_data
EXPORTING
im_data = ls_mepoitem.
2. OPEN
DATA:
ls_header TYPE mepoheader,
ls_mepoitem TYPE mepoitem.
break lakshmis.
CALL METHOD im_header->get_data
RECEIVING
re_data = ls_header.
Get the items for the PO using get items method and change the purch info record to SPACE and set the values using SET_DATA on item.
<b>However, in both the cases the value doesnot get changed (as i dont see any changing parameters provided). However the documentation of BADI says that we can change the HEADER as well as ITEM information in this BADI.</b>
Can anyone please suggest, where i am going wrong and what needs to be done in order to achieve the above two requirements.
Thanks in advance.
Regards,
LakshmiBADI
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
The specified item was not found.
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
http://www.allsaplinks.com/badi.html
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-serieshttps [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40921dd7-d5cf-2910-1894-bb62316afbd1
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
Rewards if useful.........
Minal -
BADI's for the MD04 Transaction ?
Hello All ,
I want to know the BADI's for the MD04 Transaction.
I want to incorporate one Custom-Authorization Object in this Transaction.
Is it Posible ?
If yes can anyone help me out ?`
Regards,
Deepu.KThere are multiple ways of searching for BADI.
Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
Finding BADI Using SQL Trace (TCODE-ST05).
Finding BADI Using Repository Information System (TCODE- SE84).
1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for CL_EXITHANDLER=>GET_INSTANCE.
Make sure the radio button In main program is checked. A list of all the programs with call to the BADIs will be listed.
The export parameter EXIT_NAME for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter INSTANCE will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
2. Start transaction ST05 (Performance Analysis).
Set flag field "Buffer trace"
Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
Push the button "Deactivate Trace".
Push the button "Display Trace".
The popup screen "Set Restrictions for Displaying Trace" appears.
Now, filter the trace on Objects:
V_EXT_IMP
V_EXT_ACT
Push button "Multiple selections" button behind field Objects
Fill: V_EXT_IMP and V_EXT_ACT
All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
3. Go to Maintain Transaction (TCODE- SE93).
Enter the Transaction VD02 for which you want to find BADI.
Click on the Display push buttons.
Get the Package Name. (Package VS in this case)
Go to TCode: SE84->Enhancements->Business Add-inns->Definition
Enter the Package Name and Execute.
Here you get a list of all the Enhancement BADIs for the given package MB.
Also have a look at below report which will list BADIs.
*& Report ZNEGI16 *
REPORT ZNEGI16 .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
F-53 and F-28, Customized columns for cash discount and %
Hi Expert,
With reference to the subject of: Customized columns for cash discount and % ...
I faced the problem of not able to set / defined hidden column for cash discount and % by creating a new variant.
Steps:
Create a variant
Click <administrator> button ... mark the columns hidden, and click <activate> button
Then click <Save> button
Problem: Every time I using the F-53/F-28, the layout is not working, and when goto check the variant settings, the cash discount and % columns remained unchecked.
SAP version: 4.6
Kindly advise.
Thanks and regards,
sbmelHi JP,
It is not working using field status group, as I am using F-53 and F-28 and not FB50/60/70.
The purpose I want to create variant for screen after clicking <process open item> is to control column display (hide cash discount and %). if the variant is working, I can create a customized Tcode for the F-53 and F-28.
Now problem is that variant seem not working.
Thanks and regards,
sbmel
Maybe you are looking for
-
My Verizon app not working after iOS 7 update
I have an iphone 4s. After I upgraded to ios 7, the my verizon app stopped working. Today, the app got an update in the app store to version 3.6.0. I installed the update, but it still does not work. When I run it, it spins the circle dots for a
-
Deploying ADF Applications on Tomcat
Hi everybody, I'm wondering if is there any "secure and stable" way for deploying ADF web applications developed with JDeveloper 11g on Tomcat. JDev is amazing, so I hope that deployment is not restricted to Oracle AS. Thank you very much in advance!
-
Screen resolution on my Tecra 8000
Ok.. I have a toshiba tecra 8000 laptop with windows xp. The pc started with 800 x 600 the wrong resolution (i had black spaces beside my screen, all sides) so i turned it in windows to 1024 x 768 whitch works perfect. Now the screen is fully filled
-
How to truncate the decimals in the ALV report for the quantity field
Hi All, I have to display a quantity field and units of measure in the ALV output. If the units of measure eq 'PC' i should not display the decimal places for quantity in the alv output, otherwise i have to display the decimals in the output. How to
-
I am trying to add a cloudy sky to a picture and following the instructions on the Digital Photo CD Layers and Selections. I cannot find however the adjustment layer icon although I can achieve a red overlay with the magic brush selection mask option