Custom screen for ME21n - BADI issue
hi,
I had implemented BADI ME_GUI_PO_CUST for ME21n/me22n. The control is going to Subscribe and Map Dynpro methods but the control is not going to other methods like TRANSPORT_FROM_MODEL, TRANSPORT_TO_DYNP, TRANSPORT_FROM_DYNP and TRANSPORT_TO_MODEL.
Please explain how we can make the control to move to these methods. not sure what is missing in the implementation
"Customer Data" on ME21N/ME22N uses the SMOD enhancement MM06E005. Screen 0101 is used for Header Customer Data. So, when you navigate through this screen it doesn't go through the TRANSPORT* methods.
You can also use the BADI ME_GUI_PO_CUST to add your additional tabs in ME21N. You need to use the method SUBSCRIBE to set the Program, Subscreen number and other details. When you do the subscribe method, it would call the TRNSPORT* methods. Check the example code given in the class CL_EXM_IM_ME_GUI_PO_CUST.
Regards,
Naimesh Patel
Similar Messages
-
Custom screen for attribute BP relationship (t-code: BUBA)
Dear experts,
It is possible to create custom screen for attribute BP Relationship (t-code: BUBA)?
any document for this case?
(Go to t-code: BUBA -> Block BP Relationship Type -> Click BP Views)
Need your response...
Thanks and Regards,Dear experts,
any updated for this case???
Need your response..
Thanks and regards, -
Could not get Custom screen in me21n after implementing Badi ME_GUI_PO_CUST
Hi.,
I created implementation for the badi ME_GUI_PO_CUST... but i could not get the Tab and screen in header tab.
also used below link in the forum to correct the issue ....but dint help me .
Custom screen not displaying using BADI ME_GUI_PO_CUST
Pls help me how to go abt...
Thanks,
Ranjitha.Hi ....
Now the tab is reflecting in me22n & me23n but not in me21n ......can anybody tell what could be the reason?
thanks
ranjitha -
Modify standard screen for ME21N/ME22N
i need to modify ME21N/ME22N's Invoice Tab.
The requirement is to make the invoice tab's tax code and jurisdiction code modifiable at certain conditions.
how to do that?
i've read some posts that suggests some badis and userexits, but it mostly pertains to custom screens.
this has already taken me too long.
pls helpAs you said making screen fields modifiable pertaining to Custom screens.
In your code written for custom screens, you can use following syntax to make the fields visible (modifiable) or grayed out (not modifiable) for the fields. use this syntax based on your conditions.
You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the screen fields for a single screen call. The only statements that you can use with SCREEN are:
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.
for more details of this topic pls follow the links.
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm
The following example is selection screen based. but you can use the similar logic in ur program
DATA: d_ucomm LIKE sy-ucomm.
PARAMETERS: p_grpa1(10) MODIF ID A,
p_grpa2(5) MODIF ID A,
p_grpb1(2) MODIF ID B.
PARAMETERS: p_actA RADIOBUTTON GROUP rad1 USER-COMMAND ACT DEFAULT 'X',
p_actB RADIOBUTTON GROUP rad1.
AT SELECTION-SCREEN.
d_ucomm = sy-ucomm.
AT SELECTION-SCREEN OUTPUT.
LOOP AT screen.
IF p_actA = 'X'.
IF screen-group1 = 'B'.
screen-active = 0.
ENDIF.
ELSEIF p_actB = 'X'.
IF screen-group1 = 'A'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY screen.
ENDLOOP. -
XD01 Custom screen for custom fields,need to update tables kna1,knvv
Hi all,
I have designed a custim screen for XD01 with four custom fields five from kna1 other one from knvv table. i need to update the respective tables with these fields in badi GET_DATA of method IF_EX_CUSTOMER_ADD_DATA how to update the database table. Please help me in the same.see the help
http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099948b8911d396b70004ac96334b/frameset.htm
Regards
Kiran Sure -
Scroll bar visible but not able to scroll in custom screen for IW21
Hi,
We are using custom tab (screen exit) in transaction for creating notifications (TCode IW21). Two subscreens are configured to be embedded in the tab, combined area of which is exceeding screen size vertically. The scroll bar is visible in the tab but is not able to scroll using mouse scroll, but can be dragged up and down.
Does anyone know how to make it scrollable or make the scroll bar visible at application level (not in tab) and make it working?
Thank you,
DeepakHello,
Would you please implement the Methods GET_DATA to get th data from Databas to screen fields and SET_dATA to update thedata from custom screen fields to Data base table in u r case LFB1.
Regards, -
Custom screen for Payment card information in Sales Order
Hi All,
I want to know if its possible to develop a custom screen to accept multiple payment card information in Additional data tab and save it in normal payment card information at the time of saving sales order. This sounds little
NileshHi Nilesh,
Please, see SAP Note 914603 - FAQ/Collective note for payment cards (Consulting/modif). Here you have the relevant notes related with this topic, so, in point 4, the note says:
4. Payment cards in the order (with billing plan)
- 914811 FAQ: Authorisation Problems - Why?
- 915193 No authorization in the order
- 313416 Installment plan payment with payment cards
- 361790 No Authorization or only pre-authorization executed
- 701569 Incorrect value to be authorized in the order
I hope this helps you
Regards
Eduardo -
Custom screen for vendor master xk01
Hi Experts,
Any one suggest how to add custom screen with custom fields to transaction XK01. Also i want to display this screen by clicking on some custom button. so that user can enter the custom values and should capable to store this information on custom table.
XK01->vendor details with check box General choosed->Press enter->click on the custom button-> custom screen will display ->provide the values->save this details to custom table.
Thanks in advance.Look at BAdi : VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.
Expected result :
Regards,
Raymond -
SORT butttons on custom screen for custom fields
Hi all,
I have a dedveloped a custom screen in which there are 5-6 fields.Nowi need to put Sort buttons below these fields so that I can sort these fields.
How do i do this???Is there std FM i can use to achieve the sort functionality?Hi Rob,
I dont have a table control in which I have the custom fields.The custom fields are placed in a subscreen within acustom tab in standard screen in tcode VL31N. as shown below:
Plant:
Carrier:
Bill of lading:
Packaging list:
Damage
Now below these 5 fields ,I need to display the 2 SORT buttons/icons to change the display in ASCENDING OR DESCENDING order.
How do i do this???Is there any std FM ? -
HI,
I have designed the Search Help in SE11.
Its working fine.
When executed, it pops up the screen for input search criteria.
My question is : is it possible to have this popup screen as our own customised screen.
Can we add some Heading and Subheadings to it?
If yes, please let me know how can we do this.
Thanks in advance.HI,
I have designed the Search Help in SE11.
Its working fine.
When executed, it pops up the screen for input search criteria.
My question is : is it possible to have this popup screen as our own customised screen.
Can we add some Heading and Subheadings to it?
If yes, please let me know how can we do this.
Thanks in advance. -
User or customer exit for ME21N
Hi all,
I have to make a check before saving the Purchase order thru ME21N. Is there any user exit or customer exit available to do this check? Plz clarify.
Regards,
SteveHi
Use the BADI ME_PROCESS_PO_CUST
see the sample code and the doc for BADI
BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
Definition Name: ME_PROCESS_PO_CUST
Interface Name : IF_EX_ME_PROCESS_PO_CUST
Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
Method : PROCESS_HEADER
METHOD if_ex_me_process_po_cust~process_header .
DATA : re_data TYPE mepoheader.
*get the item data
CALL METHOD im_header->get_data
RECEIVING
re_data = re_data.
re_header = re_data.
IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
IF ( re_data-bsart <> 'ZIC' AND re_data-bsart <> 'UB' ).
IF re_data-bukrs NE '1001'.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
'Code for External Procurement'.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
Method : PROCESS_ITEM
METHOD if_ex_me_process_po_cust~process_item .
DATA: v_menge TYPE bamng, " PR Quantity
v_statu. " PR Status
DATA : re_data TYPE mepoitem,
re_data1 TYPE mepoaccounting,
re_accountings TYPE purchase_order_accountings ,
header TYPE purchase_order_accounting.
*get the item data
CALL METHOD im_item->get_data
RECEIVING
re_data = re_data.
IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
IF re_header-bsart EQ 'ZRL'.
IF re_data-konnr EQ space.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
'without a reference to Outline Agreeement'.
ENDIF.
ENDIF.
IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
'only with reference to a PR or RFQ'.
ENDIF.
IF re_data-knttp NE 'K' AND re_data-pstyp NE '9' .
IF syst-cprog EQ 'RM_MEPO_GUI'.
IF re_data-uebto IS NOT INITIAL OR
re_data-uebtk IS NOT INITIAL OR
re_data-untto IS NOT INITIAL.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant change delivery settings'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
DEFINING THE BADI
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in AAA).
7) Save , check and activate the code.
Some useful URL
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
Now write a sample program to use this badi method..
Look for BBB sample program.
AAA
data : wa_flights type sflight,
it_flights type table of sflight.
format color col_heading.
write:/ 'Flight info of:', i_carrid, i_connid.
format color col_normal.
select * from sflight
into corresponding fields of table it_flights
where carrid = i_carrid
and connid = i_connid.
loop at it_flights into wa_flights.
write:/ wa_flights-fldate,
wa_flights-planetype,
wa_flights-price currency wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc.
endloop.
BBB
*& Report ZBADI_TEST *
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref.
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to set Custom screen in ME21N when Payment Terms as particular value ?
Dear ABAP Experts,
I created one Custom Tab under Header level in me21n using screen exit MM06E005.
It's working fine. but My requirement is, whenever user will select Payment term as '0001' in Delivery / Invoice Tab then my Custom tab will open in ME21N t-code . My Custom tab will have different input fields which are entered manually, those values will store in Custom table(Z-table) when the user press save button.
So, How to do this?Hi,
The ME2xN transactions reads the user settings from table ESDUS using function module ES_READ_USER_SETTINGS, and save them at the end of the transaction using function module ES_APPEND_USER_SETTINGS.
You need to overwrite the displayed header tab number using ES_APPEND_USER_SETTINGS just at the beginning of the transaction. I think that a godd point to do this is in the subroutine INIT_TRANSACTION of report RM_MEPO_GUI. You can do this using the enhacement framework. I have tested it and it works for me. This is the code you should insert:
FORM init_transaction CHANGING ch_document TYPE mepo_document
ch_exit TYPE mmpur_bool
ch_requisitions TYPE mereq_t_eban_mem
ch_requisition_acc TYPE mereq_t_ebkn.
"""""""""""""""""""""""""""""$"$\SE:(1 ) Forma INIT_TRANSACTION, Inicio D
*$*$-Start: (1 )-----------------------------$*$*
ENHANCEMENT 1 ZTEST. "active version
*Expand header------
CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
EXPORTING
iaction = 'PurchaseOrder'
ielement = 'DYN_4000-BUTTON TOGGLE_STATE'
iactive = '2'.
*Move to 2nd tab ----
CALL FUNCTION 'ES_APPEND_USER_SETTINGS'
EXPORTING
iaction = 'PurchaseOrder'
ielement = 'HEADER-TABSTRIP SUBVIEW_INDEX'
iactive = '2'.
ENDENHANCEMENT.
*$*$-End: (1 )-----------------------------$*$*
DATA: l_ebeln TYPE ekko-ebeln,
l_ebelp TYPE ekpo-ebelp, -
How to create a Custom Screen for executing a report in the backend ?
Hello Everyone,
I have a requirement to develop a Custom Application on the Cloud to capture few fields from user and trigger an execution of a report in the background in CRM. There is no need to display any results after the triggering execution. Just need to show a message that "Background Job was successfully submitted".
I saw the types of screens available for creation as explained in this link Screen Types, unfortunately none of the screen types works out for me.
As seen from the requirement, there is no need to store any data send from the UI in backend. So, it doesn't make sense for me to create a Business Object. So I tried creating a Query Object to see if that works out, but query object also requires a BO to execute query on and it also makes result list view mandatory and asks me to pick atleast one field to show in the result list.
I also tried Mass Data run which doesn't fit the bill.
So, I'm looking for the best possible UI screen and approach to build a simple custom application with 5-6 fields and an execute button. Please suggest me the best possible option available in the C4C.
Regards,
SrikanthHey,
first of all: if you really need a button, you will need to create your own business object with an action.
If you just want to trigger the service you could add an extension field of type indicator to any standard Bo and the put logic in the before save of this Xbo. Then you just add the indicator to the UI. But the user would always have to go to this screen I.e. The customer...
so i guess maybe a custom business object with only one instance, a button, some logic in an action and a generated UI including a workcenters 'backend report execution' is the best way for you!
cheers
jens -
How to build customized screens for Master Data Users
Hi all,
I need to build screens on top of centrally managed master data hub (Data Manager). I want to confirm following
1) Should I go with Guided procedure (CAF) and pre defined Portal contains provided by SAP for MDM?
2) Should I use Java API's provided with SAP MDM.
License is not al all the issue. We have the entire NW components in place. But not sure what to use and what are the advantages/disadv???
Please share your views....
Thx,
R.nHi,
I would suggest GP would be easier and in this you can integrate with ur customised objects also.
Vinay -
Adding Custom screen for Create Space functionality in WebCenter Spaces
I need some information on WebCenter Spaces.
By default there are couple of parameters such as Space name, description, tag, url, status (Public, Private) etc. is required to create the Space with the Out-of-the-box screen in Spaces. But we have a requirement to create Group Space with some additional parameters too.
I am finding a solution for that. Can we build a task flow with all the parameters that we need to create the Spaces ? If that is possible, can we use Spaces API to create the space and then deploy that task flow in Spaces ?
Please let me know if there are any other options.Hi.
Yes you can. Build a Task Flow consuming Spaces API (WebService or REST) and setting custom properties to it.
Steps that you have to follow is:
- Use API to create your group Space:
//create the Space
GroupSpaceWSMetadata gsMetadata =
client.createGroupSpace("Databases", "Databases" "A community for people interested in databases", "databases, oracle", "CommunityofInterest");
//print the Space GUID to provide confirmation of creation
System.out.println("GUID: " + gsMetadata.getGuid());- You can add programmatically custom attributes:
//create the custom attribute
client.setCustomAttribute("Databases", "Vendors", "List of vendors", "java.lang.String", "Oracle, IBM");Code is from WebCenter Spaces API off doc: http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_spaces.htm#CIHIJBIG
Regards.
Maybe you are looking for
-
New HP Officejet 6600 won't scan to MacBook Air
I bought new HP 6600, downloaded all the drivers set it up and it worked perfectly - for one week. I've now uninstalled and reinstalled drivers. My MacBook Air sees the printer and I watch it scan and see the text on my computer screen, but not sav
-
Error BEA-000438 - Unable to load performance pack. Using Java I/O instead.
On a Solaris 9 machime, 64 bits architecture, j2sdk1.4.2_08, Weblogic Server 8.1 SP2 when I try to deploy the application, launching java wiht "-d64" option I get : <Jun 22, 2005 12:12:41 PM CEST> <Error> <Socket> <BEA-000438> <Un
-
Calculation of output tax A1 in only through Sd but nto through F-22
Hi all, While making posting through SD transaction VA01 by giving output tax code A1,tax is getting calculated but the same tax code A1 when used in TCode F-22 (manual FI posting) tax is not getting calculated even if we check the calculate tax and
-
BDOC - BUS_TRANS_MSG error in SMQ2 and SMW01
Hi All, *When checked the Inbound queue (SMQ2) in CRM it shows this error for one sales order .R3AD_304289786 11.11.2010 06:08:30 Error in Validation (Details: transaction SMW01) *then when I check the error in SMW01 it shows this..* Erro
-
Huawei e170 dongle, where do I find out what firmware it has on it?
Does anybody know how to find it? I have problems running it and thought the firmware is not up to date to run under SL? Also how to update the FW if needed?