Get Temporary Sales Order Text Area
Hello All,
This is the first time I posted in this forum. Here I found a lot of answers for my questions but this time I wasn't able to find it.
I need to manage the text area in the sales order document at header level. I built a custom text and this is working fine.
I'm able to download the text during the ABAP program by function module READ_TEXT.
What I need now is to understand if the user filled the text area with mandatory sentences. Here's my problem: I'm not able to download the text contents the user filled. Using READ_TEXT I'm able to downlaod the original text but not the current text the user fills becaouse in the tables STXLH and STXL it is possible to store the contents with the NAME already filled that is the sales document number. In my case the document is not saved yet and no document number is available.
Could you please help me?
Thanks in advance for your support.
Best Regards,
Fabio
Hello All,
This is the first time I posted in this forum. Here I found a lot of answers for my questions but this time I wasn't able to find it.
I need to manage the text area in the sales order document at header level. I built a custom text and this is working fine.
I'm able to download the text during the ABAP program by function module READ_TEXT.
What I need now is to understand if the user filled the text area with mandatory sentences. Here's my problem: I'm not able to download the text contents the user filled. Using READ_TEXT I'm able to downlaod the original text but not the current text the user fills becaouse in the tables STXLH and STXL it is possible to store the contents with the NAME already filled that is the sales document number. In my case the document is not saved yet and no document number is available.
Could you please help me?
Thanks in advance for your support.
Best Regards,
Fabio
Similar Messages
-
Get the sales order text from ITS and save it in SAP.
Hi,
I have created an application to create sales order from ITS. In this app i'm having a text field to fet the header text for the order. & after that I'm calling an RFC which has a BAPI to create the sales order.
Now, when i enter the text for header texts in frontend (separated by ENTER), then it saves only the first line of the text.
I've tried using :
SPLIT ordernotes AT cl_abap_char_utilities=>cr_lf INTO TABLE t_ordnotes.
and using FM: CREATE_TEXT,
but still, it is saving only the first line.
Can anyone please help me with this ?????
Its urgent.
Thanks in advance,
Hemant.Hi
See the sample BDC program that is used to upload the Material LONG Texts into SAP using MM01 Tcode
check this may be helpful
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
<b>Reward points for useful Answers</b>
Regards
Anji -
Hi,
How can i retrieve the sale order text?? Any FM / BAPI available?? OR which table should i use?? I want to display the fields in the delivery sap script.
Regards,
KitHello Kit,
There is a function Module called READ_TEXT to get the sales order text.
you can see the example program in the folowing thread given by Anji Reddy Vangala.
https://forums.sdn.sap.com/click.jspa?searchID=6591847&messageID=3274740
He wrote like:
You have to fetch it useing the fun module READ_TEXT
double click on that text in SO, it goes to text editor,
from the menu GOTO -> header
displays the OBJECT, ID< OBJECT NAME and the Language
pass them to the fun module and fetch it
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = TEXT_ID
LANGUAGE = SY-LANGU
NAME = Same as TDNAME in Save_text
OBJECT = TEXT_OBJECT
TABLES
LINES = LI_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Genrally text are stored in STXH tables.
Regards
Sasidhar Reddy Matli.
Message was edited by:
Sasidhar Reddy Matli -
Sales Order Text not getting copied after configed with tcode VOTNX
Hi All ,
We have configed one of sales order texts to be copied from customer master text at sales org level .
It works fine for some sales org , But for some it does not and says "Text could not be structured " in log .
I tried to debug while creating sales order , But unable to reach the point where the texts are copied .
Any help would be appriciated .
Thanks
VinayWanted to add more thing ,
The log Says that the error is recogized by the sapscript FM INIT_TEXT.
Thanks
Vinay kolla -
Creating Sales order texts while using BDC session method is not working
Hi All,
I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
I wanted to modify this BDC sesion to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
Please suggest if there is any way to create sales order using BDC.
Regards
SheebaHi Madhu,
'=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
Part of BDC program generated for cretaing sales order texts.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
Regards,
Sheeba -
Calling VA01 from Report,how to get the Sales Order No when Back.
Hi all,
I have a requirement of calling va01 from the report and have done that using
did recording ...&
call transaction va01 using bdcdata.
but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls shareUse the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
Effect of MESSAGES INTO itab:
Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
And when doing the call transaction pl. choose update mode as 'S' or 'L'.
Regards,
Joy. -
Can we add Delivery texts/Sales order text in VL10 report
Hi,
Is it possible to have delivery texts/sales order texts on VL10 report.
Please let me know if there is a way to do it.I've looked at the note198137.
Thanks in advance.
Regards,
RekhaYes I am aware of the fact that text is accessed thru read_text FM .....
My question is what parameters/ field values can we plug in STXH/STXL to get info that a particular "text" entry exists in this table. I have a sales order which has few texts, I want to know if they have an entry in STXH and STXL about their text i.d.s....
Let me put it this way - What ever entry exists in STXH for this sales Order I want to see that. What parameters of this sales order do I pass in this Table STXH to see that entry ??
I hope this is clear now -
Restrict Sales order text based on Sales group
Hi,
My requirement is currently 12 different text ID's showing in my sales order text.But I want to restrict certain sales order text ID's based on sales group entered in the sales order header. Is there is any user exit or routines available to restrict sales order text ID's.
Regards,
PalaniHi,
This is actually a configuration item. Transaction VOTXN (VOTX in 4.6C) can be used to configure the text types, text procedures, and access sequences for sales order texts as well as other types of texts. Part of the configuration procedure allows for some ABAP control over the copying requirements.
This is from the online help for data element COPNR (on the VOTXN screen SAPMV80T 800, field TTXZI-COPNR) :
You can create your own routines for text determination. For example, if you want to send different messages to particular groups of customers, you can create routines that automatically assign different messages to different groups (e.g. wholesalers, retailers).
Note
The fields available for determining texts are defined in structure TVCOM, which can be found in the routine under FTVCOM. Generally, however, the fields filled in the structure are only those which are used or recognised for text determination by the caller. Other fields can, for example, be filled during sales document processing via user exits USEREXIT_MOVE_FIELD_TO_TVCOM_H and USEREXIT_MOVE_FIELD_TO_TVCOM_I. The user exits are described in the IMG under Sales and Distribution -> System Modification -> User exits.
I'm not sure if filtering by sales group is possible, but I don't see why not.
Regards,
Jamie -
Get the Sales Order number from Service Notification
Hi Experts,
Please let me know if there are any BAPI's or standard Function modules to get the Sales order for a given Service Notification number.
Thanks a lotHi Ashish,
Hope the listed BAPI's let you solve the issue:
BAPI_SERVNOT_CLOSE Complete service notification
BAPI_SERVNOT_CREATE Create service notification
BAPI_SERVNOT_DEL_DATA Delete Items, Causes, Activities, Tasks, Partners of the service notif.
BAPI_SERVNOT_GET_DETAIL Get details about a service notification
BAPI_SERVNOT_MODIFY_DATA Modify a service notification or associated subdata
BAPI_SERVNOT_POSTPONE Postpone service notification
BAPI_SERVNOT_PUTINPROGRESS Put in process a service notification
BAPI_SERVNOT_SAVE Save service notification
BAPI_SERVICENOTIFICAT_CREATE Create service notification
BAPI_SERVICENOTIFICAT_GETLIST Select service notifications according to customer or contact person
BAPI_SERVNOT_CHANGEUSRSTAT Change the user status of a service notification
Regards,
Soundarya. -
Sales order texts - only printed correctly on repeat print out
Hi all,
We have an issue, where on the first printout through VF31 of a sundry billing document, the material sales text maintained in French is not printed, even though the language in the customer's master data is French, the material sales text in the sales document is maintained in French and in VOTXN the access sequences are maintained for all languages.
I first checked this post Sales order text determination which unfortunately didn't resolve the issue (although a very interesting discussion).
The strange part is, when we do a repeat print out through VF31 selecting procession mode 2 (Repeat Processing) the document is printed WITH the material sales texts correctly. For me even stranger is that the repeat printout uses the same output type as the initial printout. I am now officially lost. Would any of you have any idea, where the issue lies here?
I would try to change some setup in VOTXN, but knowing that the repeat print out does print the texts correctly, let's me think there might be a different issue.
Any idea are very welcome.
Thank you in advance!
Alexis
Edit: when we copy the text and make it "Dutch", for some reason it's printed out correctly on the first printout. Although I cannot find any restriction, where Dutch is specified specifically, nor do I see where French is excepted specifically.Guys --
Thanks for the help!
Suda -- will try out your suggestion. Gordon - in answer to your question, we actually go from Sales Order to A/R Invoice (Draft) to A/R Invoice.
We use the A/R Invoice (Draft) as our packing slip and skip Delivery module altogether.
I realize this is a bit unconventional but seems to work best for our business practice.
Thanks!
Mike -
BAPI or FM to get open sales orders to material like TC VA05N
Hi,
i'm searching for a bapi or fm to get a list with all open sales orders to a material like the tc va05n this do. Maybe some of you know such a bapi or fm.
I tried the fm SD_SELECT_SALES_DOCUMENTS but i don't get the result i hoped.
Would be happy if someone could help me.Hello Alexander,
To get Open Sales order has VA05N use the Function Module
RV_SALES_DOCUMENT_VIEW_3
We need to pass value to the Importing parameters VBCOM
To get the open sales order
VBCOM-VKORG = sales organisation
VBCOM-ZUART = 'A'
VBCOM-TRVOG = '0'
VBCOM-STAT_DAZU = 'X'
VBCOM-NAME_DAZU = 'X'
VBCOM-KOPF_DAZU = 'X'
VBCOM-VBOFF = 'X'
VBCOM-AUDAT = Begin Date
VBCOM-AUDAT_BIS = end date
By passing this variable you will get the all open sales for given sales organisation and given date. -
OM: Sales order lines are cancelled automatically without backordering.
Intercompany sales orders lines are being cancelled automatically on the delivery when a split line is shipped with a quantity of one remaining. This line should remain backordered. A quantity of 61 was entered and 60 was shipped and 1 remaining. This 1 should have been backordered but no new line was automatically generated and infact when I view the Additional information I can see that the quantity 1 is cancelled. The profile option OM: Under Shipment Tolerance is set to .5
HI,
You can cross check by running the AUDIT HISTORY REPORT in Order Management, which gives the in depth details of the sales order amendments.
Thanks,
Raghav -
How 2 read all the line of a sales order text ID plz
Dear all
I have the following to read sales order text of single line of limited char(40)
TIDNO = '0003'.
CONCATENATE SSORD
LIPS-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
How do i read mutiple lines plz tell me ?
Thnx
Moni
Message was edited by: md monirujjamanHi Md,
sorry I don't understand your question, can you explain more ?
Regards
Frédéric -
How to get master sales order number from delivery number
Hi All,
I need logic for getting master sales order number from available Delivery number.
Note: There can be many SO's in diffrent levels.
Finally i need to pick up master sales order no.
Thanks in advance.
Thanks,
Deep.Hi,
I have a outbound delivery[VL03N] 'X' in my system .
Then for getting sales order no i am writing below code:
SELECT single vbelv vbeln
from vbfa
INTO (vbelv, vbeln)
where vbeln EQ p_vbeln AND
vbtyp_n EQ 'J'.
Then vbelv i need to pick up master sales order no.
SELECT vbelv vbeln
from vbfa
INTO TABLE i_so
where vbeln EQ l_vbelv AND
vbtyp_n EQ 'C'.
If i write code as above it is giving four sales orders which one of them is master sales order no!
Thanks,
Deep. -
Sales order quantities are not copied to Delivery
Hi Friends,
The sales order quantities are not copied to the delivery document. The order type is OR & delivery type is LF.
We are using the BoM, for which a dwelivery group is created in the sales order. The schedulelines are confirmed as there is ample stock in storage location. The scenario is MTS.
The copy control in VTLA is :
At Header level
order req : 001
combination req : 051
header req : 001
header data ext sys : 0
At Item Level for TAP
order req : 102
item data : 101
item data ext sys : 0
business data : 2
update doc flow ( X )
positive/negative : +
At Item Level for TAN
order req : 101
item data : 101
item data ext sys : 0
business data : 2
update doc flow ( X )
positive/negative : +
Please tell the solution
regards,
Yuvaraj.Hi,
When you do the setting for item category, you need to maintain that the item is relevant for delivery. Kindly check.
Regards,
Jn
Maybe you are looking for
-
Crash PPro CS3 when launching AME
PProCS3 crashes with "Sorry, serious problem" box, when trying to export sequence through Adobe Media Encoder. Same happended with CS4, so we decided to downgrade back to CS3. We've uninstalled/cleanuped everything Adobe related and done fresh instal
-
How do I transfer library on i pod to laptop
52 year old computer idiot here. My main computer crashed and I lost everything. I now have a hp laptop with windows 7. I downloaded i tunes to the laptop but when I connect my i pod it says I am already synced to another library. I have been searchi
-
Iphone Cannot connect to itunes. Ox E8000003
i have tried to restore the phone and that didnt help
-
Can someone help with some quick questions?
If someone has the time it would really help if I had the answers to the following questions. I appreciate they may be obvious or mundane to some but I am trying to set up a network at a primary school. I've searched the forum for answers with no luc
-
My scanner does not show up in the drop down list to get photos from scanner
Deleted scanner is listed and drop down list does not contain my new scanner?