FM Call within EXIT_SAPLEINM_002- INCLUDE ZXM06U02- Read Code

Hi,
Im calling FM RV_PRICE_PRINT_ITEM in EXIT_SAPLEINM_002 ( INCLUDE ZXM06U02). Please find part of code below:
DATA: tkomv type komv occurs 0 with header line,
      tkomvd type komvd occurs 0 with header line,
      tkomk type komk,
      tkomp type komp.
  WHEN 'E1EDP19'.
    LOOP at int_edidd into x_edidd.
      IF x_edidd-segnam = 'E1EDK01'.
        L_E1EDK01 = x_edidd-sdata.
        EXIT.
      ENDIF.
    ENDLOOP.
    L_E1EDP19 = int_edidd-sdata.
    IF L_E1EDP19-IDTNR <> '' AND L_E1EDP19-KTEXT <> '' .
      SELect single umrez into v_umrez from ekpo where ebeln = L_E1EDK01-BELNR
                                                 and matnr = L_E1EDP19-IDTNR.
      GET PARAMETER ID 'BSP' field bsp.
      CLEAR: tkomv,
             tkomvd.
      select single * from ekpo where ebeln = L_E1EDK01-BELNR
                               and ebelp = bsp.
      select single * from ekko where ebeln = L_E1EDK01-BELNR.
      tkomk-belnr =  ekko-ebeln.
      tkomk-mandt = ekko-mandt.
      tkomk-kalsm = ekko-kalsm.
      tkomk-kappl = 'M'.
      tkomk-waerk = ekko-waers.
      tkomk-knumv = ekko-knumv.
      tkomp-kposn = ekpo-ebelp.
   CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
    EXPORTING
     COMM_HEAD_I       = tkomk
     COMM_ITEM_I       = tkomp
      LANGUAGE          = 'E'
    IMPORTING
      COMM_HEAD_E       = tkomk
      COMM_ITEM_E       = tkomp
    TABLES
     TKOMV             = TKOMV
     TKOMVD            = TKOMVD.
   LOOP AT TKOMV.
   IF TKOMV-KSCHL = 'ZD05'.
          select single * into v_konp from konp where knumh = tkomv-knumh.
          kbetr = v_konp-kbetr / 10.
   ENDIF.
If I test FM RV_PRICE_PRINT_ITEM in SE37 with the values Im supplying, I was able to read data. But if its inside the exit, table TKOMV doesnt contain any entries.
Is there anything wrong with this?
Also, how do I debug this exit in IDOC_OUTPUT_ORDERS? I have setup EDI for this,  and Im just using me22n messages to output idoc.
Please help.
Thanks.
Kenny

Hi Kenny,
Check in debug mode whether export parameter tkomk and tkomp are populated.
You can debug from ME22N. after changing the PO, before you save it start debugging, ie., give '/h' in the command and then click save button.
Once you enter there, click settings, and enable update debugging, after that click breakpoints in the menubar, click breakpoint at, select function module.
In the pop-up you enter  "EXIT_SAPLEINM_002". then give F8.
It will stop you in the first screen of the exit.
Incase the control remains in std program after your F8, try repeating the above step, it will take you to the exit.
Hope this helps,
Regards,
Nidhya

