Text comming many times
Hi,
I have Header text in function SD_SALESDOCUMENT_CREATE and it is comming many times based on number of line items. How can I make this come only once.
Thanks,
Neelu.
DESCRIBE TABLE gt2_zprice LINES lv_lines.
IF lv_lines = 1.
LOOP AT gt4_zprice INTO gs_zprice1.
AT NEW kunnr.
MOVE 'Y' TO lv_flg.
ENDAT.
IF lv_flg EQ 'Y'.
PERFORM headerdata.
CLEAR lv_flg.
ENDIF.
PERFORM itemdata.
APPEND gs_zprice1 TO gt3_zprice.
ENDLOOP.
PERFORM call_function.
PERFORM update_pricetable.
PERFORM errorcheckandcommit.
PERFORM displaydata.
CLEAR chbox.
CLEAR lv_lines.
ELSE.
REFRESH gt2_zprice.
CLEAR chbox.
EXIT.
ENDIF.
ENDCASE.
*& Form headerdata
* text
* --> p1 text
* <-- p2 text
FORM headerdata.
* header data
* Sales document type
header-doc_type = gs_zprice1-auart.
headerx-doc_type = 'X'.
* Sales organization
header-sales_org = gs_zprice1-vkorg.
headerx-sales_org = 'X'.
* Distribution channel
header-distr_chan = gs_zprice1-vtweg.
headerx-distr_chan = 'X'.
* Division
header-division = gs_zprice1-spart.
headerx-division = 'X'.
header-purch_no_c = gs_zprice1-bstkd.
headerx-purch_no_c = 'X'.
header-ord_reason = gs_zprice1-augru.
headerx-ord_reason = 'X'.
* header-ref_doc = gs_zprice1-xblnr.
* headerx-ref_doc = 'X'.
headerx-updateflag = 'I'.
ENDFORM. " headerdata
*& Form itemdata
* text
* --> p1 text
* <-- p2 text
FORM itemdata.
* Partner data
* Sold to
partner-partn_role = 'AG'.
partner-partn_numb = gs_zprice1-kunnr.
APPEND partner.
* ITEM DATA
itemx-updateflag = 'I'.
* Line item number.
item-itm_number = lv_itemno.
itemx-itm_number = 'X'.
* Material
item-material = gs_zprice1-matnr.
itemx-material = 'X'.
* Plant
item-plant = gs_zprice1-werks.
itemx-plant = 'X'.
* Quantity
item-target_qty = gs_zprice1-eohqty.
itemx-target_qty = 'X'.
APPEND item.
APPEND itemx.
*Fill schedule lines
lt_schedules_in-itm_number = lv_itemno.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = gs_zprice1-eohqty.
APPEND lt_schedules_in.
*Fill schedule line flags
lt_schedules_inx-itm_number = lv_itemno.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'I'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
*Conditions
lv_pprice = gs_zprice1-sprice - gs_zprice1-eprice.
conditions1-itm_number = lv_itemno.
conditions1-cond_type = 'ZCPP'.
conditions1-cond_value = lv_pprice.
conditions1-currency = 'USD'.
conditions1-cond_unit = 'EA'.
conditions1-cond_p_unt = 1.
APPEND conditions1.
*Texts
order_text-itm_number = '000000'.
order_text-text_id = '0001'.
order_text-langu = sy-langu.
order_text-text_line = gs_zprice1-xblnr.
APPEND order_text.
lv_itemno = lv_itemno + 10.
ENDFORM. " itemdata
Hi Neelu,
Can you paste your whole code.
and why you are checking this
IF lv_lines = 1.
Regards,
Atish
Similar Messages
-
For one week, they're getting the notifications many times, it happens with any application. It is very annoying. What should I do?. I tried restoring and still coming. My device is an iphone 4 with iOS 6.1.3
Arif,
Please see the docs referenced in (Master Note On Purchasing Document Approval Notifications [ID 1199603.1]), under "6. Notification Purging Issues" section.
Thanks,
Hussein -
Iphone doesn't make a sound alert when get texts many times
Has anyone else noticed that sometimes you get a sound alert that you got a text and many times you do not?
Hello, Nina1125.
Thank you for visiting Apple Support Communities.
I would make sure that you have a Text Tone set in Settings > Sounds. If your device is witched to silent Text Tones will not be audible.
iPhone Buttons
http://support.apple.com/kb/ta38625
Ringtones and vibrations
Cheers,
Jason H. -
Excel:
line of cellule with 3 different text. I want to count have many time a text come in the line... Thx for helping me, it is for my job!!Hopefully I am understanding your question.
A typical way to count how many times a word appears in a line of text in a cell is to substitute spaces for the word, one less space than the length of the word. Example:
A1 has the string "brown red brown green"
A2 =LEN(A1) - LEN(SUBSTITUTE(A1,"brown"," "))
"brown" has five letters so there are four spaces in the substitution text)
If you want to do several cells at once, counting the total number of times the word appears, concatenate the cells with a space between them
A1 and A2 have text in them
A3 =LEN(A1&" "&A2) - LEN(SUBSTITUTE(A1&" "&A2,"brown"," ")) -
I have finished a book in Aperture 3. When I press" buy book' a text comes up " empty text field detected in book" I have been through the book many times and can't find it. Can I over ride it? At this stage the book wants me to cancel
I have been through the book many times and can't find it. Can I over ride it? At this stage the book wants me to cancel
Sure, you can override the warning and press "Continue" instead.
But you said "you have been through the book many times" - have you checked the pages in Aperture's book view or have you checked the preview of the book? I'd look at least at at the "Preview" of the Book - after pressing "Continue" you will see the "Preview" button when the next panel is shown. Look carefully at the preview of the book, if any text is missing.
If you are sure that you like what you see in the preview and no empty textfields show, you can proceed to buy the book.
Regards
Léonie -
Hi,
My son foolishly pressed a single digit till it just filled the text box of the passcode. Now i dont know how many times he has pressed it. If I can know the charcter length, or how many digits can just fill the text box of passcode, I can unlock my ipad2. If anyone reading this has ipad2, he can do the same thing and count how many digits will just fill the text box. I will really appreciate the help.
ThanksYou can put the iPad into Recovery mode and Restore it. See this link and note the sentence commencing, 'If you restore from a different computer.... ' down near the bottom of the page.
http://support.apple.com/kb/HT1808 -
I turned off MMS today and suddenly all my text messages dissapeared from SMS 'inbox'. switched the iphone 4s on and off many times, nothing. If I search for an old text message by text I can see it, but it's not in the box of SMS
show this link to your friend http://support.apple.com/kb/ts5185
-
all of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any file or library that has anything to do with itunes except safari and quicktime are fine. im about to pull out whats left of my hair.
Okay, that's got one thing ruled out at least.
Can you check something for me, big? I'd like to see if iTunes launches with the Bonjour Service disabled.
In your Start menu, right-click Computer and select "Manage".
Expand "Services & Applications".
Open "Services". (Perhaps maximise the screen to better see what's going on.)
Right-click the Bonjour Service and select "Properties".
In the General tab, set the Startup type to "Disabled":
... and click OK.
Restart the PC and try launching iTunes. Does it open this time? -
i keep getting a message when i try to synch my iphone "This iphone cannot be used because the Apple Mobile Device service is not started" I have synched this phone with this computer many times before with no problems. Can anyone please shed any light on how to fix this? thx
See Here
http://support.apple.com/kb/TS1567 -
iTunes 10.6.0.40 will not open on Windows 7, no error messages come up. Have tried un-installing it and re-installing it many times. Please help.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If the advice above doesn't resolve things you could try this alternate version:
iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
Or roll back to the previous build:
iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
tt2 -
whenever i try to sync iphone5(version8.0.2) with itunes 12 on macbookpro.it appears cannot sync the purchased items on itune store. authorize your computer.i authorized it many times. but same response comes again to authorize.
If you are sure that you are authorizing the correct account/ID then:
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases -
I have about 140 email addresses in an address book, and I have sent emails using mail merge many times. Suddenly, this week, when I send out an email, I get all of them back marked undeliverable. Don't know why it suddenly won't send them. the only thing that looks odd is that in the "undeliverable" message, each email is given twice - example: [email protected]@gmail.com.
Can anyone help? Thanks.the mail merge add-on probably needs to be updated for the new version of Thunderbird as there have been behind the scenes changes in mail composition. I would suggest following the mail merge support process and emailing the author.
-
Since I downloaded the newest update, my phone only rings or makes text sounds about 10% of the time. It can be sitting in front of me and a call or text comes in. No sound, just a msg on the screen. Anyone out there having that problem? It's not a problem in the settings as I set the rings and tones I want. The rare one comes thru with sound. I never had any problems before update.
No, sounds like when you dropped it an cracked the screen it may have also damaged the logic board or the repair person damaged a cable.
-
Hi everyone, I updated my iphone 3gs to ios6. But, when it come to the activation screen, It showed up could not activate iphone because the activation server is temporarily unavailable. I tried to restore many times already but it still the same. Help me please! T-T
Please see the More Like This section on the right.
-
Also I've tried restarting my computer many times and it still says the same thing...
Anyone know how I can fix this?
Maybe you are looking for
-
How can i sync email deletions on my iPhone and iMac, and vice versa?
My email provider is Sky in the UK. While i am able to receive the same emails on both devices (imac and iphone) simultaneously, if I delete one on the iphone, it is not deleted on the iMac, and vice versa. I don't want to have to delete emails twice
-
How do i copy contacts from one apple id to another?
how do I copy contacts from one apple id to another?
-
How can I sort Library by name?
After migrating to iMovie 11 and having all my folders by year wiped out, I'm trying to figure out how to reorder my library so the events are in order by date. I don't think there is a way to make an iMove library sort by date (please tell me if wro
-
Hi, I am new to BPM. There is a requirement in our project where we shall have to do some processing whenever a particular task is claimed by a user. Is there any way in which I can achieve this? Thanks, Rahul
-
How to change title fade in imovie
does any one know how to change the tile fade time in imovie 10.0.3? Daz