Using SAVE_TEXT in VF01 for item texts
Hi guys,
A colleague wants to save an item text in the billing process (VF01 transaction). As you should know, there is no billing document number yet when we are creating the invoice using that transaction. He is programming at RV60AFZZ include, FORM userexit_save_document_prepare. This is his try:
LOOP AT xvbrp.
CONCATENATE xvbrp-vbeln xvbrp-posnr INTO lw_thead-tdname.
* CONCATENATE c_objectname xvbrp-posnr INTO lw_thead-tdname.
lw_thead-tdid = 'ZZZZ'.
lw_thead-tdobject = 'VBBP'.
lw_thead-tdspras = 'E'.
lw_thead-tdfuser = sy-uname.
lw_thead-tdfdate = sy-datum.
lw_thead-tdftime = sy-uzeit.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = lw_thead
savemode_direct = 'X'
TABLES
lines = t_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = lw_thead-tdobject
NAME = lw_thead-tdname
ID = lw_thead-tdid
LANGUAGE = lw_thead-tdspras
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0.
ENDIF.
CLEAR: lw_thead-tdname.
ENDIF.
ENDLOOP.
But he is not saving the text, we dont know why. Constant c_objectname has been defined so:
c_objectname TYPE vbeln_vf VALUE 'XXXXXXXXXX'.
But without success... We saw XXXXXXXXXX000010 as tdname in debugger... Do you know if the issue is the TDNAME field? What should be a correct value for LW_THEAD-TDNAME? We know the item position but not the billing document number yet, where can we get correct tdname?... or did he fail in some other point?
Thank you!
Hi guys,
one of my workmates got the answer. I share that: there is a user exit call '001' in the include LV60AB07 (FORM XVBRK_KIDNO_FILL). The FM for that user exit is EXIT_SAPLV60A_001 (Billing User Exit. Processing KIDNO (Payment Reference Number)). My friend put code logic inside the include of that FM (ZXVVFU09). We used that because there the structure XVBRK already has value for the field VBELN (the number of the billing document) and we can use SAVE_TEXT and COMMIT_TEXT there without problem, concatenating billing number and item in the header. I am not sure if the billing document already was created at this point, but worked fine for us. Thanks anyway!
Similar Messages
-
Use dot matrix printers for printing text reports in Reports 10g
In Forms 6i, customers had the option to use dot matrix printers for printing text reports.
I believe, from 9i onwards, text based reports aren’t supported and instead HTML/PDF,DOC,RTF reports are supported which are not text based and use modern day printers.
Is it still possible to use text printers ??
Regards,
Nomanhi
check out the following link.
Re: Is printing to generic text printer and hand-coding the report possible?
http://download.oracle.com/docs/html/B10314_01/pbr_uxprt.htm#1005700
sarah -
How do you make mobile numbers the default number used in your contacts for sending text?
How do you make mobile numbers the default number used in your contacts for sending text?
Go to your contacts, find the contact that you wish to text, hit 'edit', and move that contact's numbers around until the mobile number is at the top. Arduous I know, but it works. Now when you go to text that person, the mobile number should be the default.
Best. -
Hi Gurus,
Could you please tell which report (transaction) gives the item text details with respect to PO ??
regards
SubbuI dont think there is any standard report for the same. You can however go for an ABAP development :
After entering the item text , save the PO , then go to the PO in display mode and double click on that Text. A new screen will open up for PO text. There in Header Menu select : Goto-> Header . There you will find the text ID and the Text Object which you can pass to tables STXH and STXL and get the texts.
Raviraj -
User exit or badi for item text in mir7 transaction
Hi Gurus,
Please provide me suitable user exit or enhancement or badi for this requirement.
client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
Please provide me suitable user exit or enhancement or BADI for this.
Thanks A lot in Advance.
With Regards,
Radhakrishna.Hi RadhaKrishna,
You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
Method 1:
Go to Tranaction: SE24.
open class CL_EXITHANDLER
Open the method " GetInstance"
Put Break point in the statement
call method cl_exithandler=>get_class_name_by_interface
Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
Method 2:
find the Package name and go to the tranaction SE84.
Enter the package name
inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
for your reference I am sending you the list of BADI present in MIRO transaction.
ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI -------------- BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 --------------- posting of gr
MB_CIN_MM07MFB7 ---------------- BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY ------------Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI --------------BAdIs when Creating a Material Document
MB_DOCUMENT_UPDATE -----------BADI when updating material document: MSEG and MKPF
MB_MIGO_BADI --------------------- BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI ----------------BAdI in MIGO for Changing Item Data
MB_RESERVATION_BADI --------------MB21/MB22: Check and Complete Dialog Data
Thanks,
Chidanand -
Sales Order Exit For Item Texts
Hello all,
I am having a very wierd issue with sales orders.
I am creating an exit to redeterming item category of line item via the item usage field.
The item usage field is a user defined field on the "Additional Data B" in the Sales Order.
In MV45AFZZ, I am able to set the item category after the item usage is entered.
Now the Item text nodes in the "Texts" tab at line item level depend on the item category.
Thus item category ABCD has text T1 T2 & T3 assigned to it
while item category EFGH has text T1 & T5 Assigned.
My issue is that when the item category is changed from ABCD to EFGH, if one goes to the "Texts" Tab at line item level, the nodes shown are the same as those for item category ABCD.
I cant find any exit to redetermine the text sequence.
I tried USEREXIT_MOVE_FIELD_TO_TVCOM_I & TVCOM_H but they dont seem to work.
I would really be very grateful for any help/ideas on how to get this resolved.
Many Thanks,
PreetHello,
Actually I dont need to either rename the text or change the contents (please correct me if wrong).
Basically if PSTYV (itm_cat) = ABCD then text id's
0001 Desc1
0002 Desc2
0003 Desc3
0004 Desc4
are shown.
If PSTYV = 'EFGH' then text id's
ID Node Description
0001 Desc1
0006 Desc6
0008 Desc8
are to be shown ( this is what I want ).
However right now if I change Item category from ABCD to EFGH then the nodes on the "Text Tab are
0001 Desc1
0002 No Description Shown
0003 No Description Shown
0004 No Description Shown
0006 Desc6
0008 Desc8
I cant get a screenshot which would probably explain it better.
In short is there any way of not displaying specific test-id's in the long texts for line items.
I realise its a Friday here but any help will be deeply ..deeply appreciated.
Many Thanks,
Preet -
Stop it from using photo black ink for black text printing and where has the color ink gone?
My HP Photosmart Prem C310 series all in one is using the Black Photo ink cartridge for text printing instead of the XL Black that I put in it for text printing. How can I get it to use the right cartridge for printing? Also, even though I have NOT printed ANY photo's and very few pages of text the new set of color cartridges I put in it a few months ago are almost empty. Why? How could they be almost empty when I have NOT printed anything in color? This is getting ridiculous replacing ink cartridges every few months WHEN I HAVE NOT BEEN PRINTING ANYTHING!!!
The set of ink cartridges that came with it lasted for several months. Since then I've gone through two sets in less than a year. That's 3 sets of ink cartridges when I have only printed 3 photo's when I first set it up. And have only used les than a 1/4 of one package of printing paper. I've only put paper in it twice. Each time it was about a 1/4 inch or 3/8 of an inch thick stack of paper in the tray. I've even tried shutting the printer down when its not being used for a long period of time but the ink is still disapearing. Where is it going? Why is it going there? How do I stop it? This is rediculous. I may as well junk the thing even though it still works because I cant aford to keep feeding it ink when its just sitting there doing nothing most of the time.
Thank you
This question was solved.
View Solution.I just got another email from HP about this problem wanting to know what I found for a solution to this problem. From all of the suggestions from the HP tec support all of them pretty much kept saying the same thing. That it is my fault that it's using so much ink because I have it on the wrong settings. One tec did slip and say that it doesn't matter what settings you have it on it will always use the Photo Black cartridge for printing plain black text and it doesn't matter if you have a X-Large Black cartridge in it for text printing because it was made to always use the Photo Black for text and even use some of the colors to blend with the black to make it stand out. Why anybody would need this when just printing shipping labels and things like that I don't know.
Any who, The only solution for this problem is,,,, junk the printer and get a different brand & model of printer. Research it before buying to find out how much ink it wants to waste and if it will still print black text if it only has a black cartridge in it. I was going to get rid of mine by giving it to a friend since they don't have a printer. But since I want to keep him as a friend I decided not to give it to him. Since it cant be traded in for a different one even though it still works, Its going to the target shooting range the next time I go out shooting. Maybe I'll take a few video's clips of it getting blasted to pieces with a Ruger 10-22 .22 cal. rifle with 25 shot clips, a Ruger Mini-14 Ranch Rifle shooting .223 cal with a 30 shot clip, a Chinese SKS 7.62 with a 30 shot clip. And maybe use my Ruger P89 9mm pistol and put a couple 15 round clips of 9mm in it. If there's anything left I'll finish it off with a few 3" magnum loads of #2 steel shot with my 20 gauge shotgun. Then I think I'll do the same thing to my Westinghouse 46" flat screen HDTV that just died.
Then maybe I'll come back and post the video's of my "solution to this printers problem". It may not fix the problem, but it will be an entertaining way of getting rid of the problem. -
Hi,
I want to know the table name from which i can fetch the item text which is shown in ME23N transaction.
Thanks & regards
RKHi,
F04 --> Delivery
F01 --> Item Text
F02 --> Info rec POText
F03 --> Material PO Text
F05 --> Info Record Note
otherwise check for table TTXID.
aRs -
TEXT_ID for Item Text of Purchase Order
Hi,
i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
Transaction ME23, Item / Texts / Text overview.
I tried with
data:
lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
lw_TEXT-PO_NUMBER = '4400001659'.
lw_TEXT-PO_ITEM = '00001'.
lw_TEXT-TEXT_ID = '0001'.
lw_TEXT-TEXT_FORM = '* '.
lw_TEXT-TEXT_LINE = 'strike'.
append lw_text to BBP_POTEXTITEM.
and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
How can i find out the right TEXT_ID?Hello Udo,
I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
In my case I have to write some values in BAPI_POTEXTITEM. However, it seems that the badi is not saving the data. At least I cannot see the text values in ME23N, Item / Texts.
Would you give me an advice ?
Thank you !
best regards,
Diego -
BAPI_REQUISITION_CREATE for item text
hi,
I am using BAPI_REQUISITION_CREATE for pr creation.
I give multiple line items as input for REQUISITION_ITEMS,
For each line item i enter the text entries in REQUISITION_ITEM_TEXT by using the text id as B01, B02,.. i am able to seperate the item_text,item_note.. ,
My requirement is :For mutliple line items iam not able to seperate the requistion_item_text. It is getting appended to all the line items..
How will i seperate the text item wise?
Kind Regards
AlfredHi,
follow instructions of OSS note 420331
<b>Reward points</b>
Regarsd -
Can´t use backspace in Safari for deleting text!?!
In Safari i cant seem to be able to delete entrys with the backspace button.
I can only delete text when using shift+backspace.
Anyone experincing the same???
Backspace works perfectly in Firefox and any other programme. Im using a MBA ultimo 2010.Try deleting the cache associated with Safari ...
Open the Finder. From the Finder menu bar click Go > Go to Folder
Type or copy/paste: ~/Library/Caches/com.apple.Safari
Click Go then move the Cache.db file from the com.apple.Safari folder to the Trash.
Quit and relaunch Safari to test. -
Upload item text for FI document using BAPI_ACC_DOCUMENT_POST
Hi,
I need to upload FI document posting using BAPI_ACC_DOCUMENT_POST. However item text that I received is too long and need to store at item long text. So can we use BAPI_ACC_DOCUMENT_POST to upload long text for item text? If this possible, may I know how to do this.
Thanks.
Regards,
ainHi,
You cannot pass item long text using this BAPI, Call the function module SAVE_TEXT after successfull call of BAPI
Call Save_Text with following parameters.
Text_ID : 0001 (Notes)
Text_object : DOC_ITEM (Line Item Text)
Language : EN
Text Name : Company code +Document NO + Fiscal Year + Line item ID
Regards
Vinod -
Standard SAP Table for PO Header Text and PO Item Text
Hi,
I want to know the Standard SAP Table where the PO Header Text and the PO Item Text are stored.
Thanks,
RKPO texts are stored in tables STXH and STXL.
TDOBJECT is EKKO for header texts and EKPO for item texts.
Just for future reference with regards to getting text id's etc.
eg: PO texts.
--> Go into the PO.
--> Go to the text tab (item or header - depends what u want).
--> Double click into the required text.
--> Click the "GO TO" menu option.
--> click Header.
and all the info you need is there.
You need to use function module READ_TEXT. Since lenght of text is variable it is stored in binary format and cannot be read via a table viewer. -
Hi All,
I Wants to pick the item text for Purchase Order. in my prog i already picked the header text by Read_text FM .i wants to used the same FM for item pickup . Can you please tell the FM parameter Value, so that i can pick proper Item text value.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Thanks in advance
Moni
Edited by: Alvaro Tejada Galindo on Sep 1, 2008 5:09 PMHi Moni
We can use the same procedure to retrieve texts of any document, just that the Name, Object and ID varies.
To find the required parameters for each object and document do as below:
1. Open an existing document
2. Go to the required Text
3. Double click on the same
4. It takes you to the editor screen.
5. Now use menupath: Goto->Header
6. In the popup screen you will find the required paramters.
For item texts the Name will be (PO Number + Item Number).
Using the details, you can pass the same to FM: READ_TEXT and retreive the texts in programs.
Regards
Eswar -
SAP SCRIPT Header text and Item text not printing in customized PO
Hello Experts,
I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
I want to print the header text and Item text in my form.
For Header text I have used :
/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
Problem 2: For item text the field is concatenation of EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.Hi,
Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
PROGRAM ZMEDRUCK_SUBP1.
TABLES: EKPO, EKKO.
FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
data xname like THEAD-TDNAME.
data i_xtline like xtline.
clear i_xtline.
refresh i_xtline.
CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
MOVE v_item_text to ITEMTXT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = F01
language = EN
name = ITEMTXT
object = EKPO
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_xtline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
Maybe you are looking for
-
How do i open just one file at a time
i just got lightroom 4. how do i open just ONE FILE?? i don't want to open catalongs, backup files, create smart collections auto import or any of that. i just want to open one file at a time
-
Hi Guys I recently bought a second hand early 2011 Macbook Pro 15 inch and are having 2 problems. The first is that none of the apps detects my webcam at all, the second is, i have Windows 8 installed on bootcamp but are unable to get the keyboard ba
-
How to make an UDF appear in the CFL list?
Hi, I am wondering if CFL can display my UDF on an system object. For example, I add an UDF called my_udf in Item Master. When user select item master in other form from an CFL window, how i can let user to be able see my UDF in the CFL window? Thank
-
Automatic restart of portal/java instance
Hello! At the moment it seems as if we have to restart the java instance at least once a day for having a proper working portal. Is there any possibility to automate this restart so that it can be done at night? If it's not possible to realize this o
-
Start process -"Start using Metachain or API"
Dear Experts, I have a process chain,PC2 that needs to be scheduled after completion of process chain, PC1. Now can I use the condition "Start using Metachain or API". But I have no idea how it works. I referred to documentation servic