Explanation regarding terms and code

hi
     i am new to webdynpro for java, i cant understant the terms used in the below coding.
1. wdcontext
2. iwdmessagemanager
etc, can any one explain me in detail wats happening in the below code.
Request_SendEmail requestMO = wdContext.currentRequest_SendEmailElement().modelObject();
requestMO.wdSetInvocationLogEnabled( logger.beDebug() ? true : false);
try {
// call Email Web Service and update dependent // model node 'Response'
wdContext.currentRequest_SendEmailElement() .modelObject().execute();
wdContext.nodeResponse().invalidate();
BigDecimal returnCode =
wdContext.currentSendEmailResponseElement().getReturnCode();
String msg = "Email Web Service returned " + returnCode.toString();
if (returnCode.intValue() == 0) {
msgMgr.reportSuccess("Your email was successfully sent (" + msg + ")!");
} else {
msgMgr.reportWarning(
"Your email was not successfully sent (" + msg + ")!");
} catch (CMIException ex) {
msgMgr.reportException(ex.getLocalizedMessage(), true);
this.logWSInvocation(requestMO, ex);
//@@end
thanks in advance
rick

Hi ricky,
According to ur program
context is a virtual memory it is used to store value of the ui element.
iwdmessagemanager is used to print some error messages from message pool(or)if we want to know the values we can use that as print statemant like (Sys.out.print) in java(report success is used for that)
//creating model object for Request_SendEmail
Request_SendEmail requestMO = wdContext.currentRequest_SendEmailElement().modelObject();
//ur checking beDebug()method is true or false according to that InvocationLogEnabled value is set.
requestMO.wdSetInvocationLogEnabled( logger.beDebug() ? true : false);
try {
// call Email Web Service and update dependent // model node 'Response'
//here ur executing the model so that the values r initilized.
wdContext.currentRequest_SendEmailElement() .modelObject().execute();
//invalidate() is used to clear the values.that is ur clearing the response node values.
wdContext.nodeResponse().invalidate();
//here ur accessing SendEmailResponse ReturnCode that is to be stored as  BigDecimal type.
BigDecimal returnCode =
wdContext.currentSendEmailResponseElement().getReturnCode();
//ur adding returnCode value to the string
String msg = "Email Web Service returned " + returnCode.toString();
//According to the return code ur printing messages whether it is successful or not.
if (returnCode.intValue() == 0) {
msgMgr.reportSuccess("Your email was successfully sent (" + msg + ")!");
} else {
msgMgr.reportWarning(
"Your email was not successfully sent (" + msg + ")!");
} catch (CMIException ex) {
msgMgr.reportException(ex.getLocalizedMessage(), true);
this.logWSInvocation(requestMO, ex);
//@@end

Similar Messages

  • Why redeeming a code is so complicated? We need valid reason and explanation to get and satisfied on what we paid for. Make things easy, not messy.

    Why redeeming a code is so complicated? We need valid reason and explanation to get and satisfied on what we paid for. Be user-friendly to make it easy not messy.

    I did that link you refer to me (manually and using camera). But still nothing happens, always prompted "not properly activated" or "invalid code". And i did follow the instructions how to send an issue/problems/case regarding itunes card code query.
    My apology dude.
    I did change country/region, itunes store country, apple id, but still prompting FAILURE "The Gift Certificate or Prepaid Card you entered has not been properly activated." Does it mean it needs to activate by Apple Inc. before i can use it? If that's the case, everytime i buy an itunes card, i need to go Apple Support? Is that so?
    Please help me dude regarding this matter, i know you're well knowledgeable about apple systems.
    Thanks in advance.

  • I use a Macbook Air. I should have selected ''remind me later'' but accepted the terms and conditions. Now I can't activate my Creative Cloud Student package. Could Adobe re-activate my Install code? It says i already used it.

    I use a Macbook Air. I should have selected ''remind me later'' but accepted the terms and conditions. Now I can't activate my Creative Cloud Student package. Could Adobe re-activate my Install code? It says i already used it.

    Linemijnv19982937 I am sorry that you are facing problems activating your membership.  Do you receive any specific error messages?  For information regarding the activation process please see Activation & deactivation help - http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html.

  • I just made an new Itunes account and cannot get past the accepting terms and conditons page to use the Itunes store how can i finish and redeem my code

    I cannot use Itunes store to redeem my gift card because it says that my apple id has not been used in the Itunes store yet.  When I click review i then clicked continue and everytime that I agree to the terms and policies on the second page it just sends me back to the top of the page and doesnt allow me to go any farther in the itunes store process any idea of how to get this to work?

    Have you done as the message tells you and contacted iTunes Support ? If not (these are user-to-user forums) :
    - go to http://www.apple.com/support/itunes/ww
    - click on your country's flag
    - click on the Contact Support at the bottom of the left-hand column
    - click on Contact iTunes Store Support on the right-hand side of the page
    - then Purchases, Billing & Redemption

  • TS1702 I just redeemed my code to download a movie into iTunes and after it downloaded now it doesn't go past the terms and conditions and to watching my downloaded movie...

    Can anyone help me get past the terms and conditions?

    If you are seeing the Ts & Cs link in the Downloads tab in the iPad's iTunes app then that just means that you don't have any outstanding/queued downloads - your film should have downloaded into the Videos app (iTunes on the iPad is just the iTunes store) :

  • Payment terms and Baseline date deact. during posting

    Is it possible to deactivate fields: Payment terms and Baseline date in FB60 and MIRO so that the user can't change them? Terms of payment are defined in Vendor Master Data and shouldn't be changed during posting.

    Hi,
    You can use Screen Variants using T.Code  SHD0 . You can make certain field as display only. You can use the help of your abapers......
    Assign points if found useful
    Regards,
    R.Ramakrishnaraj

  • Payment Terms and Discount

    Hi,
    Can some one tell how it works the payment terms and discount.
    I have one Payment Term with 30 days, 3% Discount, 60 days 1% discount 90 days not discount.
    When I book and invoice say on 20th-Apr-09 and gives baseline date same as invoice date as 20th-Apr-09. and calculate tax on net amount.
    Say for Example
    Net value is                    : 1000
    Tax @19% in Net Value  :   190
    Total AR is                    :  1190
    So when I give the above payment term and do it enter  it calculate 3% discount immediately and show 5.70 in Bal amount in red color and if I enter 1190 - 5.70 = 1,184.30 then Bal turns in green color which indicates its correct. And when I see the Line item of Tax Cod it shows Base amount as 970 and Tax amount as 184.30.
    I don't know how the discount is calculating at time of invoice. because it has to calculate at the time of Incoming Payment. Because Customer may or may not pay within 30 days.
    So can some one let me know how to correct it.
    Regards,
    Kiran.

    Hi kiran,
    Goto TCode: OBY6 and double click your company code.
    Deselect the Check boxes: "Discount Base is net value" and also the check box "Tax base is net value".
    Hope this helps you....
    Regards,
    Sreekanth....

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • Payment term and incoterm in PO

    Hi Expert,
    Last time i am able to create PO with Blank payment term and put"N/A" in incoterm field,but now i unable to do so on the same vendor.
    The system will require me to fill in.
    May i know what is the possiblity that cause this?Where can i check the configuration?
    Thanks.

    hi friend,
    Use the SPRO t-code for the configuration
    and follows the path
    >>Material Management
    >>Purchasing
    >>Purchase Order
    >>Define Screen Layout at Document Level
    in that you have to select the ME21N t-code for and enter
    than you will found the many datas related to po fields, in that you will have to your entry optional and save it.
    rewards if helpful to you.
    regards,
    rajesh

  • Payment terms and delivery terms

    Dear SAP Gurus,
    How to create new payment terms and delivery terms in Materials Management module and what are the settings required/integration with FICO mudule.Please guide me.
    Thanks and regards
    Mahesh

    Dear,
    Payment terms: (In MM side attached with Vendor Master)
    The payment terms represent the typical agreements you have with your customers and vendors. Therefore, you do not have to define this information from scratch for each customer and vendor.
    When a purchasing or sales document is entered for a vendor or customer, SAP Business One automatically copies the information on the payment period, price list, and total discount in the document. This information is used, to calculate the prices for the items, the due date of an invoice, or the total discount allowed etc.
    You can also change the payment term data manually in the transaction itself if a special agreement was made for that transaction. In addition, the information on the credit limit is copied from the payment term to the customer master record and then to the sales document, and can be used for a credit check.
    For the complete process of payment terms visit: http://help.sap.com/saphelp_sbo2004a/helpdata/en/c7/583e38404780498ef3d08b1fa076cb/content.htm
    Delivery terms : In the MM prospective delivery terms generally indicates the status of material delivery. For ex. Goods Must be packed well for protection / Proper handling instructions must be labelled on each pack / Net weight & Gross weight should be mentioned on pack / International Maritime Dangerous goods code should be printed on pack in case of Dangerous goods transported by sea / Like wise similar instructions for Air transport for Dangerous goods / All technical names should be printed and attached on cover of pack / the packs must be perfectly packed with water protection and palletised  like wise the terms of delivery we set to the suppliers of materials.
    Regards,
    Syed Hussain.

  • Unable to print all the terms and conditions pages in the PO.

    Reqt: The PO includes terms and conditions as the last page.
    Currently the program only prints out the first page of the Terms and Conditions regardless if it is one or two pages.
    Only one page(image) is displaying in the last page of smartform.
    These terms and conditions pages are passing as graphics(images), We are passing the GRAPHICS under the TABLES Main Area in LAST page WINDOW.
    But only one page (image) is displaying, but not others.
    Can anyone help to solve the above issue.
    Regards,
    Kishore

    you can create your terms n condition texts in SO10(standard text). THEN
    If u r using smartform then do this:
    goto the general attributes of a text element. From the drop down menu, convert the text type to include text.
    The just as in read_text fm pass the parameters
    text name, text object, text id and language.
    Every thing will be handled automatically
    AND if its a sap script then:
    To include the contents of another text into the current text, use the INCLUDE control command. SAPscript still treats the text to be included as a separate text. The text is copied over only at the point at which the output is formatted.
    Thus the use of the INCLUDE command always ensures that the most current version of a text is included into the output, since the text is not read and inserted until the output is formatted.
    Syntax:
    /: INCLUDE name OBJECT o ID i LANGUAGE l PARAGRAPH p
    NEW-PARAGRAPH np
    You must specify the name of the text to be inserted. It can be up to 70 characters long. If the name of the text contains spaces, then you must enclose it in quotes as a literal value. You can, alternatively, specify the name via a symbol. All remaining parameters in the INCLUDE command are optional. If an optional parameter is not specified, then SAPscript uses default values as applicable for the calling environment.
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'
    The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.
    Optional parameters:
    u2022 LANGUAGE
    If this parameter is not specified, then the language of the calling text or the form language are used for the text to be included. If the language is specified, then the text will be fetched in this language, regardless of the language of the calling text.
    u2022 PARAGRAPH
    The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.
    u2022 NEW-PARAGRAPH
    The first line of the text to be included will be given this format indicator, as long as it is not a comment or command line. If the optional PARAGRAPH parameter (see above) is not specified, then all *-paragraphs of the included text will also be formatted using the paragraph specified in the NEW-PARAGRAPH command.
    u2022 OBJECT
    In order to completely specify a text, information about the text object is also required. There are a number of restrictions and other rules that depend on the object type of the calling text:
    o Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).
    o In the case of a document text (DOKU object), you can include only document texts. This object type is also assumed if no object is specified in this environment.
    o Only hypertexts and document texts can be included in a hypertext (DSYS object). If the OBJECT parameter is missing, then DSYS is used as the default value.
    o In the other kinds of text you can include only standard texts (TEXT object), document texts or hypertexts. If there is no specification, then the default object is TEXT.
    u2022 ID
    The text ID is a part of the text key, which permits further text objects within a given object. If no ID is specified, then the default include ID is used from the TTXID table for the calling text. If there is no entry in this table, then the text ID of the calling text is used.
    The following consistency check is applied both to the ID and the object:
    u2022 All text IDs are allowed in a form.
    u2022 In document texts, only document texts may be included that have text IDs TX (general texts) or UO (authorization objects) and also other document texts with the same text ID as the calling document text.
    u2022 In DSYS texts, all DSYS texts can be included, whatever ID they have. Document texts to be included must have one of the IDs TX or UO.
    u2022 Into the other texts, standard texts with any allowable text ID, DSYS texts with all IDs, and document texts with the IDs TX and UO can be included.
    The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
    u2022 0: the text include was successful.
    u2022 1: the command could not be executed because it contained syntax errors.
    u2022 2: the rules governing the text to be included were not followed (see above).
    This value cannot occur if the command is used in a SAPscript form.
    u2022 4: the specified text could not be found.
    Once you define the standard text in SO10 you can include text by the above process or use the function module read_text:
    .............IN Smartform.......
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    id =
    language =
    name =
    object =
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    tables
    lines = i_tab
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8
    So you want to know how get the parametrs right. This is how"
    In SO10 goto goto menu -> header
    here u will find all the required parametrs.
    The text lines will be returned in the i_tab.
    U can loop at this itab and display the data.
    Reward points if hepful.

  • Consignment Inventory at the G/L level (Terms and Consignment)

    Is it possible to break out finish good inventory by Terms and Consignment on the balance sheet?
    134000      Finished Goods (Terms)
    135000      Finished Goods (Consignment)
    136000      Raw Materials
    137000      WIP
    I've talked to 3 FI consultant and 1 MM consultant and they all say it is not possible.  Has anyone done this before?
    Thank you,

    Hi Neetu,
    When you select Item level G/L in the Item Master, the G/L Accounts determination for Revenue, COGS, Inventory, etc are taken as defined in the Inventory data tab, on the Warehouse row line. (If you do not see the G/L account, you could from Form settings enable them)
    Once you set the G/L at Item level you have the flexibility to change the G/L accounts for a particular item.
    Here is a brief explanation:
    Set G/L Accounts by u2013 Use the drop down menu to select the required method by which you would like to set the G/L accounts connected to your items:
    1. WH u2013 The G/L accounts defined in the Define Warehouse window, located under Administration --> Definitions --> Inventory --> Define Warehouses --> Accounting tab page.
    2. Item Group u2013 The G/L accounts defined in the Define Item Groups window, located under Administration --> Definitions --> Inventory --> Define Item Groups --> Accounting tab page.
    3. Item Level u2013 Select this method in order to define G/L accounts for each item manually via Inventory --> Item Master Data --> Inventory Data tab page.
    Please go through the documentation :
    https://websmp106.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000371280&_OBJECT=011000358700005050492004E&_SCENARIO=01100035870000000183&
    Also, refer to the following thread:
    Inventory Data
    Regards,
    Jitin

  • Question regarding MM and FI integration

    Hi Experts
    I have a question regarding MM and FI integration
    Is the transaction Key in OMJJ is same as OBYC transaction key?
    If yes, then why canu2019t I see transaction Key BSX in Movement type 101?
    Thanks

    No, they are not the same.  The movement type transaction (OMJJ) links the account key and account modifier to a specific movement types.  Transaction code (OBYC) contains the account assignments for all material document postings, whether they are movement type dependent or not.  Account key BSX is not movement type dependent.  Instead, BSX is dependent on the valuation class of the material, so it won't show in OMJJ.
    thanks,

  • Question regarding Dashboard and column prompt

    My question regarding Dashboard and column prompt:
    1) Dashboard prompt usually work with only for columns which are in subject area. In my report I've created some of the columns which are based on other columns. Like I've daysNumber column that is based on two other columns, as it calculates the difference of two dates. When I create dashboard prompt I can't find this column there. I need to make a prompt on this column.
    2)For one of the column I've only two values 1 and 0. When I create prompt for this column, is it possible that in drop down list It shows 'Yes' for 1 and 'No' for 0 and still filter the request??

    Hi Toony,...
    I think there was another way of doing this...
    In the dashboard prompt go to Show option > select SQL Results from dropdown.
    There you need to write your Logical SQL like...
    SELECT CASE WHEN 1=0 THEN PERIODS.YEAR ELSE difference of date functionality END FROM SubjectAreaName
    Here.. Periods.Year is the column which is already exists in repository's presentation layer..
    and difference of date functionality is the code or formula of column which you want to show in drop-down...
    Also write the CASE WHEN 1=0 THEN PERIODS.YEAR ELSE difference of date functionality END code in fx of that prompt.
    I think it helps you in doing this..
    Just check and inform me if it works...
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Oct 31, 2008 9:35 AM

  • How to add Terms and Conditions in Standard PO XSL-FO template

    Hi all,
    I want to add terms and conditions in PO_STANDARD_XSLFO template....
    anyone has idea how to do it...
    In the template one place is given to add Terms and Conditions, but i am not able to use it.....
    Regards
    Ravi

    You are not getting my question Vicha... I am explaining you.....
    For POrelated work....
    Like SQL,PL/SQL file we keep it in PO_TOP/SQL directory
    Shell Scripts file in PO_TOP/bin directory
    RDF in PO_TOP/report...directory
    Now i am confused here that we have to keep this Terms and Condition file in specific directory under PO_TOP
    OR
    we can keep it anywhere on Server in any directory.
    Regards
    Ravi

Maybe you are looking for

  • Safari and Chrome Hogging Memory to Play Video

    Safari and Chrome Start to hog up most of the processor. the videos start out of but after a while the proccessor jumps up to 100% then make the video out of sync with th audio. The Audio will play fine. Once it starts The Processor will cycle up and

  • IDM request grouping issue

    Hi All, We have designed our landscape to provision to SAP systems via GRC. IDM is sending add/remove role request to GRC via VDS-GRC web service but request is not properly grouped and logged in GRC. Here is the example: There are two positions name

  • Google Chrome freezes after being launched (w/ Yosemite software)?

    After installing OS Yosemite on my iMac, I've learned that my Google Chrome (which is my main internet browser of choice) has been freezing periodically. This hasn't happened prior to the Yosemite download. The freeze only happens upon launching chro

  • Hoe can u get purchasing invoiced amounts in the invoiced currency...

    which SAP report I can use to get the purchasing invoiced amounts in the invoiced currency...

  • WFM 8.5 Import data from Third-party ACD (AVAYA)

    Hello, Currently working on an installation that involves going from Avaya solution to full Cisco (CUCM,UCCX,WFM,QM). I'm new to WFM. Question: Can WFM import or use historical data that is exported from the Avaya ACD? It would be nice to use the exi