New import parameter ATPCHECK to be added in func module - IMPACT?

Hi !
We are in the Realization phase of implementing SAP CRM, and also undercone a ECC 6.0 migration 3 months back. We are faced with the foll problem....
Whenever a reservation is to be created from the CRM system a functional module u2018'CRM_SRV_LOG_PROCESS_RSRV' is called in the ERP system. Within this functional module, another functional module u2018MB_RESERVATION_CREATE_INTERNALu2019 is called. It is this functional module which actually creates a reservation and performs ATP check.
In the ECC system a new import parameter ATPCHECK has been added in u2018MB_RESERVATION_CREATE_INTERNALu2019 functional module and this is not filled whereas in R/3 this parameter does not exist at all.
This parameter needs to hold a value X for ATP to happen in THE ECC system.
It is proposed to fix this problem by adding the parameter ATPCHECK with value X in the functional module 'CRM_SRV_LOG_PROCESS_RSRV' when 'MB_RESERVATION_CREATE_INTERNALu2019 is called.
We have not modified any function modules so far, hence would like to know...
1. Whether the proposed solution is correct?
2. What would be the imact (things to watch out for) while carrying out changes in the function module?
Would be grateful to get a reply.
Thanks & Regards,
Ajeetha.

Hello
I have referred to the systems ECC 6.0 and SAP 4.7. In SAP 4.7, function module MB_RESERVATION_CREATE_INTERNAL never had ATP check inbuilt. See below:
***************Start if Snap from 4.7*********************
FUNCTION mb_reservation_create_internal.
""Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(I_RKPF) LIKE  RKPF STRUCTURE  RKPF
*"     REFERENCE(TESTRUN) TYPE  BAPI2093_TEST OPTIONAL
*"  EXPORTING
*"     REFERENCE(RESERVATION) TYPE  BAPI2093_RES_KEY-RESERV_NO
*"  TABLES
*"      IT_RESB STRUCTURE  RESB
*"      PROFITABILITYSEGMENT STRUCTURE  BAPI_PROFITABILITY_SEGMENT
*"      RETURN STRUCTURE  BAPIRET2
comments:
- no availibility check*
- no field selection*
- no calender check*
***************End of Snap from 4.7*********************
This is additional functionality provided in ECC 6.0 by giving additional parameters:
***************Start if Snap from ECC6*********************
FUNCTION MB_RESERVATION_CREATE_INTERNAL.
""Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(I_RKPF) LIKE  RKPF STRUCTURE  RKPF
*"     REFERENCE(TESTRUN) TYPE  BAPI2093_TEST OPTIONAL
*"     REFERENCE(ATPCHECK) TYPE  BAPI2093_ATPCHECK OPTIONAL
*"     REFERENCE(CALCHECK) TYPE  BAPI2093_CALCHECK OPTIONAL
*"     REFERENCE(RESERVATION_EXTERNAL) TYPE  BAPI2093_RES_KEY-RESERV_NO
*"       OPTIONAL
*"  EXPORTING
*"     REFERENCE(RESERVATION) TYPE  BAPI2093_RES_KEY-RESERV_NO
*"  TABLES
*"      IT_RESB STRUCTURE  RESB
*"      PROFITABILITYSEGMENT STRUCTURE  BAPI_PROFITABILITY_SEGMENT
*"      RETURN STRUCTURE  BAPIRET2
***************End of Snap from ECC6*********************
So, I think there should not be any change which need to be made to these function modules.
Thanks
Amol Lohade