Similar Messages

  • How can we make a external web service call within tjspSelfRegistrationTile

    Hello Gurus,
    Can anybody tell me how can we include a JAVA code within the tjspSelfRegistrationTiles.jsp page? so that we can make a external web service call which includes the logic of validating the UDF values?
    The requirement is to validate the value of a field provided by the user on the OIM self registration page. If the user has provided invalid value for that particular field then the user should not be able to register himself - an error message should be displayed. I have to compare the value provided by the user with some already hard coded ones within the JAVA code. If the value of the field is one of the hard-coded ones then only the user should be able to register himself.
    Any Response/ideas/concepts truly appreciated.
    TIA,
    - oidm.

    Have you ever tried something like this?
    1) Create an error message definition where error code starts with Adapter. for example, ADAPTER.Invalid_TemporaryAccess_Dates.
    2) Create an entity adapter and assigns it to the Request object, pre-insert;
    3) Logic of your adapter
    Tests if the REQ_OBJ_ACTION is Create Entity
    Performs your validations
    Handles an error the validation is not ok
    Thanks,
    Renato.

  • How to Include JAVA script code in SAP BI7 web Reporting?

    How to Include JAVA script code in SAP BI7 web Reporting?

    In nw2004s there is a new web item called "Script" web item which lets you add javascript code. When you add javascript code in this web item, you don't need the opening and closing <script> tags...
    Hope it Helps
    Chetan
    @CP..

  • Subsequent EJB server-calls within one Thread?

    Hi all,
    will all subsequent EJB calls within the server be executed within the same Thread? I didn't find an exact spec of this.
    The context is that i have remote and local stateless session beans and i want to share the timestamp at which the initial service call took place. So i thought about setting a ThreadLocal variable by an Interceptor and read this in every bean.
    Maybe there is a better way to do this?
    Thanks in advance,
    Andreas

    I'm not sure why you make each car a Thread when you later come along to create ActionThreads to do the work. It seems to me as if there is at least one Thread too many.
    Nonetheless, this peace of code is most likely not a good implementation of what you are trying to do:
    sleeping = true;
    while (sleeping) {
      try {
        car.sleep(0);
      catch (InterruptedException ex)  {}
    }The reasons being:
    You are working with several concurrent Threads acting upon the same Cars, the master Thread, the Cars themselves and the ActionThreads. So you will need some synchronization to ensure consistency. You are using none! If you were, a call to sleep() would block the monitor of your Car instance.
    You are using the while loop to implement busy waiting. A bad choice by itself, it might lock your VM totally if this Thread gets a high priority for some reason. What you actually want to use is a wait()-notify-pair jointly with proper synchronization.
    http://java.sun.com/docs/books/tutorial/essential/threads/multithreaded.html

  • XI - Call Adapter Error - HTTP client. Code 402 reason ICM_HTTP_TIMEOUT

    I am using HTTP adapter to post XML PO to vendor's site. We are having this problem with one of our vendor when PO's has more than 15 line items. XI server is getting error-"Call Adapter Error - HTTP client. Code 402 reason ICM_HTTP_TIMEOUT". Actually PO is posted good for the first time on vendor's site but XI is getting above error message and it keeps posting it again. Is there anyway to stop it otherthan manually stopping the XI message? Is there anyway to increase the wait time of the XI server to get the message.
    Thanks in advance.
    Mrudula Patel

    I'm getting the same issue "500 TIMEOUT error" in runtime work bench-->IE--->Test Message. When i manually trigger the file.
    The issue is basically from 01-01-2015 02:00 pm to 02-01-2015 01:am , File is picked from source ftp folder and places in archive but xml messages are not reflecting in SXMB_MONI.
    Today suddenly after 01:00 am messages are successfully processing.
    Please help on this issue. Many Thanks.

  • Using a var within an Include statement

    What syntax do I use in order to put a variable within an Include statement...
    <%@ include file="<%= varhere %>.htm" %>
    Thanks for any help!

    use
    <include>
    <param name=" something " value="34"/>
    </include>

  • Abandoned calls within SLA in WebView

    Dears,
    It is a UCCE system version 7.0
    We have the below issue :
    The agent report (By Agent : Agent 05) includes Abandoned calls .
    Can someone please verify if this inlcudes the abandoned calls within the Service level Agreement.   How can we view the abandoned calls for an agent excluding the Abandoned calls within SLA ??
    Thank you in advance

    Abandoned calls. The idea is that if someone calls your call center by mistake and hears the greeting and drops within (default) 5 seconds, you don't want to count that as an abandoned call. It makes the agents look bad and really doesn't add any value.
    That being said, some customers ask that this be set to zero. They want to track every call and count those short abandoned calls. Crazy stuff.
    The problem with short calls in ICM is it is a single global setting. It's set in System Information and is ICM-wise.
    I wish it could be applied on a call type, like the other settings. I have some international CVP deployments where the contact centers in each country have some autonomy and some want short calls, and others don't.
    I'd like to see Cisco expand this.
    Regards,
    Geoff

  • Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the pro

    Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the program and did a few profile building sessions, now it pops up each time I start the program, blocking me from using it. Help sure would be appreciated.
    Jay

    I looked at your post this morning and did not know enough to respond, other than to find out that links to iListen now go to newer, renamed software. Considering it's been nine hours with no response, I'm suspecting few people here have experience with that software. You could contact the current copmany that used to sell that package and see if they have any archived support info.
    BTW: please check you entry for "Mac OS" in your profile. It says iOS, which cannot run on an iMac. iOS is the system for phone and iPads but can't run on Mac computers. Do "About this Mac" from the Apple menu and see what it says about the OS version. Should look like this:
    If the "Processor" line says "Intel," you have a newer Mac than the old modles this forum covers; Intel iMac have their very own forum here:
    iMac (Intel)

  • How to call IAC Iview from WebDynpro java code

    Hi Team,
    I am tring to call IAC Iview from WebDynpro Java code. we are passing value but blank page  displayed and there is no error show on error log.
    Below is Java Code which i am calling.
      public void wdDoInit()
          try {
                String strURL = "portal_content/TestSRM/iView/TestSRM";                           //WDProtocolAdapter.getProtocolAdapter().getRequestParameter("application");
                 String random = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("random_code");     
                 //wdContext.currentContextElement().setRandomNumber(random);
    //below we are call URL           
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/TestSRM/iView/TestSRM?VAL="+random,WDPortalNavigationMode.SHOW_INPLACE,(String)null, (String)null,
                       WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String)null,(String)null, " ");
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    I am passing value from URL.
    http://<host Name>:<port>/webdynpro/resources/local/staruser/StarUser?random_code=111111111
    when we call above URL we getting blank screen.
    Regards
    Pankaj Kamble

    Hi Vinod,
    read this document (from pages 7 ).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
    In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
    It may be helpful for you.
    Best regards,
    Gianluca Barile

  • Include within an Include not loading?

    On a page I have an Include, within that include is another include. However, the include that is already in an include doesn't appear to load or render. I double checked the file paths and those are correct.
    Can I have an include within an include?

    I just realized I missed something, oops!. I have an include within an include working but the include within an include within an include isn't. So it is three deep: Include > Include > Include. I know content holders work that deep but includes?
    Didn't realize I was nesting them three deep until I followed the path.
    {%include "/_System/includes/sign-in-form.tpl"-%} <!-- First include on a page. -->
    <!-- HTML within include then next include. -->
    {%include "/_System/includes/signup-form.tpl"-%} <!-- This include works. -->
    <!-- HTML within include mentioned above then final include. -->
    {%include "/_System/includes/recaptcha-fix.tpl"-%} <!-- Final Include. -->

  • What is the correct way to call older version of Adober Reader?

    What is the correct way to call older version of Adober Reader? Specifically version 8? Acrobar Reader 8 or Adober Reader 8? Is is necessary to include "Reader"? We are creating a form and are adding instructions that it works with version 8 and newer. We want to make sure it is worded correctly!
    Thanks!
    Danielle

    When you "Save as" and you select the "compatibility with" for older versions, the document will be compatible with whatever version you choose, be it 4, 5, 6, 7, 8, or higher. If you want to "test it", you'll need a computer with Reader 8 installed, but I've never seen the "Save as" make something that was incompatible with the version it was saving for.

  • Service Call documents can't be read from B1 DI SERVER

    Dear All,
    Service Call documents can't be read from B1 DI SERVER using B1WS (wsdl) for service calls (OSCL) which has column/ field "IsEntitled" = "C".
    Based on REFDB.chm, SAP B1 Technical Documentation, field IsEntitled can only be filled  by two values:
    "C" = Valid contract exist
    and
    "N" = No
    But ... in wsdl B1WS file, ServiceCallService.wsdl only allows "Y" and "N" values. The XML is as below:
         <s:element minOccurs="0" name="EntitledforService">
                  <s:simpleType>
                    <s:restriction base="s:string">
                      <s:enumeration value="tNO" />
                      <s:enumeration value="tYES" />
                    </s:restriction>
                  </s:simpleType>
                </s:element>
    Consequently, Service Call which has IsEntitled value "N"  CAN be read because tNO means "N" ("N" and "N" are equal). Coversely, "C" CAN NOT be read because tYES means "Y" ("C" and "Y" are not equal).
    We looked at the DI Server log, the problem occurs when DI Server receives getByParam commands which retrieve service call with "C" value on its IsEntitled field. So, the problem happens when we read from the DI Server, not when we update the service call. (the error message is Invalid valid value 'C' in Enum 'BoYesNoEnum', the valid values are 'N', 'Y')
    The log is as follow:
    <?xml version='1.0' ?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope">
      <S:Header>
        <MsgHeader xmlns="http://www.sap.com/SBO/DIS" xmlns:ns2="ServiceCallsService">
          <SessionID>4FD32D48-47B0-4ECB-9E23-0DE4A5576CDE</SessionID>
          <ServiceName>ServiceCallsService</ServiceName>
        </MsgHeader>
      </S:Header>
      <S:Body>
        <ns2:GetByParams xmlns="http://www.sap.com/SBO/DIS" xmlns:ns2="ServiceCallsService">
          <ServiceCallParams>
            <ServiceCallID>52</ServiceCallID>
          </ServiceCallParams>
        </ns2:GetByParams>
      </S:Body>
    </S:Envelope>
    08/07/2011  14:31:40  Response (Fault)
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Body>
        <env:Fault>
          <env:Code>
            <env:Value>env:Sender</env:Value>
            <env:Subcode>
              <env:Value>-1013</env:Value>
            </env:Subcode>
          </env:Code>
          <env:Reason>
            <env:Text xml:lang="en">Invalid valid value 'C' in Enum 'BoYesNoEnum', the valid values are 'N', 'Y'</env:Text>
          </env:Reason>
          <env:Detail>
            <Service>ServiceCallsService</Service>
            <Command>GetByParams</Command>
            <SessionID>4FD32D48-47B0-4ECB-9E23-0DE4A5576CDE</SessionID>
          </env:Detail>
        </env:Fault>
      </env:Body>
    </env:Envelope>
    Any solution?
    Edited by: Alfa Ryano Yohanis on Jul 8, 2011 3:02 PM

    Hi Alfa
    I am experiencing the exact same issue as described above.
    Did you solve it? And if so, how?
    Thank You,
    Marco Muller

  • Help: Calling C++ method in Java source code?

    I found a method very useful, but it is written in C++, really hate to translate it into Java. My questions are:
    1. Is it possible to call it in my java source code?
    2. If so, how to call the C++ method in my Java program?

    To answer your first question, yes it is possible to call your C++ method from Java. There are several answers to your second question, however. You can use the raw procedural JNI and code your own layer that maps your Java proxy object instances to C++ peer instances. Another option is to generate the code for that mapping automatically. How? Download JNI++ (http://jnipp.sf.net or http://www.sf.net/projects/jnipp). JNI++ is a free, open-source toolkit that makes easy work of bi-directional Java <---> C++ integration -- it will even generate your makefile. Comes complete with a 100-page printable PDF User Guide and plenty of examples to get you started.
    Good luck with your project.
    I found a method very useful, but it is written in
    C++, really hate to translate it into Java. My
    questions are:
    1. Is it possible to call it in my java source code?
    2. If so, how to call the C++ method in my Java
    program?

  • Does each query template call within a repeater re-create the connection?

    Version:  11.5.1.b57
    Hi,
    How exactly does query template calls from a BLS work?  Does each call re-create the connection to the database, or does the connection stay open for awhile?
    Specifically, in my situation we are making query template calls to a database within a repeater loop to insert rows and I'm curious whether it is recreating the connection each time.  We can't insert all the rows at once because of JDBC limitations, so have to insert row by row.  We are reading the data from an xml file and then inserting the data into the database and the performance seems slower than I would have expected (even inserting row by row).  Currently it is taking around ~4m to insert ~2600 records into the database.
    I thought one of two things would be causing the slow speed.
    1.  XMII is recreating the DataBase connection for each query template call
    2.  The repeat reading from the XML document is time-consuming as 11.5 BLS XML manipulation is slow.
    Thanks for the help.
    Kerby

    Hi Kerby,
    It will  recreate connection eachtime.
    You need to use the repeater action block to insert all the rows.If you wont use repeater,it will insert only one row.
    2600 records inserting into database means you will get performance issue because eachtime it will recreate the connection.
    To avoid the performance issue you need to do the following things:
    1) you schedule the transaction in backend.It will insert the records in the database table.
    2) If you want to populate the data in front end , write a query using that table and make a grid.
    It wont create any performance issue.Always big transactions we need to schedule in backend to avoid the performance issue.
    Hope this will help you.
    Thanks,
    Manisha

  • Calling a VB Script and Matlab code from LabVIEW GUI.

    Hi,
    Can anyone help me out in Calling a VB Script and Matlab code from LabVIEW GUI? GUI will be developed in Labview and currently we have some scripts written in VB and Matlab and we need to incorporate the same through LabVIEW. Can anyone let me know how this can be implemented? 
    Regards,
    Sharmash

    For VBScript you can call the Windows Scripting Host application using the System Exec function, or you can use IScriptControl, which is an ActiveX control. Be aware that with the IScriptControl there's a small bug. You can read more about it in this post.
    For Matlab, there's a Matlab node that you can use. You can either copy and past your Matlab script in the node, or just write a function call statement. The node simply calls Matlab. Or, you can do as suggested and use the MathScript node, which is basically an alternative to Matlab. The MatchScript node doesn't support everything that Matlab does, so you will need to check it against your script.
    Or, you can do as suggested, and rewrite it all in LabVIEW, unless you can't because these scripts are used by other applications.

Maybe you are looking for