A text on the invoice header It is copied from the customer master
Hi need to create a text in smart form the requirement is as below
Its a text on the invoice header.It is copied from the customer master to the order than to delivery and finally on the invoice.
Regards
Rasheed
Hi!
You have to write a code in your SMARTFORM for this.
First you have to read the customer master data from the table KNA1.
Then you have to read from the SD order and invoice, this can be found in table VBPA.
Regards
Tamá
Similar Messages
-
How to upload a text in the customer master?
hiall,
in vd02 u go to extras->texts.
Now I have to upload a text there..
so i passed the text objetct-knvv
name-kunnrvkorgvtweg+spart
id-the rewuired agains which i have to upload
lang-en
i used fm save_text in badi method read_add_on_data in prog sapmvf02d.
though the fm is working but when i am executing vd02 again the text is not appearing in vd02..Can u help me with this..Hi,
Upload Program for Xk01 ..
REPORT Y730_BDC5 .
DATA : BEGIN OF IT_DUMMY OCCURS 0,
DUMMY(100) TYPE C,
END OF IT_DUMMY.
DATA : BEGIN OF IT_XK01 OCCURS 0,
LIFNR(10) TYPE C,
BUKRS(4) TYPE C,
EKORG(4) TYPE C,
KTOKK(4) TYPE C,
NAME1(30) TYPE C,
SORTL(10) TYPE C,
LAND1(3) TYPE C,
SPRAS(2) TYPE C,
AKONT(6) TYPE C,
FDGRV(2) TYPE C,
WAERS(3) TYPE C,
END OF IT_XK01,
BEGIN OF IT_BANK OCCURS 0,
BANKS(3) TYPE C,
BANKL(10) TYPE C,
BANKN(10) TYPE C,
KOINH(30) TYPE C,
LIFNR(10) TYPE C,
END OF IT_BANK.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = 'C:\VENDOR.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = IT_DUMMY.
LOOP AT IT_DUMMY.
IF IT_DUMMY-DUMMY+0(2) = '11'.
IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
APPEND IT_XK01.
ELSE.
IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
APPEND IT_BANK.
ENDIF.
ENDLOOP.
LOOP AT IT_XK01.
REFRESH IT_BDCDATA.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
IT_XK01-LIFNR.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-TELX1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORTL.
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_field using 'LFA1-SPRAS'
IT_XK01-SPRAS.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
DATA : FNAM(20) TYPE C,
IDX TYPE C.
MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKS.
CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKL.
CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKN.
CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-KOINH.
IDX = IDX + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'WYT3-PARVW(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_BDCMSGCOLL.
ENDLOOP.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.
Regards -
Upload of purchase order text in the material master
Now we have information of Purchase order text for all the material.
Is it possible to upload the Purchase order text using LSMW.
Some friends were telling that LSMW is not possible for Purchase Order text.
Can anyone suggest how I can upload this purchase order text for all 1000
material using LSMW program.
/if not LSMW is there any other method to upload it
thanks in advance
deepak.s.gouraDear Deepak,
there is standard direct upload i believe
go to lsmw
Execute 1st option
then inLSMW:Object Attribute screen
in standard batch/ direct input
firsr radio button
select object 005
and method 003
Program name RSTXLITF.
Then go by normal process i.e source field , field mapping...
In this way u can also upload Text in the Material master.
Rewards if helpful
Regards
Sanjay L -
Authorisation object for "PO text in the material master"
Hi,
My requirement is as below:
"All users can see the Purchase Order Text as usual, but only a few users should be allowed to create / change the PO Long Text.
For other users, the same should appear in display mode only (both in creation & in change mode, MM01 & MM02)."
Please let me know, How to map this.
As per my knowledge thsi is possible only thru authorisation. But I want to know what is the authorisation object for "PO text in the material master" (Pl note that only for PO text in the material master field). we want control on "PO text of material master"
Regards.
ChinnaHi,
The authorisation object is "M_MATE_MAT", pl check
Regards
Merwyn -
Custom program to download texts from the Customer master
Hi team,
I want to create a Functional specification for downloading texts from the Customer master.
Means we are trying to come up with a Zprogram development so that this program can be used later to download texts from the customer master.
Can any one advice me what are the steps to do this....and what procedure be followed to finish this task
Kindly advice from the Functional aspect
Regards,
saprules.Yes indeed.
This mass download functionality would be very interesting to share.
Thanks a lot!
Best regards,
Roel -
Text Data Value of the Customer Master
Dear All,
I have created a new text types for the customer as Z001 and Z004.
But now i want to create report with the customer and value maintain in those text fields. I'm little confuse how take the values. I know i have to go to the table STXH but i cant see the text value which i have entered under the text field.
Please help me to solve the above.
Thank U
YasangaDear Yasanga,
As suggested by SAP2000, the usual method to read text is by using the function module 'read_text'
you have to give the text id/ object/ language etc and system will give the text assigned to the customer master.
If there is any trouble, please revert back.
Thanks & Regards,
Hegal K Charles -
How to define ABC class field in the Customer Master Sales tab
HI All,
can any one let me know how to define the new ABC class in the Customer Master Sales tab like below.
u2013 A (> 6,000,000 )
u2013 B (> 1,000,000u20136,000,000 )
u2013 C (> 100,000u20132,000,000 )
u2013 D (< 100,000 )
can any one let me know how to define and path in IMG.
Thanks in advance.
kumar reddy.In my opinion, you don't have any such std table/view to update ABC Classification field. You might need to update relevant infostructure based on your requirement, such as sales, invoiced, etc..
Try with following, based on your requirement:
MC(A
SIS: Customer,Inc.Orders - Selection
MC+A
SIS: Customer Returns, Selection
MC+E
SIS: Customer, Sales - Selection
MC+I
SIS: Customer Credit Memos - Selec.
Regards
JP -
Workflow keying off changes in the customer master
I have created a workflow that triggers off of changes to a particular field in the customer master.
Everything works great.. However, users are requesting to see the old value as well as the newly changed value.
The event container doesn't seem to hold the previous changed value, only the new one.
It does have have the object key and the event time and date.The only option I see is to have my custom method go back and read the change doc table (cdhdr & cdpos) in and around the event time for the object key ( kna1) to retrieve the old value.
Any suggestions are appreciated.Hi,
The address data is always saved with the dates (look in table adrc). SO maybe you can retrack the original address.
Why do you print again an invoice. And if you do i think it is alright when it is sent to the current address and not to the old address.
Gr., Frank -
Goods receiving hours in the customer master.
Friends,
Can any one explain goods receiving hours in the customer master. what exactly this fields is used.
thanks
Devi reddyHi,
We define the possible goods receiving hours of your customers. With this function, you can plan the shipping activities so that the deliveries arrive by the desired deadline in the right city at the right time.
The goods receiving hours are copied by the System from the customer master record into the delivery header according to the unloading point and the delivery date.
Goto IMG -> Sales & Distribution -> Master Data -> Business Partner -> Customer ->Shipping ->Define Goods Receiving Hours.
Here you define the goods receing hours by 3 digit number, for example, Week days only or also on Satur days ect. use the same in customer master.
Hope this is clear.
thanks
Praveen -
Report for abserving changes made to the customer master and moniter
Report for abserving changes made to the customer master and moniter and detail
Please send with t. code.Hi Dhari,
Well the requirement seems very simple but its not as simple as it looks.
i have an idea not sure whether it gonna work or not. you need to build a history cube as if i understand your requirement then for any selected period you wanna see the change in wage type or pay rate for each employee if any.
1. pick up an cube that builds on emp transaction data.
2. add the 0empoyee Md, wage type and pay rate from MD to the cube and fill the cube
3.so now every day or in scheduled time interval the MD will load and the corresponding the TD will be loaded to the cube.
4. create a info object say indicator and add it to the cube
5.while loading the data to the cube everyday in tranformation check if for same employee there is a change or not in the wage type and pay rate. If so set the indicator to 1.
4.now build one more cube for holding the changed records from this cube and call it say zhrchange
5. now pull the date, year and related emplyee information for the emplyee to the zhrchange for those with indicator 1.
6. before the next load happen, rememrbe to set the indicator to 0 before checking the conditoin in the transformation routine , so that only if the conditoin satisfy then only it will be 1 else it will be 0.
now the cube zhrchange has all the changed records with time stamp and you can base your query on that to get the changed values in specific time period
hope this helps. -
Deleting Partners from the Customer Master that are on Open Sales Orders.
Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Customer Master. For us, this is not happening, this there some config that must be turned on for this to happen ?
Or do we have place in code in a User Exit in the Customer Master to check for Open Sales Orders and if so, block the Deleting of the Partner ? If so, what User Exit should be used ?
Looking to see how others have handled this.
Thanks,
DavidHi David,
Try this user exit.
RFDRRANZ User exits: Accounts Receivable Information System
Regards,
Vijay -
Setting the custom master page through powershell is NOT working
Hi,
I am writing the below code to set the custom master page through powershell.
But its not working .when i went to site settings-->master page --> in the drodown , the maste page set is seattle.master ONLY, though my current master page is available in the dropdown.
Can anyone pls help, whether i am missing in the below :
Add-PSSnapin Microsoft.SharePoint.Powershell
$SiteURL = "http://srvr1:22307/sites/SPW5"
$weburl= $SiteURL
$Site= Get-SPSite $SiteURL
$web = $Site.OpenWeb()
$web.CustomMasterUrl = "/_catalogs/masterpage/myMasterpage.master"
$web.MasterUrl = "/_catalogs/masterpage/myMasterpage.master"
$web.Update()
DasHi,
Is it a publishing page? If yes can you try the PowerShell scripts corresponding to the following code snippet?
var publishingWeb = PublishingWeb.GetPublishingWeb(web);
publishingWeb.CustomMasterUrl.SetInherit(inheritFromParent, false);
publishingWeb.CustomMasterUrl.SetValue(masterPageUrl, false);
publishingWeb.MasterUrl.SetInherit(inheritFromParent, false);
publishingWeb.MasterUrl.SetValue(masterPageUrl, false);
I've noticed sometime (not sure though) that Master page doesn't get updated if the inherit property is not updated first.
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
"Vendor" field in the customer master - XD03
Hi,
I would like to know how useful the "vendor" field can be in the "control data" tab of the customer master (and vice versa with the vendor master).
Is this only for information only or can we use this information to consolidate open items for one particular vendor that is also a customer?
And how to do this if consolidation is possible?
Thanks,
RonanHello,
When a Customer is also a Vendor and decided to net of the transactions with each others account in order to offset the entries.
We need to get USD 100 from Customer A
We need to pay USD 50 to Vendor A
Ultimately, we need to get 50 from Customer A (Customer A and Vendor A is the same entity)
To do this, You need to create Customer A in the Vendor Master and Vendor A in the Customer Master.
You also need to check "Clear Customer with Vendor" check box in the master data.
This will result in customer items and vendor items cleared against each other.
Regards,
Ravi -
I am unable to upload the customer master data using BAPI.?
Hi Guru's,
i am unable to upload the customer master data using BAPI.(BAPI_CUSTOMER_CREATEFROMDATA1)
Please guide me how upload the data...
Thanks in iadvance
Srinivas...Hello Srinivas
This BAPI does not allow to create a new customer from scratch but only to copy an existing customer to a new one and change its address data.
The reference customer has to be provided using IMPORTING parameter PI_COPYREFERENCE. See also the BAPI documentation for more details.
The BAPI does the same like transaction XD01 with Reference.
Regards
Uwe -
How can I get the employee code in the customer master
Hi
What are the settings that I do so that I can get the employee code in the customer master?
We want to create a sales order on a employee , we have HR and SD in the same box.
regards
PravinHi
I tried xd02 it asks me for the customer , ifi click the search icon it opens up the search where thre is a tab named "Customer by Personnel Numbeer" when i try to search it does not show any employees even thoughi havemanyhired in HR
Please tell me what i need to do
regards
Pravin
Maybe you are looking for
-
Do you have to upgrade to Windows 8.1 or is this a squeeze chute with no option?
I have finally got my computer to operate without any problems and all my programs work fine, the last time I upgraded to Windows 8.1 I had all kind of issues. So my question is; do you have to upgrade to Windows 8.1 or is this a squeeze chute with n
-
ADF/BC Swing PasswordChangeDialog
Hello, is there an easy way to create a Password Change Dialog for Database Users? ak
-
Oracle VM as virtual machine - Networking
hi I have seen some docs about networking, and thus how to install oracle vm 3.2.x as virtual guest on top of the cloud stack (HA enabled). Is there any best practices document for networking in this fashion? We like to have 3 networks. Network manag
-
Web to execute commands in other machines
Hi, I have to do a web page to execute commands (exe, bat) situated in different machines. I need to see the results in my web page, and I would prefer to have my distributed application deployed in application servers instead of have to run jvm in t
-
Conditional RemoveChild?
Hello there! I've created a search form based on a canvas (id="searchCanvas"), which is hidden by default. A button is used to display it (or hide it again), according two defined states "hiddenSearch" and "visibleSearch", with "hiddenSearch" as the