Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a New Session from Search Help

former_member194669
Active Contributor
0 Kudos

All,

Your expert suggestion needed.

We have CJ20N and while creating the material components, we are using MAT1 search help. This search help has been extended and added a custom search help. that generate a new material number (based on some algorithm) if user used this search help. while generating the material number within this search help, we calling the MM01 using function module CC_CALL_TRANSACTION_NEW_TASK and creating a new MM01 session.

My question is calling of new session from search help is correct or not, is this will have impact ?

7 REPLIES 7

Former Member
0 Kudos

a®s

this is a odd requirement

see, in my mind few things to look for are:

-you are in one of the LUW. and you are jumping to another tcode, doing a update there, the LUW finishes. then you come back to your old screen.

-what all sub processes you have from MM01. if any.

- Do you have any enhancement on CJ20N which may get affected

0 Kudos

Soumyaprakash Mishra,

This is odd requirement. but business can save lot effort due to this.

From CJ20n Material components search help opening a new LUW for MM01 (once user finishes the MM01 or not finished user still work on CJ20N that session still open)

Enhancement in CJ20N , how this will affected if i call new session ?

Gautham

possibility of opening 2 CJ20N session, that will be an issue.

another issue i am seeing maximum number of session, if user already uses 6 session, now user goes in search help try to open a new session. then this will be an issue.

Keshav,

I cannot able to use BAPI creation of material

0 Kudos

a®s

I am not saying that its a bad requirement its something which you dont see often. i just wrote this code

PARAMETERS : p1 type char03.

at SELECTION-SCREEN on VALUE-REQUEST FOR p1.
  CALL FUNCTION 'CC_CALL_TRANSACTION_NEW_TASK'
    EXPORTING
      transaction             = 'MM01'
      skip_first_screen       = space.

this triggered MM01 on the same screen where my selection screen was present. so, i thought your requirement would also open on the same screen. hence i was talking about the LUW and the enhancements

0 Kudos

From CJ20n Material components search help opening a new LUW for MM01 (once user finishes the MM01 or not finished user still work on CJ20N that session still open)

I'll rather disable CJ20N, when the user is busy creating the material. For e.g., when you start the "new" debugger session the debugged session is disable(or, hangs?).

another issue i am seeing maximum number of session, if user already uses 6 session, now user goes in search help try to open a new session. then this will be an issue.

I don't see this as a showstopper You can adjust the corresponding profile parameter & your problem will be solved.

Actually this requirement is quite feasible. We all create transport "on-the-fly" if there are none available, don't we?

BR,

Suhas

0 Kudos

a@s,

what i feel now is you are calling the FM with by addition starting new task. right? you are switching to a new screen. if thats the case then yes, you dont have to worry about LUWs.

yes, number of sessions is a point of concern,

@Suhas(nice to see you after long time, well i was not in for long time).

changing the profile parameters is not a very good thing to do always , right? 😛

more over, TR creation doesnt take you to another user session. (does it!! i am not sure)

GauthamV
Active Contributor
0 Kudos

Are you taking care of locking mechanism while using this search help.

Just check the process in parallel by opening 2 CJ20N transactions and using custom search help in both.

Also check any enhancements implemented for CJ20N transaction are getting effected.

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

What if the MM01 creates a material and CJ20N Fails. Any situation like this in your business scenario ?

Why not a Bapi instead of call transaction to MM01 ?