Uploading Sales Text Through BDC
hi friends,
i want to upload Material Sales Text Through BDC Program.
Please let me know how to do this.
regards,
srinivas
hi friends,
i want to upload Material Sales Text Through BDC Program.
Please let me know how to do this.
regards,
srinivas
Similar Messages
-
Condition types uploading in Sales order through BDC or BAPI
Hi Friends,
I want to know while uploading Sales Order through BDC or BAPI,whether we have to give Pricing Condition types also in Flat File.....
i.e. for example
PR00-5000
K004-100
JEXP-12%
JECS-2%
I am totally confused with this...
Please help me out....Hi,
Normally in SAP Pricing Procedure we have some Automatic and some manual cond.types.
If one sales order having 5 different items and in other sales order having 10 different items...then how i have to maintain.
how exactly we to have upload flat file...
with regards
Edited by: Azeez Mohammed on Sep 16, 2008 4:44 PM -
When I create Return Sales Order through BDC sales order doesnu2019t create.
Deal Guru,
When I create Return Sales Order through BDC sales order doesnu2019t create.
It shows created sales document number but when I display this document I am getting message Document is not in database.
After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
I am receiving following message in SAP inbox for following issue.
But when I create Return Sales Order through VA01, it is working. Please give me some idea.
Detail Message
Update was terminated
System ID.... PRO
Client....... 900
User..... DEVELOPER2
Transaction.. VA01
Update key... 4961DBF46A6B09D2E10080020A02281C
Generated.... 05.01.2009, 16:03:40
Completed.... 05.01.2009, 16:03:40
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
Regards
MakarandHi Rory
Try this link:
BAPI can't to create SO,But used bapi data with manual can?
Regards
Neha -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
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é -
How to upload Purchase oder text through BDC. or BAPI
Hi...
I wish to know how to upload purchase oder text wich is in MM01 t-code and has a screen number 4040 and program name SAPLMGMM, i want to migrate a material master data to another client by this fields, Basic, Purchasing, Purchase oder text ( long text), general plant date/storage1 and accounting. for that i am suspicious about uploading a purchase oder text with bdc...if i am true how i can have this by bapi or another means...please help me
...thaking you....Hi,
Use FM - BAPI_PO_CREATE1
It will fetch both HEADER and ITEM text.
This module is used to create a PO and as u r involved in a data migration, I can suggest to use this one.
Hope It'll help.
Thanks & Regards,
Ankur -
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 -
Hi Gurus,
I am facing some problem during the recording of hader text.. Details given below...
I need to do this by using BDC...
 VA01 Steps as follows:
