Module function to add an unplanned characteristic in an inspection lot

I develop a program to copy an inspection lot and generate another lot with the same data.
Generate the new inspection lot is OK but when the initial inspection lot has an unplanned characteristic, the inspection lot generated does not have this unplanned characteristic.
Anybody can help me?
thanks

I have tested following for PI 7.0 and Xi 3.0:
public ModuleData process(ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
// create a second attachment for the receiver mail adapter
try {
// get the XI message from the environment
Message msg = (Message)
inputModuleData.getPrincipalData();
// create a new payload
TextPayload attachment = msg.createTextPayload();
// provide attributes and content for the new payload
attachment.setName("Attachment");
attachment.setContentType("text/plain");
attachment.setText("Hello World");
// add the new payload as attachment to the message
msg.addAttachment(attachment);
// provide the XI message for returning
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
// raise exception, when an error occurred
ModuleException me = new ModuleException(e);
throw me;
// return XI message
return inputModuleData;

Similar Messages

  • QM, Inspection Lot with Long-Term and Required Characteristic

    I want to know if it is possible to print a Certificate of Analysis (COA) with a required, long-term characteristic, if the inspection lot is using the special function "Short-Term Inspection Completed". And then a special Usage decision is made.
    Our dilemma is that we have materials that must be shipped for pre approval with a COA, before certain QM tests have been made, and we want to be able to print the COA, but the required flag stops us.
    So, what we really want is to require the characteristic if it is one usage decision and not require it if it is a special usage decision related to a "Short-Term Inspection Completed" inspection lot.
    We also, would prefer not to have multiple COA profiles to handle, this would cause too much extra data handling.
    Thanks,

    Hi,
    I If your Characteristic , whether it is short term or long term, is not marked as REQUIRED characteristic then there will be sure botheration for you to perform UD w\o performing the RR for them. It will prompt a message, which tends to be warning normally. But the characteristic is not REQUIRED and is OPTIONAL one then there will be no message , no botheration.
    But one thing is very clear that if you want to print the Result of some MIC or characteristic,
    then
    1. it must be recorded for the result.
    2. it must be maintained in the COA profile.
    At the other hand if you don't wish to print the result of some characteristic, whether it is short term or long term, don't keep it in the COA profile. System will not print it for you.
    Regards,
    Shyamal

  • How to add the required characterists and key figures to drill down report?

    hi,
    i am creating a drill down report using t.code FKI4. however i noticed that some of the characteristics and key figures required by me is not listed in the report catalog. how can i add the required characteristis and key figures to the report catalog?

    Hi Inna,
    Based on my research, a drilldown report is a layout design that at first hides complexity and enables the user to toggle conditionally hidden report items to control how much detail data they want to see. Drilldown reports are used to change the report
    layout interactively. So it wouldn’t affect the rows displayed in the outmost group. Though some rows are hidden when the report is initially run, it will still count them. This is by design.
    Furthermore, if I understand correctly, you also expect the outmost group is a dynamic group depends on the drilldown action, right? As per my understanding, this function still cannot be achieved at this moment.
    Thanks for your understanding.
    Regards,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Function to add Objects to transport piece list (CTS)

    Dear all,
    with function "TR_EXT_INSERT_IN_REQUEST" I can add objects to a transport request. Now I need to "fill" a piece list. The function module is not working for piece lists (documented).
    Does anybody please know a function to add objects to a piece list?
    Thanks and best regards for help.
    Roman

    Funny, German and English documentation is different:
    German:
    Kurztext
    Anhängen und Sperren von Objekten und Schlüsseln an eine Aufgabe
    Dieser Funktionsbaustein ist veraltet. Bitte verwendet Sie stattdessen
    TR_REQUEST_CHOICE für einen Transportanschluss oder
    TR_OBJECT_CHECK und TR_OBJECT_INSERT für die Änderungsaufzeichnung.
    Weitere Doku finden Sie bei diesen Bausteinen.
    This means: Do not use anymore instead use TR_OBJECT_CHECK  and TR_OBJECT_INSERT .
    Best regards
    Roman

  • Calling fortran module functions from c++

    I am compiling a Fortran module with the Sun Studio Fortran compiler. The functions from this module shall be called from a C++ program. I have a name mangling problem when trying to compile or link. Actually it seems that Fortran provides names like 'module.function_' as can be seen when using nm. Putting this definition into the extern "C" statement makes the C compiler stop. After some excessive googling I found the possible bind(C) function, but this is actually not a valid option since I have not written the Fortran module myself and the solution should be somewhat compatible to other x86 compilers (here: Intel, which works fine for the name mangling)
    What is now the best option to use the Fortran module in the C++ program using Sun Studio?
    Cheers,
    Sebastian
    Sun Fire E6900
    Sun Studio 12.1

    Sebastianm
    You do not have to change the calls; you only have to change the declarations of the function in the module to add bind(c,name="whatever). In addition, you will need to recompile the rest of the Fortran code that uses the module so that
    the new bind(C) names are used in calls.
    Adding a call to the module function for the above example:
    subroutine use_example
    use example
    call print_hello()
    end subroutine use_example
    % f90 -fast -c use_example.f
    % nm -og use_example.o
    use_example.o:
    [Index] Value Size Type Bind Other Shndx Name
    [24] |000000000000|000000000000|FUNC |GLOB |0 |UNDEF |Example_print_hello
    [23] |000000000000|000000000013|FUNC |GLOB |0 |2 |use_example_
    As you can see, the compiler generates a call to Example_print_hello for the call to the module function print_hello,
    as this is the name specified in the bind(c) for example.print_hello, i.e., bind(C, "Example_print_hello").
    If you do not want to change the module at all, you might have some luck with *elfedit* to change the external
    names after the .o is produced. I suspect that doing this is as much work as adding BIND(C) to the declarations.
    Good luck and please let me know if this works for you.
    Diane

  • How can i add a new characteristic to Sap standard InfoObject?

    Hi Experts,
    Please anyone let me know how can I add a new characteristic or a key figure into an SAP standard InfoObject in order to add it to the standard InfoCube? The situation is I would like to add region and business unit to the characteristics of the Industrial Hygiene and Safety. After that, I would like to add them to the InfoCube called Accidents: Person Involved [0EIH_C02] that is located in the MultiProvider called Accidents: Complete View [0EIH_MC01]. Is it feasible to do this way?
    I just learned the BW/BI, so please help me with this. I would really appreciate your responses.
    Thanks,
    -Napadol

    Hi Napadol,
    To add a attribute in a char:
    1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
    2) Activate the Object/Char
    3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
    4) Activate infocube.
    5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
    Regards,
    Kams

  • Problem to print Purchase Order created in RFC module function

    Hi
    I created a specific RFC function module for using in a BSP application. In this specific function module, I have created a Purchase Order (PO) thanks to the standard module "BAPI_PO_CREATE". The PO is well created but I don't manage to print immediately this PO but the spool is queued. Whereas using SE37, the PO is well created and printed.
    But the customer wants to find the PO immediately in the printer
    Do you know a simply way to solve my problem? I have the feeling that something is lost using RFC module function and the standard module function.
    Thank a lot of for your reply
    Regards
    Francois

    The issue may be because, its used in BSP application.
    may be you need to implement whats explained in this weblog.
    /people/thomas.jung3/blog/2005/08/23/bsp-server-side-printing-for-tableviews
    Regards
    Raja

  • With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or album.

    With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or even the album sort order (for example when adding 2 albums stored in a unique folder). Anyone has any ideas ? Been stumped for a while....!!!

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

  • Using modulation function in GarageBand '08

    I am creating a software instrument track using the Caribbean Steel Drum from one of the Apple Jam Packs. I am not using an external keyboard, I'm just doing it within GarageBand.
    When playing steel drums, you either hit the note singly with one stick, or you hold it by "rolling" the note like a drum roll. I have been frustrated for months because sometimes when I enter a note to be held (say, a 1/2 or whole note), it will roll when entered- but when I play it back, it won't. I have finally discovered in some documentation that the way to roll a note is by using the modulation function. However, nowhere do I see instructions on how to use it. What I want to do is go back and use that function to make the appropriate notes roll (usually not very many).
    Can I do this? If so, how EXACTLY? Is there a better way? Does '09 do it any better?

    Solved, despite Apple not being able to help me. To use modulation on the score, shift to advanced mode, select modulation and... wait for it... hold down the command key and click in the field at the beginning of the note- which you won't see in the field, but in the "piano roll" at the top of the window. Command-click again at the end. Drag the first dot to 100%, drag the 2nd one to 0%. Command-click on the lines that form to shape the modulation any way you want.

  • QM : is there any function module to find inspection lot characterstics

    Hi All,
            is there any function module to find all characterstics for an inspection lot.
    i need exact data which qe51n transaction is fetching .
    thanks in adv ,
    Varma

    Hi uvs,
    1. we can use the fm BAPI_INSPOPER_GETCHAR.
    regards,
    amit m.

  • PS Module: Function to Copy Standard Network

    Hi,
    Anybody knows of a function where I can copy values of a standard network in Project Systems module?

    I'm not a ABAPer but I'll suggest you to debug the program SAPLCOKO and look at the functional modules (Function groups) that are involved.
    Mentioned program belongs to Transaction CN41 -Create Network where you can create a network copying a standard network.
    Hope this helps!
    Regards
    Sreenivas
    Pls close the post if satisfied.

  • Downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    You could just disable updates. Change these settings in about:config.
    * app.update.auto - set to false
    * app.update.enabled - set to false
    You can still check for updates with the "Check for Updates" button in the About Firefox window, but it will download the update file anyway if there is an update available. You can also check which is the current release from here:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • Disabled property: enable two Application Module functions

    I am using jdeveloper 11.1.1.5 and problem I am facing is:
    I want to call two different Application Module functions on one button click. Button is existing on .jspx. For that purpose I have to use Disabled property of button to enable the Application Module functions. Please tell me how to enable both of the functions by using the Disabled property of button.
    Thanks,
    Regards
    Muddasar Amin

    Hi Ashwin,
    Is this the problem only with Application module methods? Can you try with managed bean methods?
    Also, do you have this commandButton enclosed within <af:form>/<af:subform> ?
    Regards,
    Ansh

  • BAPI or Module Function to retrieve PO attachment

    Hi,
    i want to retrieve and display the PO attachment list and PO attachment . I can retrieve all PO Informations(PO Header, , Item ,...), via table EKKO and EKPO but i couldn't retrieve and display PO attachment.
    The attachment is created via the ME22.
    Thanx

    duplicate of
    BAPI or Module Function to retrieve PO attachment

  • ABAP Unit for Function Module(Function Group)

    Hi, Gurus:
    Can we use ABAP Unit to test Function Module(Function Group).
    If can, give me a simple example. how to create methods. Thanks.
    Regards,

    I'm a little unclear about your question, Yunfa.
    Do you want to single-test a SE37 function-module? This can be easily done, just hit the F8 button, and it takes you to a single-test environment.
    Do you want to test an FM using an ABAP-program? This too is easy to do. To code the FM-call, there's a button called Pattern, in the standard SE38 screen, where you can put in your FM name, and it inserts the relevant code in your program.
    Note that if you're testing BAPIs using the single-test environment, the actual document posting will not happen, because that requires a BAPI_COMMIT_WORK call. So, the way to test BAPIs which post documents would be to write an SE38 program, which also calls the commit-bapi.
    Hope this answers your question!

Maybe you are looking for

  • Photos won't import a jpeg

    I stored a picture from an iMessage on my MacBook, then tried to drag it into Photos.  It told me that it was unreadable, that it may be an unrecognized file type or not contain valid data.  It also said "file "(a bunch of numbers, with a date)" coul

  • Networking imac with pc

    New iMac just want to know how? Thanks

  • Does the Z1 have manual exposure adjustment when recording videos?

    Looked all over the internet but can't find an answer to this question. When recording videos with the Z1, is it possible to manually increase the exposure by way of a slider (usually a range of -2 to +2)? I know there's an option to choose spot/cent

  • Sandard Smart Form output into PDF format.

    Hi to all, Any one please guide me, how  to convert  sandard Smart Form output into PDF format. Regards, Thanesh

  • Failed to Reload 4.5 Operating System

    Hello, I wiped out my blackberry curve 8310 and am having a problem to reload the OS. It show a white screen with an error 507. Whenever I use the application loader it brings this message:-  The blackberry desktop software does not have Blackberry D