Issue with if condition in smartform text elements

Hi all.
iam having a problem in smart forms
itab has 3 fields
id   matnr    werks
1 a p1
1 b p2
1 c p3
2 b l1
2 c l2
3 q u1
3 l u2
i neead output like in the smart form
-id = 1-
a p1
b p2
c p3
-id = 2-
b l1
c l2
-id = 3-
q u1
l u2
I have aloop in main window
itab into wa_itab.
then i have program lines
iam writing any perform statment insted iam write the code in here
input paramters wa_itab-id
output paramters id
i declared id type zabc-id under global data in global definations
CLEAR : ID.
ON CHANGE OF WA_itab-ID.
*BREAK point.
ID = WA_ITab-iD.
ENDON.
after the program lines i have a text
/: if &id& ne ' '.
---id = &id& ---
/: endif
&wa_itab-matnr&  &wa_itab-werks&
now i see the output
-id = 1-
a p1
-id=-  i don't need this (&id& has no value)
b p2
-id=-  i don't need this
c p3
-id = 2-
b l1
-id=-  i don't need this
c l2
-id = 3-
q u1
-id=-  i don't need this
l u2
I checked my code if two items have same id the id has no value and you can see the output also
but for some reason its still goinng into the if condition
And also is there away that i can debugg my text elements like in scripts. my break point doesn't take me to the text elements
Thanks

1. Move only the ID into one internal table say i_id,
2. Now in your smartform,  create a table and loop at i_id into wa_id.
3.Print your ID in a text, &wa_id-id&
3. Now in main area  of the table Create a loop with the internal table you mentioned above with 3 elements, say, i_data into wa_data  give CONDITION as wa_data-id = wa_id-id.
4. Print your other values &wa_data-matnr& &wa_data-werks&
5. outside main area, clear the work areas.
This should work fine as i use the same logic in one of my current developments!!!

