How to fill Long Text in Accounting document in the item level.
Hi,
I need to fill Long Text field in item level of accounting document from the header texts from Billing header(say billing instructions)
I checked the user exit EXIT_SAPLV60B_008 but it didnt worked in my case. I have read the billing instructions in the Billing header using FM READ_TEXT but I am not able to save this text using FM SAVE_TEXT because for the field Long Text the parameter TDNAME is a concatenation of BUKRS(COmpany code) BELNR(Accounting doc. no.) GHAJR(fiscal year) BUZEI(line item) .
But I am not able to capture this accounting doc. number in the mentioned user exit instead I am getting Sales Invoice number and hence not able to give TDNAME parameter for FM save_text.
Hi Amit,
In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
Just try to explore in your system how the other validations are maintained.
After you are done with all your code, you have to run the regeneration program RGUGBR00.
Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS & TRACE PROG. GENERATE CALLS .
Hope this make your doubt clear.
Regards
Abhii
Similar Messages
-
Tcode FV50: How to find long text in FI Document line item Before Saving.
Hi,
How to find long text in FI Document line item.
During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
I would like to validate the Long Text Before Saving in user exit "U300" under the "Sunstitution" .
Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
Please give me the answer as soon as possible .
Note:- Read_Text function module is not useful. Because Read_text useful after saving document.Hi Amit,
In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
Just try to explore in your system how the other validations are maintained.
After you are done with all your code, you have to run the regeneration program RGUGBR00.
Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS & TRACE PROG. GENERATE CALLS .
Hope this make your doubt clear.
Regards
Abhii -
To change profitcenter in accounting document at line item level
Hi guru's,
I have a requirement that i need to change the profitcenter value in the accounting document based on the G/L number and reference key number when i am releasing the billing document number through vf02.
i tried in many ways but i am unable to achieve this...
Please help me in this regard.
Thanks & Regards
SastryPlease see [note 1057713|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1057713]
Rob -
How to read long text in Document line item
Hi,
How to read long text in FI Document line item.Use Read_text function module.
you need to pass
ID
LANGUAGE
NAME
OBJECT to the function moduel
To find the Text id name language and object these are the following steps. Example: FB02
1. goto FB02, Enter Document number
2. from menuselect Goto>Header-->header Text..... New window will be displayed
3. select the Header Text. here you can see all the text.
4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper.
5. in the Next window you will find Text Name. Text ID, Language. etc...
Regards,
Lalit Mohan Gupta. -
How to copy MIRO header text to account document line item automatically
HI Experts,
I really need your help or advices , my question is as follows, thanks.
After goods receipt , I do invoice verification at t-code MIRO , and it'll produce an account document by system.
at MIRO, I key in the purchasement description on the header text column (INVFO-SGTXT) ,
and after posting , the header text only appear in account document's account payable item ,
it's blank in GR/IR and tax item.
How to do could let the GR/IR and tax item have the header text too at column BSEG-SGTXT which produced by system?
p.s.
I have try to use BADI: AC_DOCUMENT , Method: CHANGE_AFTER_CHECK
and declare a couple of parameters to check the value, as follows
DATA: WA_HEADER TYPE ACCHD,
WA_ITEM TYPE ACC_DOCUMENT-ITEM,
WA_ITEM_AMOUNTS TYPE ACC_DOCUMENT-ITEM_AMOUNTS.
WA_HEADER = IM_DOCUMENT-HEADER.
WA_ITEM = IM_DOCUMENT-ITEM.
WA_ITEM_AMOUNTS = IM_DOCUMENT-ITEM_AMOUNTS.
but, in the parameters , I don't see any column to access INVFO-SGTXT value.....
Thanks a lot in advanced.
Best Regards,
YacoaHI SAPFICO,
Thanks for your advice,
I have follow the link , and create an function model named ZSAMPLE_INTERFACE_00001025(copy from SAMPLE_INTERFACE_00001025),
and also run the setting in FIBF....
I write some code in my function , as follows, but it doesn't work after I do MIRO
and it's still blank of the account document's line item.
p.s. even make a breakpoint at the function , it doesn't stop and stay at the breakpoint when I execute MIRO, so werid....
FUNCTION ZSAMPLE_INTERFACE_00001025.
""區域介面:
*" IMPORTING
*" VALUE(I_BKDF) LIKE BKDF STRUCTURE BKDF OPTIONAL
*" TABLES
*" T_AUSZ1 STRUCTURE AUSZ1 OPTIONAL
*" T_AUSZ2 STRUCTURE AUSZ2 OPTIONAL
*" T_AUSZ3 STRUCTURE AUSZ_CLR OPTIONAL
*" T_BKP1 STRUCTURE BKP1
*" T_BKPF STRUCTURE BKPF
*" T_BSEC STRUCTURE BSEC
*" T_BSED STRUCTURE BSED
*" T_BSEG STRUCTURE BSEG
*" T_BSET STRUCTURE BSET
*" T_BSEU STRUCTURE BSEU OPTIONAL
DATA: C_SGTXT TYPE BSEG-SGTXT.
IF SY-TCODE = 'MIRO'.
READ TABLE T_BSEG INDEX 1.
C_SGTXT = T_BSEG-SGTXT.
LOOP AT T_BSEG.
IF T_BSEG-SGTXT IS INITIAL.
T_BSEG-SGTXT = C_SGTXT.
MODIFY T_BSEG.
ENDIF.
ENDLOOP.
ENDIF.
ENDFUNCTION.
Edited by: Yacoa Chen on Mar 30, 2011 9:54 AM -
How to print long text in scripts
plzzzzzzzzz answer this qestion
how to print long text in scriptsHi Kranthi,
You can create Text Id and include that in your script.
For example:
/E TEXT
/: INCLUDE ZTEXT OBJECT TEXT ID ST
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
How to display long text in smartforms
Hi experts,
Iam trying to display long text into smartforms.I got the long text into ITAB frm database
in the abap program.In the form interface how to define the variable?In the long text i have 6 lines.
points guaranteed
cheers
kakiKaki,
Delcare a table and getting the LONG TEXT is not the right way of doing this.
You create a TEXT object and change the TYPE to INCLUDE TEXT. Once that is done all you have to do specify the parameters of your long text - TEXT ID, TEXT OBJECT and TEXT NAME. These are the same parameters that you use for READ_TEXT funciton. You don't have to fetch the text manually, it happens automatically.
Make sure this is a part of the main window as this might run into multiple pages.
Regards,
Ravi
Note : Please reward the posts that help you. -
How to keep long text in bdc using create_text function module
hi,
ihave bdc in that i having field like long text i have to upload the long text using create_text function module how to use and where to use in bdc. wat parameters i have to pass exactly.
i need some other information like how can i pass this to BDC i got like this .
can u plz check it.
its a length of 255 chaters
perform bdc_field using 'RSTXT-TXLINE(02)'
'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'
& 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.
perform bdc_field using 'RSTXT-TXLINE(03)'
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
& 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.
perform bdc_field using 'RSTXT-TXLINE(04)'
'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
& 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'.
perform bdc_field using 'RSTXT-TXLINE(05)'
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'
& 'hhhhhhhhhhhhhhhhhhhhhh'.Hi,
Use this coding where do u want,
data: begin of textline occurs 10.
include structure tline.
data: end of textline.
start-of-selection.
textline-tdformat = '*'.
textline-tdline = 'TESTING FOR CREATION OF TEXT'.
append textline.
clear textline.
call function 'CREATE_TEXT'
exporting
fid = '0013'
flanguage = sy-langu
fname = '0095000501'
fobject = 'VBBK'
tables
flines = textline
exceptions
no_init = 01
no_save = 02.
end-of-selection. -
How to create Long Text in Module Pool Program
Hi all,
I want to develop a new module pool program and I want to use Long text screen in this program and also want this text will store in table.I never develop such type of module pool before.This long text will like sales order long text.Please let me know the steps how I can develop such type of program and how I save long text huge data in table.
Thanks & Regards
NirmalHai ,
here you have to use custom control, for this
DATA: line(256) TYPE c,
text_tab LIKE STANDARD TABLE OF line,
field LIKE line.
1) Create custom control in your screen
2) CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT', "--> (this is custom control name in screen)
editor EXPORTING parent = container.
3) CALL METHOD editor->get_text_as_stream "This method reads data from custom control , inserts into itab 'text_tab'
IMPORTING
text = text_tab. "
READ TABLE text_tab INTO line INDEX 1. read the text into wa 'line'
if you want more clarity , see 'ABAPDOCU' >ABAP USER DIALOGS> COMPLEXSCREEN ELEMENTS--> DEMO CUSTOM_CONTROL -
How to use long text editor in Webdynpro
hi ,
I want to use text editor in webdynpro. I want to save the data in long text.
My requirement is the format of data should remain same(It should not get changed).
Thanks
SKHi,
use text editor uielement and bind it with a attribute of type string. convert this string into a table using function module
fill another internal table which is type compatible with table of SAVE_TEXT function module.
CONVERT_STRING_TO_TABLE. Call the function module SAVE_TEXT to save this text.
you need to find proper tdobject and tdid value which is to be passed in importing parameter "header".
similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.
Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.
Thanks
Vishal Kapoor
Edited by: vishal kapoor on Oct 19, 2010 3:51 PM -
How can I highlight text in a document scanned in pdf format?
How can I highlight text in a document scanned in a pdf format?
If it wasn't OCRed in Acrobat then you can only use the non-text commenting tools, like the Square or Polygon. Press Ctrl+E to open the Properties bad and you could make it look like a text highlight annotation.
-
How to edit long text of Services in P.O.?
Hi Friends,
How can I make "Long Text" of services editable while creating P.O.
If any solution let me know.
Regards
SivaDear,
Enter t-code, ME22N.
Enter your purchase order number, Here you can change text for service.
If you want to change Long text of service which is available item detail level of purchase order.
Enter t-code AC03, enter your service number and click on change button.
Here you find the long text for services, change text of service which is coming in purchase order item detail level of purchase order.
Regarda,
Mahesh Wagh. -
Sales order number in not coming as a text in Accounting Document
Hi Friends,
Sales order number in not coming as a text in Accounting Document in INSTALLMENT BILLING PROCESS
is there any config missing for this doc number
Pl advise me
RajuHI Prem,
Please understand my query.
In VF01 in accounting document we can see the text document field.
Here i need the Sales order number as a Text field.
But it is not coming over here
Pl advise me
Raju -
How to use long texts in explanation tool tip?
Hi ,
Can anyone tell me how to add long text in Explanation tool tip?
I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
Thanks and regards,
Vivek Shetty.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to Add Long Text from CA10 on SAP Script
Hi Friends,
I got a requirement to add a long text from CA10 on to the SAP Script.
How to do this ?
Is it using INCLUDE ?
Please give me some solution
Thanks in Adv.Hi Bhupal,
Could you tell me how did u add the long text from CA10. I have the same requirement.
Thanks in advance.
Manisha
Maybe you are looking for
-
Can`t delete WLAN Networks (Nokia E52)
Hello! I tried to connect to a wlan network (Name) and entered a wrong wep key. After i found out how to change the wep key i realised that i had more networks (Name01, Name02). I still can`t connect to my initial network as the wep key is still inco
-
I'm having a problem with WiFi calling on a Samsung S6 edge, it never seems to connect. I've spoken to EE and they have confirmed that WiFi Calling is activated on my account, my phone has the correct firmware and the WiFi calling option is enabled i
-
ITunes "security code is invalid"
I have used a credit card once for buying my apps, but for the past few weeks it hasn't let me use a different visa gift card, it says that my security code is invalid, what do I do???
-
Installation CS3 and trying to get past upgrade check
Im doing a reinstall of my CS3 package on a new computer. I get everything installed and almost running but then get a window which is called upgrade check. I cannot seem to get past this step due to having to provide serial numbers i don't have. I d
-
Dump while accessing remote cube
I have a remote cube on a r/3 function module. While doing listcube on the remote cube I get following error: System error: Message type is unknown. Error reading the data of InfoProvider In R/3 error dump analysis gives the following: Only message