CL_OPS_SWITCH_CHECK= LE_SFWS_SC3
Hi ,
IF cl_ops_switch_check=>le_sfws_sc3( ) = gc_true. "v_n_1419577
Call BAdI for delivery header update
PERFORM badi_delivery_header_update CHANGING cf_subrc. "700
IF cf_subrc NE 0.
RETURN.
ENDIF.
ENDIF. "^_n_1419577
I have this check in the routine PERFORM DELIVERY_UPDATE_HEADER of WS_DELIVERY_UPDATE_2 FM. This returning false, so the BADI code is not called. I want to use this BADI called so that I can pass the data from vbakok to likp . So I have turned on the switch by Enhancing the CL_OPS_SWITCH_CHECK class with overwrite exit. Now the BADI code is called and my issue is resolved.
But here I have the confusion after looking at usage of this check (CL_OPS_SWITCH_CHECK=>LE_SFWS_SC3 = true / false ) at different places of the FM code. What would be the impact of them?
our environment is ECC 6.0. Your input is appreciated.
Thank you,
Surya.
Hello Eric,
Check the package of the class of Overwrite method (CL_ERP_SWITCH_CHECK), it most probably involves a switch which is turned off.
This is also the reason why you cannot set a breakpoint because this coding will not be executed at runtime.
As Uwe mentioned, you can switch-on the business functions associated with the switch but be careful because this business function is not reversible, therefore cannot be switched off.
See also precautions that have to be taken when switching on a business function on the Help Portal:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/de/899442047b0831e10000000a1550b0/content.htm
Regards,
Pascale Boyer
SAP SFW Dev Support
Similar Messages
-
Enhancement Section Activated but changes not taking place
Hello Friends,
I have been getting a dump error for FM GN_DELIVERY_CREATE_FOR_DIALOG which says that
"spe_version" does not exist in table "LIPS".
I found a enhancement option that commented out the perform that lead to the subroutine which has the error code.
I have activated business function LOG_LE_INTEGRATION via SFW5 which activates among others switch LE_SFWS_SC3.
I can see the global status of the switch as ON.
This switch is associated with enhancement spot ES_SAPLV50S which has implemented an enhancement section in inlcude LV50LF14 lines 191 -194
However, despite activation the changes are not taking place and i am still getting a dump error.
I am also not able to set a break-point in the FM because the program cannot be generated
My question is: Is successful program generation a pre-requiste for enhancement source plug-ins to be effective?
Any pointers would be highly appreciated.
Thanks,
Minhaj.Hi Minhajuddin ,
With "enhancement spot" we have come across similar short dumps and inactivation of spots even when steps are taken as per procedure.Please check if any notes are available for the same ,since most of the time it fixed the problem.
Regards
Byju -
In SRM a central contract was created and then distributed to SAP ERP ECC 6.0 Backend.
In backend system a release strategy exists for the distributed contract.
When trying to release this contract with ME35K the contract will not be found.
Checking the table EKKO the contract is there and the release strategy is correct.
Debugging transaction ME35K we found that the following statement deletes the distributed contract.
*- Check for EhP4-Switch and Central Contract
IF cl_ops_switch_check=>mm_sfws_p2pse( ) = 'X'.
DELETE xekko WHERE bstyp EQ 'K'
AND statu EQ 'K'.
The question is if there is a switch which needs to be activated or deactivated that the contract can be released by ME35K?
The switch should be: MM_SFWS_P2PSE
Or is it SAP standard that distributed central contracts cannot be released in ERP backend with ME35K?
Thanks in advance.If you're reference the PO to a PR, than you can remove the assingment of the Contract document type to the PR document type, so the users wont be able to create the PO with reference to the Contract with the specific doc type.
SPRO->Materials ManagementPurchasingContract--Define Document Types --> Link purchase requisition - document type -
Central Contract release in ME35K
In SRM a central contract was created and then distributed to SAP ERP ECC 6.0 Backend.
In backend system a release strategy exists for the distributed contract.
When trying to release this contract with ME35K the contract will not be found.
Checking the table EKKO the contract is there and the release strategy is correct.
Debugging transaction ME35K we found that the following statement deletes the distributed contract.
*- Check for EhP4-Switch and Central Contract
IF cl_ops_switch_check=>mm_sfws_p2pse( ) = 'X'.
DELETE xekko WHERE bstyp EQ 'K'
AND statu EQ 'K'.
The question is if there is a switch which needs to be activated or deactivated that the contract can be released by ME35K?
The switch should be: MM_SFWS_P2PSE
Or is it SAP standard that distributed central contracts cannot be released in ERP backend with ME35K?
Thanks in advance.
Manjunath and ReaganHi
Are the contract originated in SRM ?
In CCTR contract, all approval process happened in SRM web front itself.
Do you want to make approval process again in ECC ?
After approval of CCTR , the contract ventured from SRM to ECC and this contract is available as source of supply for SRm as well as ECC.
Muthu -
POWL for Credit Check in Business Package Internal Sales Representative
Hi,
Need some Help!
We are into implementation of Business Package Internal Sales Representative (Provided as a separated role in Portal).
I have a requirement where I need to Add some functionality into standard Credit Check SAP Screen (Delivered via POWL).
For this Perticular screen,
1) Sold to Party IDs in Query result table appear as Links. On Click of these IDs (links), I need to open a new custom WD Component:
2) I have to add few new Columns to Query results.
I have identified following about this Query:
Query: O2C_LIST_CUSTOMERS_CCOCKPIT
Type: O2C_LIST_CUSTOMERS_COCKPIT
Feeder:CL_O2C_POWL_CUSTOMERS
Also, when I checked in SPRO, following BADI is also provided for this query:
BADI_FEEDER_CUSTOMERS of enhancement spot ES_BADI_O2C_POWL_FEEDER.
Looks to me that, for adding new Columns in the query results, Get_Objects method of this BAdi should be implemented.
I guess this kind of things can also be done in Feeder Class Enhancements.
How should I go about doing this stuff?
Thanks,
Saumil Jyotishi
Edited by: SaumilJ on Apr 5, 2011 12:02 PMHi Thomas. Thanks a lot for replying!
Let me describe you what I am trying to do here exactly.
Actually, while working on Requirement 1 (Opening a new action from a link), I came across getactions method of the feeder where I found the code where relevent standard action is handled. It goes like this:
CASE i_actionid.
Ehp4 enhancement: display customer
WHEN 'KUNNR' OR 'NAME'.
IF mv_ehp4_active = cl_ops_switch_check=>switch_active_true.
READ TABLE c_result_tab ASSIGNING <fs_result> casting INDEX I_ACTION_INDEX.
CALL METHOD CL_O2C_POWL_UTIL=>GET_PORTAL_ACTIONS_CUSTOMER
EXPORTING
IV_KUNNR = <fs_result>-kunnr
IV_SPART = <fs_result>-spart
IV_VTWEG = <fs_result>-vtweg
IV_VKORG = <fs_result>-vkorg
IMPORTING
ES_PORTAL_ACTIONS = e_portal_actions.
endif.
End of Ehp4 enhancement: display customer
Now, on these actions ('KUNNR' OR 'NAME'), Instead of a new standard application, I need to open a Custom WD Application (with parameter 'KUNNR').
I need to figure out how should I go about it?
I tried to enhance the feeder and create overwrite exit where I can write my code in this CASE statement (which seemed easiest to me at first go), but seems like after creating an exit I need to do a lot of stuff (a local class is created in exit where I need to define a lot of standard stuff). As of now, its not working for me
Also, I tried to Create the BADI Implementation which gets executed after this standard code (HandleAction method of this BADI), but this gets called after e_portal_actions get populated
how to open my custom WD(Instead of standard) Application from here ?
I can create the URL for my application with WDY_CONSTRUCT_URL, but how to open this in a new window on Portal?
I have seen in some threads about using OBN. If its required, how should I use it in this case?
For Requirement 2 (Adding new Columns in POWL Results), I am planning to define and add new columns in getfieldcatalogue and getobjects method of the same badi.
Is it the right approach?
Regards,
Saumil Jyotishi
Edited by: SaumilJ on Apr 6, 2011 3:03 PM -
Hi Gurus,
I'm trying to do an LSMW to upload Sales Order.
I read on the forum this should be done in two steps.
First, create the header.
Then, add items to those SO.
So I did a record for header informations.
This is OK.
But while trying to do the recording for items, I can't find a way to add multiple items to the same SO.
I've take one more look at the forum and I saw the program RVINVB10 could be usefull.
I've read it is possible to generate an extract from SAP to see what does the input file should looks like, but I didn't succeed in getting this extract.
I'd like to use the easier means to upload the SO, but as I'm not a technical consultant it's hard stuff for me.
Can someone help me?Well, know I'm facing an other problem.
Since I made the extract from SAP via Initial Data Transfer, I cannot create anymore SO.
Neither display one.
Each time, there is a dump.
Here is the dump message:
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPMV45A" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "SAPLV61B " in include "RV61B901
" in
line 6:
"Field "VBKD~BSARK" is unknown. It is neither in one of the specified t"
"ables nor defined by a "DATA" statement. ."
The include has been created and last changed by:
Created by: "N026821 "
Last changed by: "N026821 "
Error in the ABAP Application Program
The current ABAP program "SAPMV45A" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Please eliminate the error by performing a syntax check
(or an extended program check) on the program "SAPLV61B ".
You can also perform the syntax check from the ABAP Editor.
If the problem persists, proceed as follows:
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If you cannot solve the problem yourself and want to send an error
|
Information on where terminated
Termination occurred in the ABAP program "SAPMV45A" - in
"BELEG_INITIALISIEREN".
The main program was "SAPMV45A ".
In the source code you have the termination point in line 267
of the (Include) program "MV45AF0B_BELEG_INITIALISIEREN".
Source Code Extract
Line
SourceCde
237
IF sy-subrc = 0 .
238
Externe Steuern initialisieren
239
CALL FUNCTION 'EXTERNAL_TAX_DOC_REFRESH'
240
EXPORTING
241
i_belnr = *vbak-vbeln.
242
ENDIF.
243
UNASSIGN <check>.
244
245
246
DSEG ******
247
CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE'
248
EXPORTING
249
bukrs = *vbak-bukrs_vf
250
component = 'BR'
251
EXCEPTIONS
252
component_not_active = 02.
253
IF sy-subrc = 0.
254
Brasilien: Felder in Funktionsgruppe Auftrag Brasilien initialisieren
255
CALL FUNCTION 'J_1B_SD_SA_INIT_LOCAL'
256
EXPORTING
257
i_vbak = *vbak.
258
ENDIF.
259
DSEG *****
260
261
CLEAR: *vbak.
262
CLEAR: *vbap.
Runtime Errors SYNTAX_ERROR
Date and Time 01.12.2011 12:30:52
263
264
Initialization of internal tables for output processing
265
IF call_function IS INITIAL OR
266
NOT call_bapi_simulation_mode IS INITIAL.
>>>>>
CALL FUNCTION 'RV_MESSAGES_REFRESH'
268
EXPORTING
269
msg_kappl = tvak-kappl.
270
CLEAR: propos.
271
CLEAR xobjky.
272
ELSEIF NOT call_function IS INITIAL.
273
CLEAR xobjky.
274
ENDIF.
275
Serialnummern
276
IF requisition_buff_init NE space AND
277
call_activity NE activity_service_request AND
278
call_activity NE activity_good_movement.
279
ASSIGN ('(SAPLIPW1)sy-subrc') TO <check>.
280
IF sy-subrc = 0 .
281
CALL FUNCTION 'SERIAL_INTTAB_REFRESH'.
282
IF cl_ops_switch_check=>mm_sfws_serno( ) EQ cl_mmpur_constants=>yes.
283
CALL FUNCTION 'MMPUR_MESEN_INITIALIZE'. "1362353
284
ENDIF.
285
ENDIF.
286
UNASSIGN <check>.
What happened?!
What should I do to fix this?! -
Hi,
Can any one tell me how to enable the Overwrite exit of a method ? I want to enable the overwrite exit of a method CL_OPS_SWITCH_CHECK --> MM_SFWS_SERNO.
Regards,
Krishnam RajuHi Krishnam,
I have not idea so fas what an Overwrite exit may be. But you can do anything you want using implicit enhancements. Create a small enhancement project and apply it to method MM_SFWS_SERNO of class CL_OPS_SWITCH_CHECK.
I for one would not do it but look for a better solution. I do no
think that implicit enhancements are a good idea (of SAP) at all. Because you can apply just any change to any SAP code without having a modification.
Regards,
Clemens
Maybe you are looking for
-
Table borders show up with Firefox or IE but not Safari (Win or MAC)
This very simple site (http://www.brandondean.net) has two table borders that show up under FF and IE but not Safari (either Win v4.0 or Safari for MAC, same result). I'm not an expert but I did the work using Dreamweaver 2004 MX as XHTML compliant,
-
I want to create a document with showingWindow = false and print it. var myDocument = app.documents.add(false); var myStory = myDocument.stories.item(0); myStory.contents = "Hello World!"; myDocument.print(true); myDocument.close(SaveOptions.NO); The
-
Hi Friends If more than one dialog instance can be installed in a computer? I have installed a sap system(abap stack), central instance and dialog instance are in the same server. the dialog instance has started up, but I can't see the dialog instanc
-
Goods receipt from production through scanner
Hello, My client does the partial confirmation at the end of every shift. So this means that there will be Finished goods on the production floor for multiple production orders at the end of the shift. The requirement is, they want to send the materi
-
Hello, I'm working with my professor on an optics experiment and we are trying to control a fast steering mirror with LabVIEW. We bought the mirror and power supply from piezosystemjena. They provided a LabVIEW code that works. The problem is tha