Leave transaction
Hello everyone
I have problem like this: From transaction TR1 I call another transaction TR2.I don' t want to call transaction TR2 with her first screen ,but with hers third screen. This is the code:
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: PROGRAM LIKE SY-REPID,
WA_BDCDATA TYPE BDCDATA,
WA_BDCDATA1 TYPE BDCDATA.
CLEAR WA_BDCDATA.
WA_bdcdata-program = 'ZREKLAMACJE'.
WA_bdcdata-dynpro = '0100'.
WA_bdcdata-dynbegin = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'BDC_CURSOR'.
WA_BDCDATA-FVAL = 'T1'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'BDC_OKCODE'.
WA_BDCDATA-FVAL = 'ANALIZA'.
APPEND WA_BDCDATA TO BDCDATA.
set parameter id 'num_wew' field NUMER_ZNAKOWY-ROWTYPE.
set parameter id 'kod_transakcji' field sy-tcode.
call transaction 'ZREKLAMACJA_ZEW' USING BDCDATA MODE 'E'.
The transacton TR2 is working, but how can I end transaction TR1. When I'm using leave program, when second transaction ends, everything goes back to the first transaction TR1.
Please help .
Thank you.
Hi
It depends on how the second transaction is called, you should consider a batchinput simulation ends when a commit is triggered, a statament like CALL TRANSACTION triggers automatically the commit.
So you should change the program in ordert to change the way to call the transaction TR2:
- try to use LEAVE TRANSACTION instead of CALL TRANSACTION;
- or create a dialog for TR2
Max
Similar Messages
-
This piece of code was used to refresh alv data automatically for every 3 minutes and it worked perfectly in sap 4.7
But in SAP 6 I am getting runtime error :RPERF_ILLEGAL_STATEMENT
Statement LEAVE TO TRANSACTION is not allowed in this form
FORM f_call_rfc_wait .
DATA lv_mssg(80). "#EC NEEDED
CALL FUNCTION 'RFC_PING_AND_WAIT' STARTING NEW TASK '0O1'
PERFORMING f_task_end ON END OF TASK
EXPORTING
seconds = 180 " Refresh time
busy_waiting = space
EXCEPTIONS
RESOURCE_FAILURE = 1
communication_failure = 2 MESSAGE lv_mssg
system_failure = 3 MESSAGE lv_mssg
OTHERS = 4.
ENDFORM. " f_call_rfc_wait
FORM f_task_end USING taskname.
DATA lv_mssg(80). "#EC NEEDED
RECEIVE RESULTS FROM FUNCTION 'RFC_PING_AND_WAIT'
EXCEPTIONS
RESOURCE_FAILURE = 1
communication_failure = 2 MESSAGE lv_mssg
system_failure = 3 MESSAGE lv_mssg
OTHERS = 4.
CHECK sy-subrc EQ 0.
SET USER-COMMAND '&NTE'. "Refresh
LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
ENDFORM. " f_task_end
*& Form user_command1
* text
* -->UCOMM text
* -->SELFIELD text
* for detailed list and automatic refreshing
FORM area_prod_alv.
TYPE-POOLS: slis.
DATA t_fieldalv TYPE slis_t_fieldcat_alv.
DATA: ls_slis_fieldcat TYPE slis_fieldcat_alv.
PERFORM f_call_rfc_wait.
PERFORM initial_alv_fieldcat CHANGING t_fieldalv[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_bypassing_buffer = 'X'
i_buffer_active = ' '
i_callback_program = 'ZMPQ203_SHOP_HONEW'
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND1'
it_fieldcat = t_fieldalv[]
i_save = 'X'
it_events = gt_event[]
is_layout = lo_layout
TABLES
t_outtab = itab3
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. " area_prod_alv
instead of LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
i have also tried LEAVE to TRANSACTION TRASACTION_NAME AND SKIP FIRST SCREEN.
& also CALL TRANSACTION TRASACTION_NAME AND SKIP FIRST SCREEN.
but i got same errorHi
try with below methods and FM in your object
*call screen 0.
LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
Usually this command is enough to call PAI/PBO by force
CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE
EXPORTING
NEW_CODE = 'DUMMY'.
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
EXPORTING
FUNCTIONCODE = '/00'
EXCEPTIONS
FUNCTION_NOT_SUPPORTED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
Implement suitable error handling here
ENDIF.
CALL METHOD CL_GUI_CFW=>FLUSH
might be your issue will solve the above solution.
Thanks and Regards,
Syfulla -
Call a transaction in a new session within a program
Hi Friends,
I have a requierment to call a custom Z Tcode within a module pool program. When I click on a particular pushbutton the custom transaction should get called in such a way that user should be able to be in the called transaction as well as in the calling program.
Can someone please help me on how to go about this? I have tried SUBMIT, CALL TRANSACTION, LEAVE TRANSACTION, etc.,
Thanks,
DikshithaHi dixitha,
1. You want to open VA01 in NEW WINDOW
2. You want to PASS some values to VA01 (eg. Order Type, Sales Organization etc)
There are two things.
1. As mentioned by Vinod, use the function module
DATA: bdcdata TYPE TABLE OF BDCDATA.
CALL FUNCTION 'CKEKUTIL_CALL_TRANSACTION_TASK'
EXPORTING
transaction = 'VA01'
* MODE = 'A'
* UPDATE = 'S'
TABLES
bdcdata_imp = bdcdata "Blank table
2. BUT, this will ONLY open the tcode VA01 with BLANK values.
If you have made a BDC program, then you will understand that
for filling up values automatically, we have to pass some informatino
(eg. program name, screen number, X
field name, field value
field name, field value ) etc.
to this , using the tables parameter BDCDATA_IMP.
So for eg., the values for this itab will be
PROGRAM DYNPRO DYNBEGIN FNAM FVAL
SAPMV45A 0101 X
VBAK-AUART OR
VBAK-VKORG 1000
This will open VA01 tcode, with order type as OR (Standard order)
and Sales organization as 1000.
(You can use SHDB tcode to get the screen field names and values and the full recording)
Hope this helps.
regards,
amit m. -
Can we do a recording for ABZON transaction?
Hi,
We are using transaction ABZON for creating 'new asset' for uploading data using LSMW recording method.
We are getting an error "leave transaction not possible for batch input" when we are try to upload more than one record from the file.
The LSMW works fine for one record but goes in error for more than one record. If any one has come across this issue pls let me know asap. Also if there is any alternative way bapi/FM pls let us know.
Thanks in advance,
SimmiHi simmi,
Use BAPI for creation of Assets, pass the data to the structures of BAPI.
CALL FUNCTION 'BAPI_FIXEDASSET_CREATE'
exporting
COMPANYCODE = COMPANYCODE
ASSET = ASSET
SUBNUMBER = SUBNUMBER
REFERENCE = REFERENCE
CREATESUBNUMBER = CREATESUBNUMBER
GENERALDATA = GENERALDATA
GENERALDATAX = GENERALDATAX
INVENTORY = INVENTORY
INVENTORYX = INVENTORYX
POSTINGINFORMATION = POSTINGINFORMATION
POSTINGINFORMATIONX = POSTINGINFORMATIONX
TIMEDEPENDENTDATA = TIMEDEPENDENTDATA
TIMEDEPENDENTDATAX = TIMEDEPENDENTDATAX
ALLOCATIONS = ALLOCATIONS
ALLOCATIONSX = ALLOCATIONSX
ORIGIN = ORIGIN
ORIGINX = ORIGINX
INVESTACCTASSIGNMNT = INVESTACCTASSIGNMNT
INVESTACCTASSIGNMNTX = IVESTACCTASSIGNMNTX
NETWORTHVALUATION = NETWORTHVALUATION
NETWORTHVALUATIONX = NETWORTHVALUATIONX
REALESTATE = REALESTATE
REALESTATEX = REALESTATEX
INSURANCE = INSURANCE
INSURANCEX = INSURANCEX
LEASING = LEASING
LEASINGX = LEASINGX
importing
ASSETCREATED = ASSETCREATED
RETURN = RETURN
tables
DEPRECIATIONAREAS = DEPRECIATIONAREAS
DEPRECIATIONAREASX = DEPRECIATIONAREASX
EXTENSIONIN = EXTENSIONIN
exceptions
OTHERS = 1 -
Calling a transaction and return
Hi all,
I need to call a transaction from a report and the control has to return back to the report after the called transaction is executed.
The "Call Transaction" statement does not have the option to have the return to the calling program neither do "Leave Transaction".How do I achieve it?
Pls help with your ideas.
Thanks,
StockHi,
I am trying to call the customised copy program of CO99( named new Tcode as ZCO99 with all the values of selection screen passed to memory id and imported in the copy program) through another report.
Now I tried with submit as well and the result is the same.
Another thing is with the Pop-up that we have when the CO99 Tcode is called which is for Controlling Area.Two pop-ups at the start and in between.
Does this prevent from returning to the cliing program.
Thanks,
Stock -
Make the present transaction VL06 for report purpose only
My client wants that the inquiry only vie wof transaction VL06/VL06o so that individuals who only need the reporting capability available in this transaction can get the reports they need without being able to access VL02N and other transactions such as LT03 and LT12.
Kindly suggest how to proceed?Enter VL06 in field SHDTV-TCODE, ZVL06 in field SHDTV-TCVARIANT. Push 'create' and leave transaction VL06 (which pops up). In next popup 3rd button 'deactive menu function' is available. In addition, after saving the variant and re-entering in change mode, first button will give possiblity to deactivate functions.
I assume, authority for LT03,... will not be given - by transaction variants forbidden buttons are inactive (or disappear - haven't checked for this transaction).
Regards,
Christian -
Department secretary to apply or extend others ESS leaves!
Dear,
In ESS leaves, ITS version, SAP 4.6c .. how to let the department secretary to apply or extend his leave of behalf of their department employee if he is away and to able to access his/ her Portal? They are not having PA30 and not able to do in PA71 or any HR leave transaction, is there any way if the employee not able to access his portal ..
thanks
AbdulrahmanHi,
For Exchange privileges, I suggest use RBAC.
Regards,
Simon Wu
TechNet Community Support -
Updation of Refernce field in FBCJ transaction fails?
Hi,
I need to update refernece field of FBCJ transaction code with document number.
Checked CJ_DOCUMENT badi, can not be used. During save, one of the function module is called,
FCJ_SAVE_ALL FM, I am writing code within this, afer FCJ_SAVE because it doesnt updates posting number before.
LOOP AT I_L_ITCJ INTO WA_ISCJ_POSTINGS.
Copying The value of posting number to document Number
WA_ISCJ_POSTINGS-DOCUMENT_NUMBER = WA_ISCJ_POSTINGS-D_POSTING_NUMB.
Modifying the Internal table from work area.
MODIFY I_L_ITCJ FROM WA_ISCJ_POSTINGS TRANSPORTING DOCUMENT_NUMBER
WHERE D_POSTING_NUMB = WA_ISCJ_POSTINGS-D_POSTING_NUMB.
Clearing the Workarea.
CLEAR WA_ISCJ_POSTINGS.
ENDLOOP.
ITCJ_POSTINGS[] = I_L_ITCJ[].
L_MANDT = SY-MANDT.
DATA : LS_DOCUMENT TYPE TCJ_DOCUMENTS.
LOOP AT ITCJ_POSTINGS INTO WA_POSTINGS.
LS_DOCUMENT-MANDT = L_MANDT.
LS_DOCUMENT-POSTING_NUMBER = WA_POSTINGS-POSTING_NUMBER.
LS_DOCUMENT-CAJO_NUMBER = WA_POSTINGS-CAJO_NUMBER.
LS_DOCUMENT-COMP_CODE = WA_POSTINGS-COMP_CODE.
LS_DOCUMENT-FISC_YEAR = WA_POSTINGS-FISC_YEAR.
LS_DOCUMENT-CURRENCY = I_CURRENCY.
LS_DOCUMENT-H_RECEIPTS = WA_POSTINGS-H_RECEIPTS.
LS_DOCUMENT-H_PAYMENTS = WA_POSTINGS-H_PAYMENTS.
LS_DOCUMENT-H_NET_AMOUNT = WA_POSTINGS-H_NET_AMOUNT.
LS_DOCUMENT-H_NET_PAYMENT_WT = WA_POSTINGS-H_NET_PAYMENT_WT.
LS_DOCUMENT-H_TAX_AMOUNT = WA_POSTINGS-H_TAX_AMOUNT.
LS_DOCUMENT-BP_NAME = WA_POSTINGS-BP_NAME.
LS_DOCUMENT-DOCUMENT_DATE = WA_POSTINGS-DOCUMENT_DATE.
LS_DOCUMENT-DOCUMENT_NUMBER = WA_POSTINGS-D_POSTING_NUMB.
LS_DOCUMENT-POSTING_DATE = WA_POSTINGS-POSTING_DATE.
LS_DOCUMENT-VALUTA_DATE = WA_POSTINGS-VALUTA_DATE.
LS_DOCUMENT-ACCOUNTANT = SY-UNAME.
LS_DOCUMENT-TAX_PERCENT = WA_POSTINGS-TAX_PERCENT.
LS_DOCUMENT-D_POSTING_NUMB = WA_POSTINGS-D_POSTING_NUMB.
LS_DOCUMENT-TEXT1 = WA_POSTINGS-TEXT1.
LS_DOCUMENT-TEXT2 = WA_POSTINGS-TEXT2.
LS_DOCUMENT-BUPLA = WA_POSTINGS-BUPLA.
LS_DOCUMENT-SECCO = WA_POSTINGS-SECCO.
LS_DOCUMENT-EXCH_RATE = WA_POSTINGS-EXCH_RATE.
LS_DOCUMENT-MEANS_OF_PAYMENT = WA_POSTINGS-MEANS_OF_PAYMENT.
LS_DOCUMENT-CHECK_NUMBER = WA_POSTINGS-CHECK_NUMBER.
LS_DOCUMENT-CHECK_ISSUER = WA_POSTINGS-CHECK_ISSUER.
LS_DOCUMENT-BANK_KEY = WA_POSTINGS-BANK_KEY.
LS_DOCUMENT-BANK_ACCT = WA_POSTINGS-BANK_ACCT.
LS_DOCUMENT-BANK_CTRY = WA_POSTINGS-BANK_CTRY.
LS_DOCUMENT-CHECK_STATUS = WA_POSTINGS-CHECK_STATUS.
LS_DOCUMENT-CHECK_STACK = WA_POSTINGS-CHECK_STACK.
LS_DOCUMENT-REVBELNR = WA_POSTINGS-REVBELNR.
LS_DOCUMENT-LZBKZ = WA_POSTINGS-LZBKZ.
LS_DOCUMENT-LANDL = WA_POSTINGS-LANDL.
LS_DOCUMENT-SPLIT = WA_POSTINGS-SPLIT.
LS_DOCUMENT-VATDATE = WA_POSTINGS-VATDATE.
CALL FUNCTION 'FCJ_INSERT_DOCUMENT'
EXPORTING
I_DOCUMENT = LS_DOCUMENT
EXCEPTIONS
INSERT_FAILED = 01. "
This code I am using as insertion was done before this function module so my insertion fails here, any other workaround to populate reference field. I can see it populated, once i leave transaction and come back again I dont see reference field.
Regards
MohinderHi,
Its resolved.
updating posting
using function module CALL FUNCTION 'FCJ_CHANGE_SAVED_DOCUMENT'
Thanks
Mohinder Singh Chauhan -
Hi Guru.
Can any one tell me how to club Sick Leave and Earn Leave.
An employee who went for a EL ,later it has to convert to Sick leave ,how to club both sick and earn leave.
Regards,
Ananthi.MHi,
I believe you need to set up common quota/entitlement (e.g. "Leave") for both absences.
Then you can set up deduction rules that in case of sick or earned leave the same quota/entitlement will be used.
To do that please check configuration of leaves (transaction SM30, table T554S), time quotas (table V_T559L) and deduction rules (table V_556R_B).
Cheers -
hi,
If 2 transactions give the same result,then if both the transactions are executed simultaneously,then how to stop other transaction to be executed and issue a messag saying other had executed first.
Thanks in advance.Hi assr
Using the lock mechanism, you can recursively check whether the second transaction released the lock or not and ask the use for the action.
e.g.
DATA lv_stop_transaction TYPE flag .
DATA lv_answer TYPE char1 .
DO .
*-- Call lock module
*--If lock is active ask whether to wait or exit
*--You can use the FM "POPUP_TO_CONFIRM_WITH_MESSAGE"
IF lv_answer = 'N' . "e.g. If user wants to exit
lv_stop_transaction = 'X' .
EXIT .
*---else .
ELSE .
CONTINUE .
ENDIF .
ENDDO .
IF NOT lv_stop_transation IS INITIAL .
LEAVE TRANSACTION .
ENDIF .
You can also put a time-out limit for the DO-ENDDO logic.
By the way, please reward points for the posts you find helpful and close the thread if your problem is solved.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
How to display check box in atable control
hi
here is my requirement
how can i display check box in table control and also when i check that check box it has to dispaly one pop up screen with the records of table control row
points will be rewarded
Thanks&Regards
Nagesh.ParuchuriHi,
See this code for how to display check box in atable control
*---- Table declaration.
TABLES: KNA1.
CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 200.
CONTROLS TC2 TYPE TABLEVIEW USING SCREEN 300.
*---- Data declaration.
DATA:OKCODE LIKE SY-UCOMM.
DATA:V_KNA1 LIKE KNA1.
*DATA:ERROR TYPE C.
*---- Internal Table declaration.
DATA:BEGIN OF IT_TAB OCCURS 0,
CHK,
VBELN TYPE VBELN_VA,
KUNNR TYPE KUNAG,
ERDAT TYPE ERDAT,
AUDAT TYPE AUDAT,
VBTYP TYPE VBTYP,
END OF IT_TAB.
DATA:BEGIN OF IT_TAB1 OCCURS 0,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
MATNR TYPE MATNR,
MATWA TYPE MATWA,
PMATN TYPE PMATN,
END OF IT_TAB1.
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
OKCODE = SY-UCOMM.
CASE OKCODE.
WHEN 'DISP' OR SPACE.
SELECT *
FROM VBAK
INTO CORRESPONDING FIELDS OF TABLE IT_TAB
WHERE KUNNR = KNA1-KUNNR.
IF SY-SUBRC <> 0.
MESSAGE 'No sales document exists'(001) TYPE 'I'.
ENDIF.
LEAVE TO SCREEN 200.
CLEAR OKCODE.
*--- To leave Transaction
WHEN 'BACK' .
LEAVE PROGRAM.
CLEAR OKCODE.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module validate_kunnr INPUT
MODULE VALIDATE_KUNNR INPUT.
V_KNA1 = KNA1.
SELECT SINGLE *
FROM KNA1
WHERE KUNNR = KNA1-KUNNR.
*-----Process error condition
IF SY-SUBRC <> 0.
CLEAR KNA1.
KNA1-KUNNR = V_KNA1-KUNNR.
CASE OKCODE..
WHEN 'BACK' OR 'EXIT' .
LEAVE PROGRAM.
ENDCASE.
MESSAGE 'Customer Does Not Exist'(002) TYPE 'I'.
LEAVE TO SCREEN 100.
ENDIF.
ENDMODULE. " validate_kunnr INPUT
*& Module STATUS_0100 OUTPUT
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'PF'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0200 INPUT
MODULE USER_COMMAND_0200 INPUT.
CASE OKCODE.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 100.
CLEAR OKCODE.
CLEAR IT_TAB1.
WHEN 'DISP' .
CLEAR OKCODE.
READ TABLE IT_TAB WITH KEY CHK = 'X'.
IF SY-SUBRC = 0.
SELECT VBELN POSNR MATNR MATWA PMATN
FROM VBAP
INTO TABLE IT_TAB1
WHERE VBELN = IT_TAB-VBELN.
IF SY-SUBRC = 0.
SORT IT_TAB.
DESCRIBE TABLE IT_TAB LINES TC1-LINES.
LEAVE TO SCREEN 300.
ELSE.
MESSAGE E016(YBHV).
ENDIF.
ELSE.
MESSAGE 'Please select one record' TYPE 'I'.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module STATUS_0200 OUTPUT
MODULE STATUS_0200 OUTPUT.
SET PF-STATUS 'PF3'.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_C.OMMAND_0300 INPUT
text
MODULE USER_COMMAND_0300 INPUT.
SET PF-STATUS 'PF3'.
CASE OKCODE.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
CLEAR OKCODE.
LEAVE TO SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0300 INPUT
*& Module modify INPUT
MODULE MODIFY INPUT.
MODIFY IT_TAB INDEX TC1-CURRENT_LINE.
ENDMODULE. " modify INPUT
*& Module okcode OUTPUT
text
MODULE OKCODE OUTPUT.
CLEAR OKCODE.
ENDMODULE. " okcode OUTPUT
Reward Pointsa If usefull
Regards
Fareedas -
PR release procedure no longer working-error MEPO 822
I've raised a message previously regarding PR release problem. Now i've found something that need expert helps to clarify on this.
Situation :
One of my client(ABC) implemented release procedure for PR which is not assign to value limit. It is by document type. They had 2 document types; NB and RNB.
NB = NOT subject to release
RNB = SUBJECT to release.
So when they :
create a PR with document type RNB - it will goes for approval.
create a PR with document type NB - it will not go to approval.
It was working fine until after they created a new document type which copied from NB, called ZTP.
ZTP = NOT subject to release.
They did not touch anything on PR release configuration. However, the release has no longer working. Means, when they create PR with document type RNB, it will NOT go for approval as it suppose to. I've check in configuration, all are fine.
Findings:
I've created a PR, and go to ME45N to release it but system prompt me an error message
"Purchase requisition 10000066 cannot be released". I check on the message data, the error coming from MEPO, message number 822.
So i check in OSS and found a note which is similar to this case.
Note 939371 - Overall release PR using ME54N gives error MEPO 822
Link : https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=939371#Text
But my question is,is it also applied to ME51N and without external application as per my client's case?
Please anyone help.
Thanks.Hi guys!
Wants to share something. I had a problem to release my PR. When i want to release PR via ME54N, system give me error message "Purchase requisition 10000066 cannot be released". When i checked message data, it is coming from MEPO Messafe 822. So i asked SAP, they said this one is caused by different issue. Here's the reply from SAP.
Here's the reply from SAP :
Purchase requisition 10000066 cannot be released
Message no. MEPO822
Now click the other requisition button and let say
choose Purchase requisition 10000068,
Execute ME54N again:
Purchase requisition 10000068 cannot be released
Message no. MEPO822
Comment/explanation:
The log incidence seems not having problem with release
strategy as it was ok but it was the last PR was called
everytime ME54N was called. This same as it works in enjoy
transaction ME21N/ME22N or ME51N/ME52N.
For example, When using ME21n or ME22n to create or change PO,
after saving the PO. There are 2 ways to exit the transaction,
1, enter another T-code or use /n to exit directly.
2, use 'F3' or the 'green tick' to exit ME21n (or ME22n)
Then you can access ME23n to see the difference.
For the 1st way, ME23n won't display the last PO created in ME21n
For the 2nd way, ME23n will display the last PO just created!!!
Please see attached consulting note 595627 that explains a new
functionality as of release 470:
Due to performance problem, a decision had to be taken about the way to
use transactions. If you leave transaction ME21N/ME22N via the
exit button (F3), the expected PO will be displayed next time you use
these transactions. But if you quit abruptly (/nXXX) the PO number
won't be saved for the next transaction ME2?N.
As SAP note is the official document to explain system behavior,
this document is provided by SAP developement to explain this system
behavior to customers.
In your case, you had used ME54N and this was same as you use ME53N.
The last PO always display. You may try to view Purchase requisition
with release strategy, for example Release group R1, Rel. strategy
R1, then after this execute transaction ME54N again, the message
MEPO822 will not be there anymore.
Hope this will help you guys if you're having the same problem in future.
Thanks,
Crystal. -
'S' message in BDC and message of type 'A' in batch input session
We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"
But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.
what could be the reason for this?
Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.
if anyone has encountered a similar problem pls let us know how to resolve this asap.
Thanks,
SimmiDid your batch input end with save ( /11 ) or what ok_code are you using ?
-
Msg of type 'S' in BDC program and same msg of type 'A'
We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"
But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.
what could be the reason for this?
Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.
if anyone has encountered a similar problem pls let us know how to resolve this asap.
Thanks,
Simmihi,
one crucial point I remember by using enjoy tcodes for bdc is the change of field bukrs.
you must create one bdc-map for each company - program sth like this:
LOOP AT itab.
AT NEW bukrs.
IF bk ne itab-bukrs. "not for 1st bk
PERFORM open_btci_group USING map '00000000' 'X'.
ADD 1 TO cnt.
PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE' '=FURT'.
zeile = '01'.
PERFORM bdc_field_loop USING zeile 'SVALD-VALUE' itab-bukrs.
ENDIF.
ENDAT.
hope that helps -
What are the tools in performance Tunning in ABAP/4
Thanks Regards,
KumarHi kumar,
Tools provided for Performance Analysis
Following are the different tools provided by SAP for performance analysis of an ABAP object
Run time analysis transaction SE30
This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
SQL Trace transaction ST05
The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
how to perform sql trace:
Poorly written SQL statements have the greatest impact on application performance. An SQL
statement using which an Oracle database system reads and/or sorts thousands or even millions of
rows of data can bring the database to a standstill. Indexes should be used properly to prevent such
situations from occurring. To analyze such problems you should use the SQL Trace (TCode ST05) to
with database access operations.
CAUTION
Only one person can perform an SQL trace at a time. Remember to turn off the
trace when you are finished. SQL trace slows the system down.
1. Using SQL Trace
1. Open a program that you want to analyze, in the editor, so that it is ready and waiting to be
executed.
2. Open a new session using the menu path System Create session.
3. Run transaction ST05 (enter /nst05-zero-five, not oh-five in the Command field, or choose
the menu path System Utilities Performance Trace).
4. Then the initial screen of the test tool appears.
The status of the Performance Trace is displayed in the lower part of the screen. This status tells you
three things namely
Whether any of the Performance Traces are switched on
The users for whom Performance Trace is enabled
The user that switched the Performance Trace on
If the trace is switched on you must switch it off before you can proceed. There are two cases in
which the trace needs to be switched off. They are
If the trace was started within the past hour, it is possible that it is still being used. Contact the
indicated user or try again later
If the trace was started hours or days ago, the user probably left it on by mistake and it can be
safely turned off
To turn off the trace, press the Trace Off pushbutton.
5. The initial screen has various trace functions such as SQL Trace, Enqueue Trace, RFC
Trace
6. Select SQL Trace.
7. There are various options under which trace can be switched on. They are
If you want to switch on the trace under your user name, choose Trace on.
If you want to switch on the trace for another user or user group, choose Trace on for user.
To enter a single user, specify the user name.
To enter a user group, specify a search pattern (you can use the normal wildcards).
If you want to change the user or user group, switch off the Performance Trace and then restart it,
entering the new users or user group.
8. Now switch back to the window containing your editor session (the one with your program
waiting to be executed).
9. Press F8 to run your program.
Note Just press F8 and do nothing. Do not even press the Back button.
10. When your program has run and the hourglass is no longer displayed, switch back to the trace
window.
11. Press the Trace Off pushbutton.
12. Once Performance Trace is switched off, you can analyze the data
Using Runtime Analysis Tool (SE30)
1. You can open the Runtime Analysis tool as follows:
To start from Choose
Any screen System Utilities Runtime Analysis Execute
Initial screen of ABAP
Workbench
Test Runtime Analysis
Initial screen of ABAP Editor Program Execute Runtime Analysis
ABAP Editor Utilities More utilities Runtime Analysis
2. In the simplest case, you would enter a short description and a measurement object
(transaction, program, or function module) to run the analysis in the current session.
3. In the Measurement restrictions group box, you can make more specific restrictions for the
measurement. For example, you may want to include only certain statements or time periods.
(For further information refer section 3. 0).
4. To start the measurement, choose Measure runtime. From the initial screen, you can
specify whether the analysis should run in the same session or in a parallel session using the
Enable/Disable button in the In parallel session group box.
5. Run the transaction, program, or function module as normal.
6. Return to the initial screen of the Runtime Analysis transaction. To do so, either leave
transaction, program, or function module as normal, or start the runtime analysis again.
7. The name of the performance data file that has just been created is displayed at the bottom of
the initial screen. The file created by the system is added to the list of performance data files.
You can now analyze, print, or delete the file, or save it locally. The Performance file group
box contains options for analyzing performance files. (For further information refer sections 4.
0 and 5. 0)
regards,
keerthi
Maybe you are looking for
-
I have a Palm Vx on a Windows XPpro system. It was working fine and hot synching fine until about 2 months ago when a virus came in and I had tech guy reformatt the hd. He loaded desktop 6.2. I don't remember what version i had before it was reformat
-
Excel to QC export: formatting related query
Please provide a solution to retain formatting (boldness and underline) of the words when Test Cases are exported from excel to QC (I'm using an add-in to perform the export).
-
How to setup the system monitoring using sol man ?
Experts can any one advise me how to setup the below monitoing. Background jobs (SM50) - Long running jobs >24hrs Email/Fax transmission(SCOT) - alert if there is any failire/errors in the email transmission iDocs Processing(WE05)
-
Unable to see the DB Instance in MMC
Hi I am unable to see the DB instance in the MMC. I'm running on R/3 Enterprice. Please help me.
-
Ipad can't see videos on SDHC card
I recently bought a Samsung HMX-F90 video camera. My ipad can see the still pictures that i've taken but can't see the videos that I've taken when I put the SDHC card in my card reader.