Similar Messages

  • Smartform import parameter

    Hello all, I've created a new smartform with a new import parameter called TOTAL_DATA, which contains several fields. TOTAL_DATA is defined in the smartform global settings>form interface tab as an import parameter. I thought this would make this parameter data available within all smartform nodes. TOTAL_DATA is not a table but a structure.
    I've inserted some TOTAL_DATA field references, e.g. &TOTAL_DATA-1_6&, into text nodes within a template node. The smartform compiles correctly but when I test the smartform I get error 'Reference field TOTAL_DATA-1_1 unknown in form'. I inserted the field using the smartform field list window click and drag.
    Is there something I need to do to make the import paramter data available in the text node.
    Any help much appreciated.
    Thanks, Inde

    Thanks Subramanian, that's solved my problem. My import parameter was referencing a DD structure with currency fields. The DD reference currency field was not passed to the smartform...hence the error.
    I've defined the DD reference currency field as a global parameter for the smartform which fixed my problem. I could pass this in as another import parameter which would also fix my problem.
    Many thanks for your help, Inde

  • I created my first movie using one long video (all photos) clip created in Keynote and imported to Imovie.  I added many music clips, some overlapping. I now want to lay down a new updated video clip, eliminate the original but retain the audio. Can I?

    I created my first movie using one long video (a montage of photos) clip created in Keynote and imported to Imovie.  I added many music clips, some overlapping. I now want to lay down a new updated video clip, eliminate the original video, but retain the audio. Can I?  And if so, how.  I cant seem to
    find the info anywhere in help.

    I would suggest that you go to iMovie/Preferences and make sure that Advanced Tools are enabled.
    Then, you can drag your new video clip on top of your old clip and a popup menu should appear. Choose REPLACE.

  • Adding Select-Option as an import parameter of the Fm

    Hi Abappers,
    I have to add Select-option variable in the import parameter of the function module.
    How should i do this?
    Please reply.
    Thanks and Regards,
    Rahul

    Create a import parameter of RSSELECT.
    this will give u the fields which are present in .. an selection option.

  • Import parameter is empty after an RFC call from BW to JCo

    I am calling a Java function (implemented using JCO and deployed on J2EE stack of the Portal box) from within a user-exit in BW (on a separate box) using RFC. The code in BW looks like:
    CALL FUNCTION 'Z_BW_VALIDATE_PROXY' DESTINATION 'ACF2PROXY'
        EXPORTING
            IREQUESTOR = 'AE012345'
            IREQUESTED = '012345'
        IMPORTING
            ERESULT = lv_result
        EXCEPTIONS
            SYSTEM_FAILURE = 1 message lv_rfc_mess
            COMMUNICATION_FAILURE = 2 message lv_rfc_mess.
    The following are working/setup correctly:
    1. RFC destination ACF2PROXY, in BW using transaction SM59;
    2. Java function 'Z_BW_VALIDATE_PROXY' , as the server log on the Portal(J2EE) shows the correct IMPORT and EXPORT parameters after processing a call from BW;
    The data types of the parameters in the function call above matches with those of the formal parameters in Java function where they are defined using JCO data types (export parameter is defined at CHAR 1 at both places).
    The problem is that I am not getting any value back in the IMPORT parameter 'lv_result'. I am expecting either '0' or '1' which is populated correctly in the Java function.
    Any insight is appreciated.

    The following is the code of the method in the class that inherits from JCO.Server. In this method the export parameter ERESULT is set with the value of variable 'result'. I thought it may be helpful to reporduce it here.
    protected void handleRequest(JCO.Function function) throws MMException
              if (function == null) {
                  LOGGER.logInfo("handleRequest - JCO.Function object is null.");
                   return;
              LOGGER.logDebug("handleRequest(" + function.getName() + ")");
              //process this function only, although I don't know what else would fall to this
              //server request method...
              if (function.getName().equalsIgnoreCase(ACF2Listener.ABAP_RFC_PROXY_FUNCTION)) {
                   //get input & output definitions from RFC. These are defined in the repository interface definition
                   JCO.ParameterList input = function.getImportParameterList();
                  JCO.ParameterList output = function.getExportParameterList();
                  LOGGER.logDebug("Received the following from ABAP: " + input.toString());
                  String requestor = input.getString("IREQUESTOR");
                  String requested = input.getString("IREQUESTED");
                  //call DAO to read ACF2 for these values
                  String result = null;
                  try {
                       ACF2DAO acf2 = ACF2DAO.getInstance();
                       if (acf2 != null) {
                            result = acf2.getACF2Delegation(requestor,requested);
                  catch (MMException e) {
                      LOGGER.logError("Exception occured during ACF2 DAO lookup: " + e.getMessage());
                      throw e;
                 output.setValue(result, "ERESULT");
                 LOGGER.logDebug("ACF2 Service Call returning: " + output.toString());
              else {
                   throw new JCO.AbapException("NOT_SUPPORTED","This service is not implemented by the ACF2 Proxy external server.");
    Thanks
    Sanjeev

  • Using Field-Symbols in a user exit to change the importing parameter

    Please don't ask why but I need to use a user exit, changing the importing parameter.  I decided that I could do this using field-symbols.
    Please excuse my ignorance but I have never used field symbols for something such as this.
    Here is my goal:  Loop through an internal table (im_document-item).  When I find what I need I want to make a change to this line (not so hard if I am looping into a field symbol) and also append a line to the end of the table im_document-item.
    I have the following so far:
      DATA: wa_item TYPE accit,
            wa_item_out type ACCIT_SUB.
    FIELD-SYMBOLS: <document> type acc_document,
                   <accit> TYPE ACCIT.
    LOOP AT im_document-item ASSIGNING <accit> where saknr = '0000211000'.
    * Modify the curent line
    wa_item = <accit>
    * Append a new line into table im_document-item.
    ENDLOOP.
    How can I use field-symbols to append a line to this table?  Please note that the table in question (im_document-item) is an importing only parameter.
    Regards,
    Davis

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

  • Add optional import parameter to an EXISTING Z function module.

    Hi Guys,
    I want to add an OPTIONAL IMPORT parameter. What are the things I need to take care to change and activate the FM, so that the changes does not effect the other programs calling this Z function module.
    Thanks,

    Adding one more point,
    While raising exceptions to your ootional parameter make sure that
    For example XINT is optioanl paramter then
    if NOT xint is initial.
       " then raise your exception
    endif.

  • How to enhance BADI and add import parameter

    Hai ABAP gurus,
    I am facing problem and i need your help to sort it out.
    My problem is i am using a standred BADI and implementing it.I want to enhance the standerd method ie i want to add one more import parameter,is it possible to enhance a standerd method?If so how to do it ?
    Please Suggest me?
    Thanks in Advance,
    Kiran

    Hi Kiran
    As Ajay mentioned, it is not possible to add a new parameter to the BAdI method interface. You can do this by a repair and it is not recommended.
    You must be contented with the interface BAdI method bestows. In fact, the developer of the program that the BAdI pertains should have designed it so that program flow can be provided rigorously.
    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>

  • New AppSet Parameter:CLR_COMMENTS_HISTORY,COMMENT_MAX_LENGTH

    Hello Forum,
    Have anyone used New AppSet Parameter:CLR_COMMENTS_HISTORY,COMMENT_MAX_LENGTH?
    I tested these parameter , but it didn't work in our AppSet environment.
    Thanx,
    Akiba, Yuta
    P.S. We are using BPC 7.0 SP04 for MS system on MS-SQL2005

    Not sure if you're still looking for an answer on this.  We are using v7M SP5 on SQL 2008 SP1 and are using the new parameters.  We have them set as follows:
    CLR_COMMENTS_HISTORY = 1 (options are 1 clear history and only show latest comment, or 0 keep history.  if you already have comments and you select option 1, it will purge all comment history from the comments tables)
    COMMENT_MAX_LENGTH = 1275 (we pull comments into excel and if you exceed this length the comment no longer will wrap within a cell and looks horrible.  The limit is 4000.  You can always increase the limit, but cannot reduce for obvious reasons).
    Haven't run into any issues so far.  I'm glad they added these in since it never made sense to have the comments limited to 255.  Hope that helps.

  • How to use import parameter to be instead of SQL where sub-sentence ?

    I wrote a RFC to read data from SAP table. To fetch data flexibility, I want to use import parameter xx instead of where sub-sentence in SQL sentence.
       For example, "SELECT * FROM T WHERE XXX",  and "XXX" is a importing parameter.
       How can I use it.
       Thanks a lot.
       Frank.

    FUNCTION ZRFC_04.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(TARGETTABLE) LIKE  MAKT-MAKTX
    *"     VALUE(TWHERE) LIKE  MAKT-MAKTX
    *"  EXPORTING
    *"     VALUE(ZRETURN) LIKE  MAKT-MAKTX
    *"  TABLES
    *"      TMP_TEST1 STRUCTURE  ZTEST1
      DATA:
      TRANSACTION_ID LIKE ARFCTID,
      V_VAILD(1) TYPE C,
      scond(80) TYPE c.
      V_VAILD = 'X'.
    GET PARAMETER twhere fields scond.
    The error " 'LATE FIELDS' expected, not 'TWHERE FIELDS' " generated.

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • Assigning a timestamp to an Import Parameter in eCATT

    I am trying to assign a value to an Import parameter that will be unique every time the eCATT script runs.  I have inserted a piece of Inline ABAP code that looks like this:
    ABAP.
       DATA: BEGIN of wa,
          time_stamp TYPE P,
       END OF wa.
       GET TIME STAMP FIELD wa-time_stamp.
       I_DATETIME = wa-time_stamp.
    END ABAP.
    This only assigns a time stamp to I_DATETIME is the parameter is type V.  Unfortunately, the script produces an error unless I_DATETIME is type I, however the Inline ABAP produces a syntax error when I_DATETIME is type I. 
    For example, when I_DATETIME is type V I see in my
    LOG I_DATETIME statement that the value 20050518200719 or something similar has been assigned to that parameter.  However, in the SAPGUI command interface where I deleted the original number value and replaced it with parameter I_DATETIME it reads: Value = I_DATETIME = '
    Why can't I use parameters of type I and V interchangeably in the script and Inline ABAP?  Is there an easier way to go about getting a time stamp or unique value for an Import Parameter?
    Message was edited by: Ben Weisberg

    Ben,
    there are two issues here:
    <b>Parameter visibility in inline ABAP</b>
    In inline ABAP, <b>only</b> local variables (visibilty V) can be used. The reason for this was to minimize the amount of data that has to be transferred to the target system of the script when the inline ABAP is generated.
    <b>Avoiding inline ABAP where possible</b>
    You said yourself that you suspect your approach is inefficient. I always tell people that inline ABAP can be fun, using the eCATT script language is better
    You can generate yourself a timestamp in eCATT like this:
    First, declare a parameter with type C. Since you are going to fill it in the script, there is no need for it to be an importing parameter - local variable (V) will do - let's call it V_TIMESTAMP.
    Fill the field using <b>either</b>
    V_TIMESTAMP = &DATE & &TIME
    <b>or</b>
    V_TIMESTAMP = sy-datum & sy-uzeit
    <i>What's the difference?</i>
    If you use the eCATT variables &DATE and &TIME, you will always get the date and time of the <b>current target system</b>. If you use the ABAP system fields sy-datum and sy-uzeit, you will always get the date and time of the <b>local eCATT system</b>. Obviously, if you are working locally in a system, these two sets of values will be the same. However, if you start working remotely - possibly against app servers in different time zones - you will have to decide which you want to use.

  • Import Parameter as Select Option for a FM in ECC 6.0

    Hi All,
    Can someone help me get the import parameter of a function module to be of the type select-options( the way it is used in reports) in ECC 6.0.
    Thanks for all your help in advance.
    Divya

    What I do is as following....
    I create two parameters...One for <b>START</b> and the other for <b>END</b>....Then, inside my FM I create a RANGE...
      DATA: BEGIN OF r_datum OCCURS 1,
            sign(1),
            option(2),
            low  TYPE vekp-vhilm,
            high TYPE vekp-vhilm,
            END OF r_datum.
    Passing the START to low and END to high....
    P.S: Don't forget to assign points to useful answers.
    Greetings,
    Blag.
    Message was edited by:
            Alvaro Tejada Galindo

  • JCA: how to find out that import parameter is structure?

    Hello,
    I'm using JCA to obtain import parameter of some function (com.sapportals.connector.metadata.functions.IParameter). Now, I'd like to switch program flow depend on kind of this import parameter (scalar, structure, table). Especially, I'm interested in finding out that import parameter is structure. In API I was only locate getStructure() method in IParameter. I tried to compare with null value, but it didn't solve my problem.
    Best Regards,
    Josef Motl

    I have come along this post so many times that now that I have solved it myself I will have to reply to it, even after 5 years.
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    //Now we want to read the output.
    //If we deal with a structure, we get an IRecord Object
    IRecord addressStructure = (IRecord) output.get("ADDRESS");
    //Otherwise we would get an IRecordSet Object (Field)
    I hope it will help all those searching as well.
    BR
    Sigi

  • What are the import parameter for FM SWE_EVENT_CREATE

    Hello all,
    I want to use the function module SWE_EVENT_CREATE in order to create an event in order to execute a process chain which is triggered by this event.
    Beside the EVENT I have also OBJTYPE and OBJKEY as import parameter, but I do not know what should I enter there.
    In the TA sm64 where I have created the event, I could not find any other information than the event name.
    Any ideas would be great.
    Best regards,
    Stefan from Munich/Germany

    Hello Stefan,
    for OBJTYPE and EVENT see table SWETYPECOU
    OBJKEY usually is an idoc-number (edidc-docnum)
    hope it will help
    Regards Thomas

Maybe you are looking for