Problem in Updating sales text in MM02 via BDC
Hi All,
I've created a BDC to update the Sales text for MM02. As the no of tabs for the view in MM02 are different for different materials, wrong tabs are selected while executing the BDC for different materials. I need to always select Sales text in the view.
Kindly suggest.
Thanks and Regards,
Neha
Hi,
If you are only updating the sales text, then why not use function module SAVE_TEXT?
refresh : headerl, itab3.
headerl-tdobject = 'MVKE'.
headerl-tdname = '000000000300000560000101'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = '0001'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing sales text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = 'X'
savemode_direct = 'X'
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards
Vinod
Edited by: Vinod Kumar on May 26, 2010 12:48 PM
Similar Messages
-
Hi Experts,
We are trying to upload sales text in MM02 transaction, which does not have screen field. Please advise whether I can use SAVE_TEXT or BAPI to change material. Sample code will be very much helpful.
Thanks in advance.Hi
You have to use the CREATE_TEXT fun module and to pass the paramters OBJECT,ID, OBJECTNAME and LANGUAGE correctly after declaring them correctly
see the sample code for long text creation
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
text1 LIKE tline-tdline, " Long Text
text2 LIKE tline-tdline, " Long Text
text3 LIKE tline-tdline, " Long Text
text4 LIKE tline-tdline, " Long Text
text5 LIKE tline-tdline, " Long Text
text6 LIKE tline-tdline, " Long Text
text7 LIKE tline-tdline, " Long Text
text8 LIKE tline-tdline, " Long Text
text9 LIKE tline-tdline, " Long Text
text10 LIKE tline-tdline, " Long Text
text11 LIKE tline-tdline, " Long Text
text12 LIKE tline-tdline, " Long Text
text13 LIKE tline-tdline, " Long Text
text14 LIKE tline-tdline, " Long Text
text15 LIKE tline-tdline, " Long Text
text16 LIKE tline-tdline, " Long Text
text17 LIKE tline-tdline, " Long Text
text18 LIKE tline-tdline, " Long Text
text19 LIKE tline-tdline, " Long Text
text20 LIKE tline-tdline, " Long Text
text21 LIKE tline-tdline, " Long Text
text22 LIKE tline-tdline, " Long Text
text23 LIKE tline-tdline, " Long Text
text24 LIKE tline-tdline, " Long Text
text25 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-text25 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text25.
APPEND itab.
ENDIF.
IF itab1-text24 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text24.
APPEND itab.
ENDIF.
IF itab1-text23 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text23.
APPEND itab.
ENDIF.
IF itab1-text22 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text22.
APPEND itab.
ENDIF.
IF itab1-text21 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text21.
APPEND itab.
ENDIF.
IF itab1-text20 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text20.
APPEND itab.
ENDIF.
IF itab1-text19 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text19.
APPEND itab.
ENDIF.
IF itab1-text18 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text18.
APPEND itab.
ENDIF.
IF itab1-text17 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text17.
APPEND itab.
ENDIF.
IF itab1-text16 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text16.
APPEND itab.
ENDIF.
IF itab1-text15 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text15.
APPEND itab.
ENDIF.
IF itab1-text14 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text14.
APPEND itab.
ENDIF.
IF itab1-text13 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text13.
APPEND itab.
ENDIF.
IF itab1-text12 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text12.
APPEND itab.
ENDIF.
IF itab1-text11 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text11.
APPEND itab.
ENDIF.
IF itab1-text10 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text10.
APPEND itab.
ENDIF.
IF itab1-text9 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text9.
APPEND itab.
ENDIF.
IF itab1-text8 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text8.
APPEND itab.
ENDIF.
IF itab1-text7 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text7.
APPEND itab.
ENDIF.
IF itab1-text6 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text6.
APPEND itab.
ENDIF.
IF itab1-text5 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text5.
APPEND itab.
ENDIF.
IF itab1-text4 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text4.
APPEND itab.
ENDIF.
IF itab1-text3 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text3.
APPEND itab.
ENDIF.
IF itab1-text2 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text2.
APPEND itab.
ENDIF.
IF itab1-text1 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text1.
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 -
How to upload material text in mm02 using bdc table control
i have problem to upload material Description in mm02 using bdc.
my text file is like
2000251 AF A12345
2000251 AR B12345
2000251 BG C12345
2000252 AF F12345
2000252 AR G12345
2000252 AF H12345
i want to upload material number, language, and material description, how can i upload pls help me.Hi,
Try with bapi , bapi_material_save_data.. didn't exactly remember it,Please check the same.
Regards,
Nagaraj -
MM02: Problem in updating Long Text
Hi All,
My requirement is to do MM02 Conversion. I have to Update 14 fields in the transaction.I got a Problem with my LONG TEXT Field.
Requirement for updating is whenever a double quotes comes in the place of LONG TEXT in the input file, i have to empty the LONG TEXT in the transaction.
For modifying the already existing Long Text, its working perfectly. But problem is arising only when i want to empty the LONG TEXT field.
What i did was, IF zbasic-matnr_long_text = ' "" '.
bmmh7-tdline = ' '.
Also i have passed Text ID, Text Langauge.
So please Help me with this Problem
Message was edited by:
karthikeyan ThangavelHi Sathish,
If i use Fm Delete_Text, as soon as it encounters the FM it will delete the LONG Text.
Since Im using LSMW, everything should happen after i run the step 'Start Direct Input Program'.
Please just consider, suppose there is a Transaction Error in my LSMW. So according to this situation no transaction should happen i mean LONG TEXT should not get deleted.
But Since it has enountered the FM, Long text must get deleted.
Please correct me if anything is wrong in my Logic.
Also tell me what i should do if my Logic is correct. -
Problem for uplaoding sales text using LSMW
Hi,
I have use LSMW for uplaoding material masters sales and purchase order text , first I have done for purchase order text with object : MATERIAL and ID : BEST it works fine for this after that when I am trying same for uploading sales text OBJECT : MVKE and ID : 0001 it is picking file proerly and till final BDC step it is not giving any error but in material master sales text is not getting updated for that material.
what canb be the problemm
also for pO text for matnr i have given only material code 18 Chr.
and for sales text i hva egiven MATNR + SALES ORG. + DISTRIBUTION CHANNEL as it required for sales text.
regards,
zafarDear Zafar,
I found a similar problem while uploading Porduction order long text. May be this information is useful for you.
The common task of changing the long text of a production orderu2019s operation can bring some surprises.
The first problem that is usually encountered is that after updating the long text with the function SAVE_TEXT, the new text is not visible in standard SAP transactions like CO03. The new text can be read with the function READ_TEXT though. The trick is that SAP uses the u201Clong text existsu201D indicator, the field TXTSP in the table AFVC. To make the text u201Cvisibleu201D to standard transactions, we have to set the TXTSP value to the current language (or the textu2019s language). Unfortunately, this has to be done with the direct UPDATE on the AFVC u2013 there are no known workarounds.
Another problem can be seen when the same order is processed by users that use different languages. While SAP allows to store the long text for the same operation in several languages, actually, only one text object will be active at the same time in regard to standard transactions u2013 the object in the last saved language. That means, when SAP writes the text back, the TXTSP will be overwritten with the current language (say, language A). If the next user is working in another language (language B), SAP will present the text in the u201Cfirstu201D language (A) in the CO03 (even if the text in language B exists!). But after saving, the text will be written in the new language and TXTSP will be set accordingly.
So, when working with long texts directly, you have to read with READ_TEXT using the language stored in TXTSP, NOT with the current language. When saving, you save in the current language and set the TXTSP to the current language. This way you are consistent with what SAP does and this will prevent you from surprises in a multilingual environment.
Regards,
Kamal -
Any standard process to update Sales Order in SAP via XI / Idoc ?
Hello,
Currently one of our end customer is creating Sales Order in Oracle system. Once the Order is created there, they send the Order information to our XI system via flat file. XI system processes the flat file and then it calls order creation function using rfc / BAPI - BAPI_SALESORDER_CREATEFROMDAT2. This works just fine.
But now the customer wants an ability to update sales order, cancel certain line or even cancel the whole order in their Orcale system. And once that happens, they want the same thing to happen in SAP via some kind of interface automatically in the background.
So my question is :
what is the best way to do it ?
Is it possible to do via idoc ? The reason I am asking it via idoc is because it sounds that's the most standard way of doing it in SAP.
What idocs can I use ?
Has any one implemented such interface ? And if so, can you share some info ?
Any response is highly appreciate.
thanks,
DipankarI woudl suggest you check ORDERS05 IDOC type (ORDCHG message type).
FM - idoc_input_ordchg -
Problems in updating sales partner info of a billing doc to VBPA table
Hi,
We recently upgraded to ECC6.0. When we create billing document, system is updating wrong country code of customer to VBPA table. It was/is doing good in 4.7 system.
But in ECC6.0, seems to be it is updating the country which is under telephone number. Not taking the country whihc you see on address screen.
Any experts suggestions.
Thx,
Nagesh
Edited by: Nageshwarrao Ravipati on Feb 18, 2009 8:06 PMPlease also pass the Reference document number to REF_DOC_L of QUOTATION_HEADER_IN parameter. do not pass the item number pass Reference document number only.
I_HEADER1-REF_DOC = <Reference Doc No>.
I_HEADER1-REF_DOC_L = <Reference Doc No>.
I_HEADER1-REFDOC_CAT = <Document Category>.
If your problem solved award the points. -
Update Sales Org Material Status via VK12?
Hello,
I have a request to update the DChain spec status for a given material when a user creates a new condition record in VK12. My initial response is that it's not possible and probably not a good practice, but before I respond to the request I wanted to know if it is possible. In my forum search I haven't found any topics on this, has anyone ever had to do this? If so, how was this completed?
Thank you.Hi,
Just to recap, X-dist chain status is generally used in different purpose rather than conditions.
Whenver new material is created with sales views. its CO-Controlling directives that until the costing of the material is not done, there should not be any sales. Thus, they restrict the sales of this material with this field.
Once costing is done, this material will be ready for sale & then this field will be removed ( there are various ways to remove/blank this field in SAP).
same concept is exist, to procure the material also.
Let me know, the prupose- why you want to use this field in your requirement. Still if you would like to use, as said by mate, there is no automatic functionality to update this field. It has to be done manually or with some subsequent function.
Hope it helps.
Regards,
Reazuddin MD -
Mm02 - Sales text view update?
Hi Friends,
I am working on the material master change (i.e MM02 transaction) and I need to upload Material master u2013sales text view and purchase order text view and all other additional data views.
I have updated one material in recording mode (i.e through SHDB transaction).
I am unable to find the sales text field name. But I find BDC_SUBSCR in my recording.
Pls find the below recording log.
SAPLMGMM 4040 X
BDC_OKCODE =BU
BDC_SUBSCR SAPLMGMM 2010TABFRA1
BDC_SUBSCR SAPLMGD1 1004SUB1
MAKT-MAKTX test material desc XXX
BDC_SUBSCR SAPLMGD1 2121SUB2
Pls let me know how to update sales text view and po text view in MM02 transaction.
Thanks in advance.
Regards
raghuYou have to use FM SAVE_TEXT to upload sales text and purchase order test.
You can't record a BDC for custom controls like text editor.
MOVE V_MATNR TO tname-tdname.
MOVE 'MARA' TO TNAME-TDOBJECT.
MOVE 'SL1 TO TNAME-TDID.
MOVE SY-LANGU TO TNAME-TDSPRAS.
APPEND TNAME
TXTLINES-TDFORMAT = '*'.
TXTLINES-TDLINE = 'This is your purchase order text'.
APPEND TXTLINES.
CLEAR TXTLINES.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = TNAME
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
*OWNER_SPECIFIED = ' '
*LOCAL_CAT = ' '
IMPORTING
*FUNCTION =
NEWHEADER = TNAME
TABLES
LINES = TXTLINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
I'm trying to update sales text in Material master MM02 through LSMW direct Input method
My source file is as below
H MATNRSALESORGDC 0001 E
I TESTING TESTING TESTING BY
I for QW tttt
I tttttttttttttttttttttttttt
I tttttttttttttttttttttttttt
H MATNRSALESORGDC 0001 E
I TESTING TESTING TESTING BY
I TESTING
Object is MVKE
Once the Direct Input method is done I'm getting a success message of the texts being created but the texts are not getting updated . How to trace where is it failing or should I maintain any tables before loading texts Guide me as I have to load many material texts
I tried to load a different material with same sales org it is loading . I'm not able to find the difference between both the materials
did anyone faced this issue can u guide me how to figure it out
Thanks
NaginiMy BI recording is not showing the Long Text for Sales Text at all. Can anybody help?
MM02 Change Material &
SAPLMGMM 0060
BDC_CURSOR RMMG1-MATNR
BDC_OKCODE =ENTR
RMMG1-MATNR 17783622846 MATNR Material Number
SAPLMGMM 0070
BDC_CURSOR MSICHTAUSW-DYTXT(08)
BDC_OKCODE =ENTR
MSICHTAUSW-KZSEL(08) X KZSEL_08 Checkbox
SAPLMGMM 0080
BDC_CURSOR RMMG1-VTWEG
BDC_OKCODE =ENTR
RMMG1-VKORG jp01 VKORG Sales Organization
RMMG1-VTWEG 01 VTWEG Distribution Channel
SAPLMGMM 4040
BDC_OKCODE =TEAN
BDC_SUBSCR SAPLMGMM
BDC_SUBSCR SAPLMGD1
MAKT-MAKTX POLYSILAZANE NP110-0 MAKTX Material Description (Short Text)
BDC_SUBSCR SAPLMGD1
SAPLMG19 1000
BDC_CURSOR DESC_LANGU_NEW
BDC_OKCODE =ENTR
DESC_LANGU_NEW ;
SAPLMGMM 4040
BDC_OKCODE =BU
BDC_SUBSCR SAPLMGMM
BDC_SUBSCR SAPLMGD1
MAKT-MAKTX POLYSILAZANE NP110-0 MAKTX Material Description (Short Text)
BDC_SUBSCR SAPLMGD1
BDC_CURSOR LANG_TC_TAB_TC-SPTXT(
SAPLSEUO 0300
BDC_CURSOR G_LINE_1
BDC_OKCODE =YES -
Sales Text of material master using create_text
Hi All,
I need to update Sales Text field for existing materials in material master.
(mm02->sales Text view>sales text)
This text will be of 40-50 char length.
Now if i use CREATE_TEXT with following paramters, no text is getting updated in the material master.
Import Paramters:
FID: 0001
FLANGUAGE: EN
FNAME: <material no><sales org><Dist channel>
FOBJECT: MVKE
SAVE-DIRECT : X
FFORMAT: *
Tables:
FLINES: <Sales text>
After execution of this FM, no error message is popped up.
Is it the right way to update the sales Text or any changes need to be done in defining paramters in Function module?
Kindly Guide me.....
Regards
PavanMArtin,
Can you inform me what all paramters to be passed in SAVE-TEXT module?
Regards
Pavan -
Uploading sales text and Purchase order text for material master
Hi,
I have created, material master with LSMW byt not updated SALES TEXT and Purchase order text with LSMW now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text when i have done the recording with SHDB i have not found filed in recording.
regards,
zafarHi,
I have made the code in se38
as below but still it is not working
REPORT ZTEST_TEXT.
data: headerl like thead occurs 0 with header line.
data itab3 like tline occurs 0 with header line.
headerl-tdobject = 'MATERIAL'.
headerl-tdname = '00000000000LSMW123'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = 'BEST'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing PO text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = ' '
savemode_direct = ' '
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
IF SY-SUBRC = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = headerl-tdobject
NAME = headerl-tdname.
ENDIF.
break-point.
regards,
zafar -
Problem in Material master sales text update
Hi,
I have make the LSMW for uploading material master sales text update by using standad batch / direct input object 001 program /SAPDMC/SAP_LSMW_IMPORT_TEXTS but as the formate of NAME required is as below
Materila code 18 Char SALES ORG 4 CHAR DIS. CHANNEL 2 CHAR total 24 char but in our system some material code is only 6 CHAR e.g ABCXYZ now when we pass the value for name
ABCXYZ SORGDC , it works OK we have to add blank spaces between material code asnd sales organuization so that total lenght of material should be 18 char so is there any option for this insted of addin gblank spaces because for each material code lenght is diffrent due to external number range .
regards,
zafar
Moderator Message: Search before you post. If you fail to get an answer, type a question, spell-check it and post it here.
Edited by: kishan P on Feb 16, 2011 4:47 PMfrom http://help.sap.com/saphelp_erp2005/helpdata/en/f4/b49e8c453611d189710000e8322d00/content.htm
Text Entry Area
Type your text into the text entry lines. You can type continuously: SAPscript fills your text using a line length of 72 characters as soon as you choose ENTER or a function.
To enter text in the line editor continuously, the checkbox Automatic tab at field end must be marked. For more information on setting automatic tabbing, see Setting Automatic Tabbing and Entering Text.
Note that the line editoru2019s text filling has no influence on the final appearance of the text. Your text is formatted no earlier than at the time it is displayed or printed. For more information, see Previewing and Printing SAPscript Documents. -
Update Sales Order with Text-Line and without regular Lines
Hello Experts,
i have a problem to update a Sales Order with no Item-Lines but with one Text-Lines or one Sub-Total-Lines.
I get only the Error "The specified resource name can not be found in the image file", the %temp% are delete.
i have testet with Methode: #updateDocWithSubDeletion, #Synchronnous Update, #Synchronous Insert with fallback to Update (i was desperate)
my Scenario look like this:
my Payload:
i have allready testet with the part AdminInfo und QueryParams with the same Error.
<Payload id="atom6" Role="X">
<Documents xmlns="">
<row>
<DocNum>227780</DocNum>
<DocType>dDocument_Items</DocType>
<HandWritten>tNO</HandWritten>
<Printed>psNo</Printed>
<DocDate>20150423</DocDate>
<DocDueDate>20150423</DocDueDate>
<CardCode>61052</CardCode>
<CardName>Durchlauf</CardName>
<DocCurrency>EUR</DocCurrency>
<DocRate>1.000000</DocRate>
<DocTotal>0.000000</DocTotal>
<Reference1>227780</Reference1>
<JournalMemo>Kundenaufträge - 61052</JournalMemo>
<PaymentGroupCode>-1</PaymentGroupCode>
<DocTime>0819</DocTime>
<SalesPersonCode>2</SalesPersonCode>
<TransportationCode>-1</TransportationCode>
<Confirmed>tYES</Confirmed>
<SummeryType>dNoSummary</SummeryType>
<ContactPersonCode>0</ContactPersonCode>
<ShowSCN>tNO</ShowSCN>
<Series>5</Series>
<TaxDate>20150423</TaxDate>
<PartialSupply>tYES</PartialSupply>
<DocObjectCode>17</DocObjectCode>
<DiscountPercent>0.000000</DiscountPercent>
<DocTotalFc>0.000000</DocTotalFc>
<RevisionPo>tNO</RevisionPo>
<RequriedDate>20150423</RequriedDate>
<CancelDate>20150523</CancelDate>
<BlockDunning>tNO</BlockDunning>
<Pick>tNO</Pick>
<PaymentMethod/>
<PaymentBlock>tNO</PaymentBlock>
<MaximumCashDiscount>tNO</MaximumCashDiscount>
<WareHouseUpdateType>dwh_CustomerOrders</WareHouseUpdateType>
<Rounding>tNO</Rounding>
<DeferredTax>tNO</DeferredTax>
<NumberOfInstallments>1</NumberOfInstallments>
<ApplyTaxOnFirstInstallment>tNO</ApplyTaxOnFirstInstallment>
<DocumentSubType>bod_None</DocumentSubType>
<Address2/>
<UseShpdGoodsAct>tNO</UseShpdGoodsAct>
<IsPayToBank>tNO</IsPayToBank>
<DownPayment>0.000000</DownPayment>
<ReserveInvoice>tNO</ReserveInvoice>
<LanguageCode>9</LanguageCode>
<SequenceModel>0</SequenceModel>
<UseCorrectionVATGroup>tNO</UseCorrectionVATGroup>
<DownPaymentAmount>0.000000</DownPaymentAmount>
<DownPaymentPercentage>0.000000</DownPaymentPercentage>
<DownPaymentType>dptInvoice</DownPaymentType>
<DownPaymentAmountSC>0.000000</DownPaymentAmountSC>
<DownPaymentAmountFC>0.000000</DownPaymentAmountFC>
<VatPercent>0.000000</VatPercent>
<ServiceGrossProfitPercent>0.000000</ServiceGrossProfitPercent>
<OpeningRemarks/>
<ClosingRemarks/>
<RoundingDiffAmount>0.000000</RoundingDiffAmount>
<ControlAccount>1200</ControlAccount>
<InsuranceOperation347>tNO</InsuranceOperation347>
<ArchiveNonremovableSalesQuotation>tNO</ArchiveNonremovableSalesQuotation>
<ExtraMonth>0</ExtraMonth>
<ExtraDays>30</ExtraDays>
<CashDiscountDateOffset>0</CashDiscountDateOffset>
<StartFrom>pdt_None</StartFrom>
<NTSApproved>tNO</NTSApproved>
<EDocGenerationType>edocNotRelevant</EDocGenerationType>
<DownPaymentStatus>so_Open</DownPaymentStatus>
<GroupHandWritten>tNO</GroupHandWritten>
<CreateOnlineQuotation>tNO</CreateOnlineQuotation>
</row>
</Documents>
<Document_SpecialLines xmlns="">
<row>
<AfterLineNumber>-1</AfterLineNumber>
<LineType>dslt_Subtotal</LineType>
<LineText>Zwischensumme</LineText>
</row>
</Document_SpecialLines>
<Document_Lines xmlns="">
<row>
<ItemCode>108044</ItemCode>
<Quantity>0.01</Quantity>
<FreeText/>
</row>
</Document_Lines>
<TaxExtension xmlns="">
<row>
<NetWeight>0.000000</NetWeight>
<GrossWeight>0.000000</GrossWeight>
<StreetS/>
<BlockS/>
<BuildingS/>
<CityS/>
<ZipCodeS/>
<CountyS/>
<StateS/>
<CountryS/>
<BuildingB/>
</row>
</TaxExtension>
</Payload>
when I insert a new row with an ItemCode , it works
Thanks and Best Regards
RonnyHi,
why don't you create a simple scenario to export B1 Sales Order to XML File?
Maintain the SalesOrder via B1 client UI and check the result in XML as exported to file.
In the Sales Order xml file you can easily see how "AfterLineNumber" needs to be filled in segment "Document_SpecialLines" to achieve what you've entered via B1 client.
Normally the LineNum for B1 Documents starts counting with 0 and if you need to add a subtotal line after a regular item row, the "AfterLineNumber" value should be 0.
Best regards
Bastian -
How to update the sales text in the Sales Order.
Dear all,
I want to Update the sales text in the Sales Order. I used the "CREATE_TEXT" but i couldn't update using it.
Can u please guide me, how to use the Function Module to update the sales Order line item text values.
Thank U
UwanthiHI
Check this link
User Exit to update Sales order text (Terms of delivery) on saving it
Regards,
Krishna
Maybe you are looking for
-
Can't get my facetime to work with my mac and my wifes i phone touch
my face time does not work with my macbook connecting to my wifes i phone touch and we are in the same room she calls me my mac rings then cuts straight off. My mac will not connect to hers at all
-
Hi Does anyone know if its possible to query data based on direction eg. select all objects that are east of object A. Thanks K
-
I didn't receive what I brought
So I brought a $25 iTunes card and went to purchase the $9.99 diamond pack on Edjing and I didn't receive it, but you guys took my money from my account. That's $10 dollars gone. After this I went to check and I had $15 in my account and I still didn
-
Hi, We are trying to configure STMS on AS400 V5R3,Solman Unicode system.when configuring the domain TP is running to error.We are on latest version of TP and R3trans.I tried to call the program CALLTP_OS400 in SM59 and its running to error. below is
-
Making Charts in Pages and Keynote
Hello All. Simple question I am sure. Is there a way to create a chart in Pages and then directly import that into Keynote? It seems very easy, but I can't seem to do it. I would like to be able to have both charts in two documents. I don't care if t