1. Open VA01
o Enter G2 or L2 order Type
o Enter 9991 for Sales Org
o Enter 01 for Dist Channel
o Enter 99 for Division
2. Enter Customer SAP # from spreadsheet to ship to and sold to
(Enter some appropriate number)
3. Enter Material Code from spreadsheet to Material
(Enter some appropriate number)
4. Enter target quantity as 1
5. Enter Billing date as system date
6. Go to Sales Tab
7. Select Blank for billing block
8. Enter order reason 013 for G2 type or 012 for L2
9. Goto Header, Texts, Choose Invoice header text
10. Enter SVB# from file as well as Quarter Text from file in notes
11. Save
this is want i need to do in order to create invoice serivce request by using BDC.
I can able to get the fields till 8 th point ( i can able to write the program ), but from the 9 th point i m facing the problem..
Bcz it just i need to enter some text here..( may be it's bcz of click )
This is could not able to do it , can you please help me how can i do this ?
Please let me know if i m not clear with my explanation...
Looking forward for your response...Hi,
Please refer this link:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/4e/09d47b8389d4439fa70159920f4bbe/frameset.htm.
Regards,
Rahul -
Error While Uploading Material Master Through Bdc Call Transaction
Hi Sap Gurus,
I am doing Bdc call Transaction for Material Master Uploading.
But After Entering data for 4-5 screen i got a error_
Field Mara-iprkz doesn,t exit in the screen saplmgmm 4000
Field Mara-prctr doesn,t exit in the screen saplmgmm 4000
Field Mbew-stprs doesn,t exit in the screen saplmgmm 4000
Field Marc-mtvfe doesn,t exit in the screen saplmgmm 4000
Enter Valuation class.
This is my Programme....................................
<removed by moderator>
Thanks in advance.
Arindam
Moderator message: please post only relevant code parts, your post must be less than 5000 characters to preserve formatting.
Edited by: Thomas Zloch on Apr 16, 2011 9:29 PMSorry for my obvious answer, but you should ask a more precise question.
Your errors are that you try to enter fields but they don't exist, so it sounds logic.
And the error "Enter Valuation class." means that the field is mandatory. So you must enter it.
Re-record the transaction using SHDB (eventually play with the http://wiki.sdn.sap.com/wiki/display/ABAP/Recordduringplay), run it in A display mode, and correct your program.
Sandra
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MVKE-SKTOF'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MARC-PRCTR'
wa_mara-prctr."'MUMBAI'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'MARA-IPRKZ'
'D'. -
How we can upload the data through BDC for transaction J1ID
Hi guru
How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
Fields. 11 Fields.plz provide some code logic.
KUNNR J_1IEXCD J_1IEXRN J_1IEXRG J_1IEXDI J_1IEXCO J_1ICSTNO J_1ILSTNO J_1IPANNO J_1IEXCICU J_1ISERNHi,
I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
SEARCH SCN for Table Control in BDC
Regards
Karthik D -
Error while uploading Long Text in IA05 through BDC.
Dear Team,
Good Day.
While we are trying to upload the Long Text through BDC for IA05 operations the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
Regards,
Bhanu.Bhanu,
I've modified the previous message with a correction that, I had used this for uploading Activity lines Longtexts.
One more thing: After I faced some problem, I used split text in the code. i.e., Splitting the longtext into several lines (72 char each). Show these code lines to your ABAPer, may be he might be able to draw some clues.
In the BDC lines alongwith other fields the gold line below
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'BDC_OKCODE' '=MX07'.
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'BDC_CURSOR' 'QMICON-LTAKTION(07)'.
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'VIQMMA-MATXT(07)' FS_FIELD-MNTXT7.
PERFORM SPLIT_LONGTEXT USING COL_COUNT.
Code for Form SPLIT_LONGTEXT is attached herewith (MATXT1 to MATXT7 are longtext split into 7lines )
Best of luck
KJogeswaraRao -
To upload into sales text in MM01
Hi,
In MM01 i have to upload sales text from .xls format.
I tried using BDC for it but i dont think it works bcos
in session method (SHDB) the sales text part will not get
recorded since the sales text field does not have field name for it.
Can anybody tell me how to upload the sales text ( in text editor) from excel file.
Thank you,
Deepakhi
this is regarding to the topic which i posted yesterday for loading long text in mm01 in sales text.
DATA: l_head LIKE thead.
DATA: t_lines TYPE TABLE OF TLINE WITH HEADER LINE.
l_head-tdid = '0001'.
l_head-tdspras = 'E'.
l_head-tdname = record-matnr_001.
l_head-tdobject = 'MVKE'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = L_HEAD
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
tables
lines = T_LINES
from the above sample code i think the text has to be stored in the internal table t_lines.
but over here t_lines in empty.
can anybody tell me what the error is????
With regards
Deepak -
Unable to update the serial number through bdc in Sales Order
Hi experts,
I written the inboud FM for to update the 3rd party items serial number to the sales orders through BDC Call transaction Method.
Here i am facing a problem when i have the 19 item Quan ,it is updating correct through idoc , when ever there is moe than 19 and at that if any serial number repeated for that if i am changing at that time it is loosing the control of the BDC and giving the control to the salesorder screen.
how can i handle that control again has to come to BDC prgrm......
Thnks,
Regards,
BharaniHi,
Can you please let me know the segment in ORDERS05 Idoc to process the Payment card information and if the standard Function Module can handle the creation of a Sales Order with data for Payment Card.
We have a requirement to map the Tokenized Number of the Credit Card send from a store front end to ECC mapping via SAP-PI.
Thanks in Advance, -
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. -
Error While uploading Long Text for Operations in IA05 Transaction.
Dear Team,
Good Day.
While we are trying to upload the Long Text through BDC for IA05 operations the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
Regards,
Bhanu.Hi Bhanu
correct me if im wrong, the long text is a multiline text, its an object for text, this cant be filled with BDC since this object can not be created in background mode, so i think the bdc skip the routines to fill this object, you can use the save_text function right after the transaction ends
Regards
MC
Maybe you are looking for
-
How to delete photos in ipad?
how to delete photos in ipad?
-
Move/Resize photo within a mask?
I've been trying to figure this out forever: When I drag one of my photos onto a placeholder image that is on an Apple template, it replaces it just fine. The problem I have is that I want to be able to move/resize my image around inside the mask unt
-
What is the final c: drive size on this computer(640gb hard drive) after all of the setup? I installed a linux distribution to dual boot, but then decided to delete it and want to make sure that the partition I made for this isn't just sitting there
-
Why can't I get my audiobooks on my computer?
I am trying to transfer an audiobook I purchased from iTunes on my iPad to my Mac air Very frustrated
-
Ipod nano completely formatted, missing .ipod_control folder
My son was trying to help his sister clear out her 3rd generation ipod nano. He completely formatted the contents of the ipod. I can't restore or install firmware or OS as iTunes simply doesn't recognize it. The .ipod_control folder is gone, the only