Long Text problem in Process order header
Hi All,
I am using SAVE_TEXT FM to update the header long text in process order.
Also, I am updating the field AUFK-LTEXT = 'E'.
But when i display the order and click on long text, it does not display any thing as the text is not saved.
When I update the text directly in the order using COR2, it gets saved.
Does anyone know why the text is not being saved through FM SAVE_TEXT?
Also tried COMMIT WORK but was not successful.
The paramters I am passing to the FM are
TDOBJECT = 'AUFK'
TDID = 'KOPF'
TDSPRAS = SY-LANGU
TDNAME = sy-mandt+order number with leading zeros.
and the text lines in internal table.
Am I missing anything else here?
Thanks,
Sandeep
Hi Sandeep,
First check table STXH for the order which you saved manually, in order to verify that the values you are passing to the FM SAVE_TEXT are correct.
Also check the documentation which is supplied with this function to determine the INSERT and SAVEMODE_DIRECT values.
Also maybe check function COMMIT_TEXT and its documentation.
Regards,
Robert
PS. also test the scenario in which text s/b added to already existing text. The SAVE_TEXT function wipes out everything and therefore you first should read the existing text (READ_TEXT) to retrieve the current text and save this together with the new text using SAVE_TEXT. (check function group STXD for possible related functions to use).
PPS. Thinking about my comments under PS., I recall now that this was the symptom of the long text passed on through BAPI_SALESORDER_CHANGE and therefore maybe this is not the case for SAVE_TEXT.
Edited by: RJ. Schamhart on Feb 3, 2011 4:53 PM
Similar Messages
-
How to use Standard Text Key in maintenance order header long text?
Dear All,
I have created a standard text key using transaction CA10 and I want to use this in maintenance order header long text. Is there any way to select any standard text key in maintenance order header long text?
Regards & Thanks,
SaifHi
To use standard texts, perform the following six steps:
Select the maintenance order and access the operation overview screen using Goto -->Operation overview.
You can enter standard text keys in this screen or in a detail screen for the relevant operation.
Enter a standard text key in the appropriate field and press ENTER .
If the text is longer that the short text line available, the field Text is selected for that operation.
Check the long text and edit it if necessary. To do this, select the operation and choose Operation--> Long text.
The system branches to the text editor screen. If you also entered a short text for the operation and specified that this should not be overwritten by the standard text, you will see the short text displayed in the first line of the editor. The following lines contain the standard text.
Check the standard text and change it if necessary.
Save the final version of the text and return to the previous screen with Goto--> Back.
Save the maintenance order.
Standard texts are created for your system by your system administrator using the Customizing function.
Regards
Makarand Gurjar -
Problem in Process order confirmation ( while doing batch splitting)
Hi All
In our Industry we have sceneraio
we create Internal order and assign internal order to sales order
Once MRP run take place
Planned order created and converted to process order
Process order released
once we try to do confirmation of process order
example suppose process order header matl qty : 8
and in final confirmation while Goods receipt(101) of Fert
we do batch splitting (example 4 batch : each qty : 2)
but some time system not allows to do Goods receipt (movement type101)
system gives "Error confirm order not allowed"
please need urgent help
Thanks in advance
Sunil SinghHi Sunil,
During your first confirmation you must have activated "Final confirmation" Indicator, probably this is blocking from further confirmation.
Please check whether current system status of the order contains "CNF" if so, please cancel the previous confirmation and then redo confirmation with "partial" button active. Final confirmation should be activated only when it is the last confirmation for the order.
Hope this will resolve the problem, reward your points....
Regards,
Prasobh -
Problem in process order creation.
Dear Sir/ Madam
i am facing a problem while process order creation.
the problem is:
Error when calculating cost for order ATFEDEC11 "see log Log is deleted when saving
Do you still want to save?"Hi,
The log for production order preliminiary costing is not saved. Therefore, once the order is saved, there is no log available anymore (this is by the way a question of PP; none of the logs is saved).
Hope that helps...
Regards,
Declan -
BAPI for process order header delivered quantity
Hi,
current requirement is to get the process order quantity with drawn and delivered quantity , when we try using the BAPI
BAPI_PROCORD_GET_DETAIL , it does not have the process order delivered quantity - it has only total quantity for which process order is created .
Is there a way or any standard BAPI/RFC gives the below :
1. Process Order Header Delivered Quantity
2. Process order component's quantity with drawn
Regards,
Madhu KiranHi Madhu Kiran,
BAPI_PROCORD_GET_DETAIL of course has all the required fields:
1. --> check table POSITION, field DELIVERED_QUANTITY
2. --> check table COMPONENT, field WITHDRAWN_QUANTITY
Regards,
Andreas -
How to embed images in long text of PM Notifications/Orders
Dear Sir,
How to embed images in long text of PM Notifications/Orders? Kindly help.
Thanks & Regards
PM Team.Hi,
Unfortunately, You will not be able to view the graphics within the Long text editor screen.Only Limited word functionality is available on these editors.
You will have to store these pictures separately as an attachment, through generic object services and then view them through that.
Regards
Narasimhan -
I have Problem in Process Order ,
Dear , I have Problem in Process Order ,
See we have Numbe of process order , that status is REL CRCR DLV PRC CSER BCRQ BRRQ GMPS*
Now i want to Mass TECO all order , but i can not TECO because status should be CRFI ,
So
1) how can i change staus all order at once to CRFi?
2) Can i do the TECO in staus CRCR ?
3) Any other solution
REGARD
SAPHi,
It is NOT possible to do the process order TECO with the status CRCR , this has to be changed to CRFI
you can change the status to CRFI from CRCR in the following way
1) go to CO54 -T-code
enter the plant & Date range
enter the process message category PI_CRST ( sap std) or relevent category defined for you plant
select the to be sent option
2) here you will get list of process messages related to control recipes, click on the SEND (ctrlshiftF12)
process message will be processed & Control recipe status will be cahnged to CRFI for CRCR
Thanks,
Rajaniaknth -
Where write long text referred at sales order item ?
Hello,
Where is possible to write long text referred at sales order item ?
Tks.Hi,
It is understood that you want to add a long text in the sales order at item level; say the long text is having around 10 pages of text. This text is to be added to the item level whenever you want.
Follow the steps given below.
1. Keep the 10 pages of text in a text file.
2. Store the 10 pages of the text in the system; Menu Path >> SAP Easy access >> Tools >> Form Print out >> SAPscript >> Standard text; transaction code is SO10. Double click on that and give a text name u2018TEST001u2019, text id u2018STu2019; click on u2018Createu2019. Copy the text file and paste in the work file opened.
3. Select the item details in VA02. Select the text tab. Select the material sales text (or whichever you want). Click on details. u2018Change item noteu2019 will open; Click on u2018Standardu2026.u2019 (Ctrl +Shift + F5).
4. You will get u2018Insert Textu2019 box.
5. Enter the text name u2018TEST001u2019
6. Select u2018Expand immediatelyu2019.
7. Click on u2018Continueu2019.
8. Text will be pasted in the window opened.
9. Save the text.
10. The text can be viewed by clicking on details u2018buttonu2019. Menu path: VA02 >> item details >> text >> material sales text >> Details button.
11. You can check all the texts stored in SAPscript by (Ctrl +Shift +F5) at step level 3. Click on u2018Findu2019. All the text will be displayed.
Hope this information will be useful to you.
Regards,
K Bharathi -
Hi Everyone,
I am implementing BADI "WORKORDER_UPDATE". The requirement is there should be no changes made on the IW32 transaction. I have successfully implemented the BADI and it is now giving an error when we try to change anything on the order in IW32.
The problem is with the longtext. There is a field TXCHG which I used to see if there are any changes being made to the long text. When someone changes the lontext and tries to save it, it gives an error but still retains the changed longtext. The code works fine with all other changes(I mean it gives an error when they try to change anything in IW32 and will not retain the changes). But this does not happen in the case of long text. It gives an error but still has the changed long text as part of the order.
Any suggestions on how to proceeed? I am using instance Before_Update in this BADI.
Thanks
Kumar.Do u mean after giving the Error message, even if u come out without saving it is keeping the changes?
If the answer to the above question is no then try the following procedure:
Read the long text using READ_TEXT (function module) by passing the TDID, TDOBJECT, TDSPRAS, TDNAME (u can get these details by going through the menu edit-> go to header).
Store that in an internal table and then append all the lines of this internal table into a string Variable and assign this variable's text to the field in which long text is being displayed.
This should work bcoz , in the database only the original Long text is stored and we are retrieving it and displaying back in the relevant field.
Please reply if it works..... -
Long text problem in sap script
Hi Experts,
I have craeted sap script for payment print progrem.. in my sap script one window is text window... client want more then 300 char for that window. for that i use read_text function module... its working fine... but problem is it retrive only one line from long text editor. only 70 char i got.
below is my coding......
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = '0001'
LANGUAGE = sy-langu
NAME = NAME
OBJECT = 'DOC_ITEM'
TABLES
LINES = LINES .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT LINES.
n = 0.
l = 132.
text+n(l) = lines-tdline.
n = n + 132.
l = l + 132.
ENDLOOP.
in sap script i have direct pass lines-tdline
*&lines-tdline&
Please suggest me which point i missing?
Thanks
JigarHi All,
The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
Text ID = ZSD
Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
Requirement :
The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
The font should be the same size as the Printable Notes, but bolded rather than italicized.
The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
So the logic i have used is this below code:
I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
This is logic in the layout:
/:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
/:USING &VBDKA-VBELN&
/:CHANGING &ORDCONF_TEXT&
/:ENDFORM
/:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
I called this subroutine in the print program:
Logic in the print program:
FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
OUTPUT_TAB STRUCTURE ITCSY.
DATA : TMP_VBELN LIKE vbdka-VBELN,
TMP_VKORG LIKE VBAK-VKORG,
TMP_VTWEG LIKE VBAK-VTWEG,
TMP_SPART LIKE VBAK-SPART,
TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT',
TMP_TXNAM2(100) TYPE C.
DATA: v_text LIKE tline-tdline.
DATA : P_V_TEXT LIKE tline-tdline.
CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
IF SY-SUBRC = 0.
tmp_vbeln = input_tab-value.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING INPUT = TMP_VBELN
I
MPORTING OUTPUT = TMP_VBELN .
CLEAR VBAK.
SELECT SINGLE VKORG VTWEG SPART INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
FROM VBAK WHERE VBELN EQ TMP_VBELN.
IF NOT TMP_VKORG IS INITIAL
AND NOT TMP_VTWEG IS INITIAL
AND NOT TMP_SPART IS INITIAL.
CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
endif.
CONDENSE TMP_TXNAM2 NO-GAPS.
PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
IF SY-SUBRC = 0.
output_tab-value = P_V_TEXT.
MODIFY output_tab index sy-tabix.
endif.
endform.
FORM READ_ORDER_TEXT USING P_TMP_TXNAM2 CHANGING P_V_TEXT LIKE tline-tdline.
DATA: ztdid LIKE thead-tdid,
zlang LIKE thead-tdspras,
zobj LIKE thead-tdobject,
zname LIKE thead-tdname.
DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE
thead LIKE thead.
CLEAR P_V_TEXT.
ztdid = 'ZSD'.
zlang = 'E'.
zobj = 'TEXT'.
zname = P_TMP_TXNAM2.
CLEAR tlines.
REFRESH tlines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
object = zobj
name = zname
id = ztdid
language = zlang
IMPORTING
header = thead
TABLES
lines = tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT tlines WHERE NOT tdline IS INITIAL.
MOVE tlines-tdline TO P_V_TEXT.
ENDLOOP.
ENDFORM.
But still its not getting printed .Plz tell me where i am going wrong.
Thanks,
Suman -
Hi,
I am having a long text which has 10lines.. i need to save that long text from a file using migration.
first i need to store that text in a field for of an internal table & then save it in a long text ..
can any one help me out in providing the soln/alternatives to fix this..
Pls. do the needful.
thanks
johnHi John,
From what I know about long text in SAP is that they are stored based on ID, Object and Language. First you probabaly need to set them using tcode SE75(Change / Add New Object and ID)
Then in your program you can use several FM that process long text.
My favorite is
CALL FUNCTION 'LANGTEXT_ONLY'
EXPORTING
object = *Object
object_nr = *Object_no
spras = *language
txtid = *ID
x_xaktyp = *aktyp
save_mode = 'X'
text_history = 'x'
text_property = 'x'
IMPORTING
ind_inv = *line
inv_exist = *exist
TABLES
t_inlines = t_linetab.
This FM will call longtext editor and also set the mode
aktyp = H => create new,
aktyp = V => change
aktyp = A => read only
Another useful FM is READ_TEXT and SAVE_TEXT. Try to experiment with it and see any documentation for detail.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = *ID
language = *Language
name = *Name
object = *Object
IMPORTING
header = t_headltx
TABLES
lines = t_linetab
EXCEPTIONS
not_found = 1.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = t_headltx
savemode_direct = 'X'
TABLES
lines = t_linetab.
Hope it helps
Regards
Hadi -
Long text problem while uploading Inspection plan through BDC.
Hi,
I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.
I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.
Waiting for quick solution.
Thanks in advance.
FahiéHi a®s,
Thanks a lot for your kind reply.
My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).
When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.
I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).
Waiting for quick solution.
Thanks in advance.
Fahié -
Goods Receipt Indicator in Process Order header
Hi,
I'm trying to find the source of Goods Receipt indicator field in Goods Receipt tab in order header. For a process order, its in the 'Control' section of the page. Its always ticked on even when no confirmation or goods receipts are posted. Help says it indicates the relevancy to inventory management. I just wanted to know if there is a data or a config that drives this field. I checked in Order type-dependant parameters if that is source of this field, but I couldn't find that option there.
Thanks in advance experts!
Regards,
AbhijitHi Abhijit,
The flag is always set for orders settled to a material or a sales order item, as mentioned in help. If the settlement rule is different the flag is not set.
You can do that creating a process order without material (CORO) or changing your settlement profile and not using material as a receiver.
regards,
Edgar -
Problem during Process Order creation
Hi,
I have problem while creating Process Order.
I have maintained all the basic data required to create the process order.
When I Release the order, I am able to create the control recipe also, but PI sheet is not generated along with it. System gives the message "No PI maintained in customising for CRD for which control recipe is to be generated "
If I maintain the same, then system is unable to create the control recipe.
What may be the problem here? What i can do to rectify this situation?
PavanHi Pavan,
1. Maintain PI in SPRO of process management
2. Assign this PI to one of phse in master recipe
3. Plz check wheather ur created Control receipe destination or not.
4. if not then maitain the same in Spro.
5.Check the ordre type dependent parameter i.e COR4 from SPRO
see the Control recipe gerated in REL phse else maintai the asme in production scheduling profile.
if possible plz send the sctren shot fir the same to
[email protected]
Regards
Siddhesh -
Problem in Process Order - Urgent
hi i have a problem in COR2.
After creating the process order i TECO Technically complete the same,
and when i save the process order the system just hangs.
When i debugged the code i found that issue is inside the functional module CO_ZV_ORDER_POST - Create/change end routine order.
It does not do the commit work properly. this is in PRD so please help me to resolve this
I checked for other system and the process order gets saved.
What should i do
please helpPlease check the OSS note - 1041204 - Controlling COMMIT WORK in production order BAPIs
Hope this helps you.
Maybe you are looking for
-
Reset CMOS, system will not boot
This is a long story but I will try to keep it short: I just bought a new 875P Neo-FISR and a 3.0 GHz Prescott, which from reading the other posts could have been a mistake. I installed the CPU, memory, and the video card and pressed the power button
-
Looking for app to view my webcam
Are there any apps that would allow me to view my webcam from my phone, say i hook up a webcam to my computer and use it as a security camera and be able to view it while im out and away on my phone?
-
Convert date in modal binding table into dd.mm.yyyy format
DEar ALL, i have a date in the modal table, this value is coming from r/3 in yyyymmdd format. But i need to change its format to dd.mm.yyyy. How can i achieve it..i don't want to create my own table...pls suggest Regds, Anup.
-
FTP-FTP scenario...problem with FCC
Hi, Iam doing a FTP to FTP scenario.I have specified the following parameters- source.fieldNames source.fieldSeparator -> ; source.endSeparator ->'nl' ignoreRecordsetName source.fieldContentFormatting->nothing source.missingLastfields->add Target
-
Where to find Credit Sales -- which datasource please help
Hi BI experts, I have a requirement to find the Credit Sales from Billing datasources or FI-GL datasources. In case anyone have a pointer or suggestion please let me know. I looking for any indicator or value of any char or pricing terms or anything