Similar Messages

  • Issue with order or sequence of wbs elements appearance in planning layout

    Hi Experts
    we have an issue with order or sequence of wbs elements appearance in BPS planning layout.
    In BW - 0wbs element -  hierarchy order is as below
    1
    2
    3
    4
    5
    6
    7
    8
    but when we check the same wbs element in BPS planning layout, it appears as below
    1
    2
    3
    4
    6
    7
    5
    8
    Request you to advice how to correct the order.
    Best Regards
    krishna

    Hi,
    I came across a similar situation once. I dont remember exactly.
    We have two different DataSources on wbs hierarchy. The hiearchy was loaded using the two datasources.
    By mistake we were trying to use the hierarchy created by Datasource2, instead of hier created by datasource1.
    Can you check that.

  • Issues with Adobe PSE 12 and Premier Elements 12 plus DiskWarrior 4.4

    Since upgrading to the final version of OS X 10.10 Yoesemite I have issues with Adobe PSE 12 and Premier Elements 12 plus DiskWarrior 4.4. I don't recall their being any issues while I went through the Beta testing process.  The Adobe products (PSE and PE) give me a configuration message "error 16" and it tells me to uninstall and reinstall. I have done this a few times/  It seems to go through the whole install process until the startup where it crashes.  I downloaded PSE 11 and at least it starts up but I haven't used it to do anything.  Also DiskWarrior 4.4 does not load up from the hard drive anymore (error message) and when I boot it up from disk is doesn't give me the option of correcting permission when repairing files and folders.
    At lease all of otheother software including Photoshop Lightroom 5.6 seem to be working.
    Very sad

    Barbara,
    Yes, I accessed the "updates" menu from the Help pull-down menu.  I also accessed the updates using the Mac Terminal application with results shown in my original post.  Regardless of whether I used the Help menu or the Mac Terminal app, the AAM tool still responded with:
    Update Failed
       Updates could not be applied
       The error log file may help you in identifying the problem.  The, try updating again.  If the problems persist, contact customer support for further assistance.
      The error log file read as follows:
       Photoshop Camera Raw 8.5
       There was an error installing this update. Please quit and try again later. Error Code: U44M1I210
       Looking at the the output of the Mac Terminal app, it shows:
       ... hdiutil: attach failed - no mountable file systems
       Is this relevant?
    Regarding your follow-up message pointing to:
    Update 12.1 installation errors | Photoshop Elements, Premiere Elements,
    the files referenced in this link are present, are correctly named, and they are in the correct locations, so it would appear that these issues are not related to the ACR 8.5 update problem
    Thanks

  • I have an issue with pricing condition ZPRO (basic price )

    Hello gurus
    I have an issue with pricing condition ZPRO (basic price ).
    users created a sales order, and the basic price ZPRO which is mannual is added twice ,now i want to put a check so that condition tpye zpro is not accepted twice by the system. please let me know how can i restrict  system from accepting condition type zpro  twice during sales order.
    regds
    Edited by: sapuser09 on Jul 26, 2011 8:44 AM

    Hi,
    Solution for this is very simple. Don't make any changes to the sales order user exit. Use condition exclusion  for the condition type.
    Do customization in the following path of IMG
    Sales and distribution---- > Basic Functions--- > Pricing--
    > Condition exclusion -- > Condition exclusion for groups of conditions
    First  In Define condition exclusion groups you have to define condition exclusion group (ZXXX)
    Then  in Assign condition types to the exclusion groups you have to assign condition type to the exclusion group (ZXXX   ZPRO)
    Then in Maintain Condition exclusion for pricing procedures select the pricing procedure where you have the problem and click Exclusion box present in Dialog structure box
    You will be faced with Change view exclusion overview screen Click new entries
    You will be faced with New entries overview of added entries screen.
    Take serial no as 10 Condition exclusion procedure  as B (Best condition with in condition type) In the exclusion group1 add the exclusion group ZXXX.
    Save it and create order.
    In the order pricing you will again observe that ZPRO appearing twice but only one will be active.
    Changing user exit for this issue is not at all required and it must be only the last resort Try replicating the issue in your sand box system. As I had mentioned it will be picked twice but only one will be active.
    Hope this helps.
    Edited by: mokirala tilak on Aug 10, 2011 10:19 AM

  • Smartforms  text element alignments

    Hi Experts,
    In my text element in smartforms, I need to provide some fixed space between two columns as below.
       txt1                                   txt2
    123456.00                         $6789.0
    But if value in coulmn1  is nil,  then column2  goes to left i.e the alignment  is disturbed as below:
    txt1                        txt2
                             $67898.0
    I cannot put template as i need to provide page protection.
    Pls suggest.
    thanks
    Dan

    Hi,
    U define a paragraph format in SMARTSTYLES with 2 TABS, then print the variables (text1, text2) with that Paragraph format.
    Eg:
    P1  &text1&,,&text2&
    The 2 comma's respresent a TAB, by doing like above it will freeze the space for each variable.
    OR
    define a template, split into 2 columns...drop Text1 in column1, text2 in column2..
    Hope its clear
    Regards,
    Pavan

  • How can i give conditions in smartform text editor

    Hi all,
    i want to display something based on some condition using text element in smartforms , how can i do it.
    in SAP Scripts normally we give conditions in text element using command line(/:)
    but it wont work in smartforms , how can i give the same in smartforms ?
    please help me soon.
    thank you.

    Hi,
    You can use the Conditions tab for the corresponding text.
    ex: in the text-editor consider you are displaying a name field based on a variable
    <b>
    ws_name
    ws_variable</b>
    In the text give the field to be displayed
    &ws_name&
    In the conditions tab give
    ws_variable = 'X'
    This will print the value from ws_name only when ws_Variable = 'X'.
    Regards,
    Tushar

  • Serious Issue with "third party subscriptions" through text messages.

    Forgive me for perhaps sounding dramatic. After having this experience I nearly paid the fee to break my contract and quit on cell phones all together. If apple gets the iPhone to a point where no cellular carrier is neccessary I will be the first to join the party. I'm going to start trying this skype thing this weekend. Anyway, I digress, here's what happened. I get my bill from AT&T and there is a charge for download activity for $3.99. Not the end of the world but I call the number to find out what the charge is all about because I thought I had an unlimited data plan. Turns out AT&T calls it a third party subscription fee. I argued that if AT&T is charging it on my bill as far as I'm concerned I'm not concerned about the details, I hold AT&T responsable for what they put on my bill. According to AT&T's rep I recieved a text message asking me if I wished to subscribe to their service. I don't do the text thing so I never read any message like this. HERE'S THE KICKER - BECAUSE I DID NOT RESPOND TO THE TEXT TO SAY NO THANKS I WAS AUTOMATICLY ENTERED INTO AN ILLEGAL CONTRACT TO PAY $3.99 MONTHLY FOR A SERVICE I'M NOT EVEN AWARE OF. I was absolutly irate. The ramifications are astronomical. This means I could get a limitless unexpected bill. I look at it this way: If I had to write a letter, address an envelope, and lick a stamp every time I got an advertisement in my snailmailbox, I would never get out of the house and I would have to get on welfare to afford the stamps. To me there is an obvious legal precidence here. I realize that this has more to do with AT&T than Apple. I simply want to emplore Apple to save us from a world of disintigrating business ethic. Cellular providers have gotten completely out of control. When I feel like I need a lawyer just to call AT&T to discuss the inconsistency of my bill there is a serious problem. I feel like entering into a contract with a cellular provider endangers my financial stability in a fragile era. It just seems rediculous for a business to become so arogant that they can speak nonsense to a customer and we are put in a position to defend against such nonsense. Several of my friends have run into the same issue with text third party subscriptions. Last night at a dinner party three indicated that they finally had all the cellular provider crap they could take and they canceled their iPhone service and put it up on ebay. I love my iPhone, it is the most useful piece of technology I have ever had the pleasure to enjoy. That being said, I cannot justify, as a household provider with a family depending on me, taking the risk of financial ruin (a $3000+ cell phone bill could do just that) initiated by arogant buisiness practaces that resemble the oppression I have witnessed through 12 years of military service in places with an excess of sand. I think it is apauling. I believe the FCC and FTC need to be brought into this. I intend to submit formal complaints to both and would encourage others that feel like I do to do the same.

    Not to diss those trying to be helpful, but the do not call list has nothing to do with spam TXT messages sent from a computer, which is where the OP's problem probably began.
    If a third party sent this message and then signed the OP up for a service he did not want, this violates any number of consumer laws and can be addressed that way. It's unclear whether this is really an AT&T issue at all, absent any evidence that it is their message or their service. It sounds to me like the CS reps do not understand the problem and are giving the not-helpful generic answer about spam TXTs. A much better solution is to set the SMS filters using AT&T's web site.
    Similar scams work on landlines, where you can accidentally end up getting a huge charge on your phone bill for something that has nothing to do with the carrier.
    I'd call the state consumer protection department.
    -dan

  • Issue with Freight condition with scales

    HI Experts
    We have requirement like below.
    When customer send an order
    o     if the order contains materials for a minimum quantity the system should not apply freight condition
    o     if the order contains materials for less than minimum quantity the system should apply freight condition
    For example: sales condition freight has scale
         scale qty     unit     amount     unit
    From     0     PC     18,3     u20AC
         4     PC     0     u20AC
    e.g.1  customer send order that contain 9 PC, so system NOT apply freight condition
    material     quantity
    x1     1
    x2     1
    x3     2
    x4     5
    e.g.2  customer send order that contain 2 PC, so system apply freight condition
    material     quantity
    x1     1
    x2     1
    For this we have maintained Group condition and maintained scales up to 3 Order quantity 18 EUR . If order quantity is greater than 4 condition should not apply.
    But Now our issue is when ever Material determination is occurring in Order our condition is going to fail. For example  order quantity is 2 with TAPA item(parent item) and so substitute Item also 2 quantity (Tan item). In this case system is reading order quantity as 4 and our condition is 0. But actual quantity is 2 condition should apply in Order.
    Could you please suggest us where we can control this kind of scenario.
    Regards, Lakshmikanth

    Done through user exit

  • Issue with Mail not using rich text

    I'm using the Mail app on snow leopard and I can't seem to utilize the rich text functionality within the program. It is set to "Rich Text" via Preferences -> Composing but all my emails come in as plain text ("Content-Type: text/plain; charset="us-ascii").
    Can someone help me with this?

    So why does it have a default option to send as rich text then? Am I missing something?
    "Rich Text" doesn't really mean anything unless you select the font size, font face, color, etc. As you can see, there is no place to do that in the Composing preferences. You have to do that in the New Message pane, or there isn't anything "rich" to send. Mail's Font preferences apply to local display, not to composing.
    Mail has always behaved this way and the issue has been discussed dozens of times in these forums, because many people working in the Windows world want to have all their email sent out in rich text with a certain font and size by default. Mail lacks this feature, and there is no sign it will change, so some people switch to Entourage or Thunderbird.
    A possible workaround in Mail is to use an html signature and start your message in the first line of that. Or use stationery.

  • Issue with live playback while editing - Premiere Elements 10

    Hi there, It's been a while since I used Premiere, and decided that I would make a video. I've copied all of the media across and started editing the clip. I dragged the first clip onto the timeline and clicked the play button so I could find where I wanted to make the first cut. And there was no video, just a still frame from where the marker was. If I click the live playback area, it pauses the video and updates the still. I have tried updating the software to see if it was a bug that had been patched, but it's still there. I've never had this issue before, and would appreciate any help you guys could lend.
    Thanks in advance,
    -Chris.
    Extra info:
    OS: Windows 7 home premium 64 bit
    Premiere version 10.0 (20110902.mol11.b123.280463)
    Project settings [email protected] FPS, dslr preset in PAL
    I'm working with mp4 files from my gopro.

    I've been reading this with interest because I'm having the same issue since updating the nVidia drivers at the end of November.  There is a conflict that is NOT resolved by completely uninstalling and rolling the drivers back. 
    Previews just will not display in the monitor in Adobe Premiere Elements 11. Audio is fine.
    Clicking on the monitor window allows me to view the frame, and I can advance the frames one at a time and view them, but when I select 'Play' I just get a blank screen.    
    NOTE: SAME FILE AND SOFTWARE work fine on roommate's GTX550 with nVidia drivers from Jan 18 2013.
    I'm running NVIDIA GeForce GTS 240,
    Win7 64-Bit OS;
    2.93 gigahertz Intel Core i7 870;
    12 GB RAM;
    Board: Dell Inc. 0G3HR7 A00 Serial Number: ..CN736040BU01GG. Bus Clock: 133 megahertz
    BIOS: Dell Inc. A05 07/08/2010;
    ASUS VE276 [Monitor] (27.2"vis, s/n B1LMTF048504, January 2011).
    Up until the last driver update everything worked great. 

  • TS2755 Does anyone have an issue with sending youtube links via text message with ios7?

    I recently downloaded IOS 7 on my iphone 5. I cannot forward youtube links via text message. Does anyone have the same issue?

    Found the issue. It seems that IMessages requires area code as well for local phone numbers. I never had the area code for local phone numbers with IOS 5 and IOS 6. It always worked before.

  • Rounding Issue with Pricing Conditions

    Currently we have in place a pricing hierchery that consists of two pricing conditions.  ZP for base price and ZD for a +-differential.  Both conditions begin with 00.  ZP00. ZP01, ZP03, ZP04.  If a ZP01 exists it overrides a ZP00.  If a ZP03 exists it overrides ZP00,ZP01, etc.  So basically the higher the number means it overrides anything underneath it.  The ZD conditions are setup exactly the same way.  I am currently running into a round issue.  We settle all transactions in USD however the manual and differentials are often based on prices that go out more than 2 decimal places.  SAP is treating the calculation for the ZP and ZD as two separate calculations.  It rounds each of them and then combines for a total price.  So if the base price ZP02 is $2.245 multiplied by quantity 3,999 = $8,977.755  which it rounds to $8,977.76 and the differential ZD02 is $.0235 this = $93.9765 which it rounds to $93.98 for a total price of $9,071.74.  However if you add the ZD02 + the ZD02 you get a total unit price of $2.2685.  This multiplied times the quantity 3,999 = $9,071.731 which is correct.  But because SAP does each calc separately the price comes out to $9,071.74 or off 1CT.  I have seen various solutions on how to fix this from user exits to creating additional conditions that takes both ZP and ZD conditions and calculates them as one but I was hoping someone had come up with something better?  Or if there was a preferred method?

    Currently we have in place a pricing hierchery that consists of two pricing conditions.  ZP for base price and ZD for a +-differential.  Both conditions begin with 00.  ZP00. ZP01, ZP03, ZP04.  If a ZP01 exists it overrides a ZP00.  If a ZP03 exists it overrides ZP00,ZP01, etc.  So basically the higher the number means it overrides anything underneath it.  The ZD conditions are setup exactly the same way.  I am currently running into a round issue.  We settle all transactions in USD however the manual and differentials are often based on prices that go out more than 2 decimal places.  SAP is treating the calculation for the ZP and ZD as two separate calculations.  It rounds each of them and then combines for a total price.  So if the base price ZP02 is $2.245 multiplied by quantity 3,999 = $8,977.755  which it rounds to $8,977.76 and the differential ZD02 is $.0235 this = $93.9765 which it rounds to $93.98 for a total price of $9,071.74.  However if you add the ZD02 + the ZD02 you get a total unit price of $2.2685.  This multiplied times the quantity 3,999 = $9,071.731 which is correct.  But because SAP does each calc separately the price comes out to $9,071.74 or off 1CT.  I have seen various solutions on how to fix this from user exits to creating additional conditions that takes both ZP and ZD conditions and calculates them as one but I was hoping someone had come up with something better?  Or if there was a preferred method?

  • Issues with Forwarding a picture via text or sending from My Gallery.

    I have had my Droid Razzr Maxx for a couple of weeks.  It has never let me forward a picture that I receive in a text message nor will it let me forward a picture from my gallery anywhere but to Facebook.  It will say it is resizing the picture but it never finishes.  I can receive any size photo just fine.  I have tried adjusting every setting I am aware of but no change, could there be a defect in my phone?  My wife has the same phone and does not have any problems like this.

        Hello dstt1,
    Picture messaging is a great way to share memories with others! After all, it’s affordable compared to having pictures developed and it’s interactive! Now that I think of it, I LOVE picture messaging! May I ask do you know the original file size of the message that you are trying to forward? Also, what software and build version do you have on your Droid Razr? If you have any 3rd party messaging apps then I would recommend removing the app(s) and retest the forwarding feature. If this has never worked for you then I would suggest performing a hard reset on the device. Below is a link to the steps on how to do so.
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=49625
    Once you have completed the reset then there is tutorial on how to re-setup and reactivate your phone. Once you have completed the tutorial then please retest the forwarding feature with a new incoming picture message. Please post your findings as they may come in handy in the future.
    Thank you…
    ArnettH_VZW
    Follow us on Twitter @VZWSupport

  • Issue with join condition while using in the corelated sub query

    Bees,
    I am not able to use the below query since i have used a join condition in the corelated sub qery inline view.But i have a requirement like this . Please help me on this
    select * from dept d
    where exists (select 1 from (
    select deptno
    from emp where deptno= d.deptno)
    Thank you
    Boooo

    Hi,
    I've never seen a general solution for how to reference columns from main query a from sub-query c, where c is is sub-query of b, which is a sub-query of a.
    Whenever I've wanted to, I've been able to get the desired results with a different approach.
    In this case, you seem to want
    SELECT     *
    FROM     dept     d
    WHERE     EXISTS     (
              SELECT     1
              FROM     emp
              WHERE     deptno     = d.deptno
              );I'm guessing at your data and desired output.

  • Anyone having issues with iphone 5 having issues with screen freezing and cant text

    Screen is freezing, when texting it deletes the characters automatically as well

    Would it matter if others were?
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

Maybe you are looking for

  • Can I share an iphoto library on a hard drive

    Hi, I want to share pictures between two macs at home. Rather than have the iphoto library on one of the computers I was wondering if it's possible to share an iphoto library from my TimeCapsule hard drive. I've tried this but each time I launch the

  • Nokia Lumia 1520 - Screen Brightness Problem

    I  have two Nokia Lumia 1520. Both of them have the same problem. I will explain the problem to you in detail and before that let me assure you I am a Windows Phone long time user , have been part of the development , developed several apps for the p

  • How will get the source code of all the tables in a given schema using SQL?

    Hi All, How can we get the source code of all the tables in a given schema using SQL? Thanks in Adv. Junu

  • Credit card

    last night i  put my credit card and i was want to buy weapons bundle in the last of us remastered so i put in my funds 10 dollar but my wallet is 0 and i don't want to buy the weapons anymore so my question is if there is in my funds 10 dollar and i

  • I can not run corectly of youtube on mozila..and my idm was do not run on mozila too

    the view of youtube on mozila was soo big.. look like error.. i can not sett it for the original size.. i try too reinstall mozila, but i still can not make it.. honestly.. i more like to use mozila than chrome so , i hope, i can get a good result fo