Problem creating vendor
Hi Guys,
i was just creating a vendor for my own use. while creating vendor using transaction xk01 the account group field is creating problems. Can you please give me an example of step by step creation of a vendor using xk01
Hi,
The account group specifies that whether a Vendor number has to be assigned by us or you wants the system to generate an internal number depending on the different Company Codes and Pur.Orgns'.
Do you wants to creat some vendors using BDC.
Here is the sample code of BDC for vednor creation:
REPORT zmm_vendor_master_upload
NO STANDARD PAGE HEADING
LINE-SIZE 255.
ABAP Name : ZMM_VENDOR_MASTER_UPLOAD
Description : This Program is used to Upload the Vendor Master.
Modification Log:
Date Programmer Correction Description
Standard Include for Selection Screen
INCLUDE bdcrecx1.
Internal Table for Upload Data
DATA: BEGIN OF i_vendor OCCURS 0,
bukrs(004), " Company Code
ekorg(004), " Purchase Orgn
ktokk(004), " Account Group
Address Screen
anred(015), " Title
name1(035), " Name1
sortl(010), " Sort Field
name2(035), " Name2
name3(035), " Contact Person1
name4(035), " Contact Person 2
stras(035), " Street
pfach(010), " PO Box
ort01(035), " City
pstlz(010), " Postal Code
land1(003), " Country
spras(002), " Language
telf1(016), " Telephone No
telfx(031), " Fax Number
lfurl(132), " URL-Mail Id
Material Group Characteristics
klart(003), " Class Type '010'
class(018), " Class 'Vendor'
mname_01(030), " Characteristic
mname_02(030), " Characteristic
mname_03(030), " Characteristic
mwert_01(030), " Charct.Value
mwert_02(030), " Charct.Value
mwert_03(030), " Charct.Value
Control Data
emnfr(010), " Manufact.Part No
Bank Details
banks_01(003), " Country of Bank1
banks_02(003), " Country of Bank2
bankl_01(015), " Bank Key of 1
bankl_02(015), " Bank Key of 2
bankn_01(018), " Account No Bank1
bankn_02(018), " Account No Bank2
Accounting Info
akont(010), " Reconcillation Account
zuawa(003), " Sort Key
fdgrv(010), " Cash Management Group
Payment Transactions
zterm(004), " Payment terms
reprf(001), " Check Double Inv.
zwels(010), " Payment Method
hbkid(005), " House Bank
xpore(001), " Individ.Payment
Correspondence
mahns(001), " Dunning Level
xausz(001), " Account Statement
Withholding Tax Details
qland(003), " Withholding Tax Country
witht_01(002), " WH tax Type
wt_withcd(002), " WH Tax Code
wt_subjct(001), " Indicator:WH Tax
Purchasing Data
waers(005), " Currency
zterm1(004), " Payment Terms
END OF i_vendor.
Data Variables & Constants
CONSTANTS : c_x VALUE 'X'. " Flag
Paramters
PARAMETERS: p_file LIKE ibipparms-path. " 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.
Open the BDC Session
PERFORM open_group.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_vendor
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Upload the Data from Internal Table
LOOP AT i_vendor.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-BUKRS'
i_vendor-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
i_vendor-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
i_vendor-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-SPRAS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=KLAS'.
PERFORM bdc_field USING 'LFA1-ANRED'
i_vendor-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
i_vendor-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
i_vendor-sortl.
PERFORM bdc_field USING 'LFA1-NAME2'
i_vendor-name2.
PERFORM bdc_field USING 'LFA1-NAME3'
i_vendor-name3.
PERFORM bdc_field USING 'LFA1-NAME4'
i_vendor-name4.
PERFORM bdc_field USING 'LFA1-STRAS'
i_vendor-stras.
PERFORM bdc_field USING 'LFA1-PFACH'
i_vendor-pfach.
PERFORM bdc_field USING 'LFA1-ORT01'
i_vendor-ort01.
PERFORM bdc_field USING 'LFA1-PSTLZ'
i_vendor-pstlz.
PERFORM bdc_field USING 'LFA1-LAND1'
i_vendor-land1.
PERFORM bdc_field USING 'LFA1-SPRAS'
i_vendor-spras.
PERFORM bdc_field USING 'LFA1-TELF1'
i_vendor-telf1.
PERFORM bdc_field USING 'LFA1-TELFX'
i_vendor-telfx.
PERFORM bdc_field USING 'LFA1-LFURL'
i_vendor-lfurl.
PERFORM bdc_dynpro USING 'SAPLCLCA' '0602'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-KLART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'RMCLF-KLART'
'010'. "i_vendor-klart.
PERFORM bdc_dynpro USING 'SAPLCLFM' '0500'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-CLASS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=AUSW'.
PERFORM bdc_field USING 'RMCLF-CLASS(01)'
'Vendor'."i_vendor-class.
PERFORM bdc_dynpro USING 'SAPLCTMS' '0109'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RCTMS-MWERT(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_field USING 'RCTMS-MNAME(01)'
'MATERIALGROUP'." i_vendor-mname_01.
PERFORM bdc_field USING 'RCTMS-MNAME(02)'
'MATERIALGROUP'." i_vendor-mname_02.
PERFORM bdc_field USING 'RCTMS-MNAME(03)'
'MATERIALGROUP'." i_vendor-mname_03.
PERFORM bdc_field USING 'RCTMS-MWERT(01)'
i_vendor-mwert_01.
PERFORM bdc_field USING 'RCTMS-MWERT(02)'
i_vendor-mwert_02.
PERFORM bdc_field USING 'RCTMS-MWERT(03)'
i_vendor-mwert_03.
PERFORM bdc_dynpro USING 'SAPLCLFM' '0500'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-CLASS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENDE'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-ANRED'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-EMNFR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFA1-EMNFR'
i_vendor-emnfr.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFBK-BANKS(01)'
i_vendor-banks_01.
PERFORM bdc_field USING 'LFBK-BANKS(02)'
i_vendor-banks_02.
PERFORM bdc_field USING 'LFBK-BANKL(01)'
i_vendor-bankl_01.
PERFORM bdc_field USING 'LFBK-BANKL(02)'
i_vendor-bankl_02.
PERFORM bdc_field USING 'LFBK-BANKN(01)'
i_vendor-bankn_01.
PERFORM bdc_field USING 'LFBK-BANKN(02)'
i_vendor-bankn_02.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB1-AKONT'
i_vendor-akont.
PERFORM bdc_field USING 'LFB1-ZUAWA'
i_vendor-zuawa.
PERFORM bdc_field USING 'LFB1-FDGRV'
i_vendor-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-XPORE'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB1-ZTERM'
i_vendor-zterm.
PERFORM bdc_field USING 'LFB1-REPRF'
c_x. "i_vendor-reprf.
PERFORM bdc_field USING 'LFB1-ZWELS'
i_vendor-zwels.
PERFORM bdc_field USING 'LFB1-HBKID'
i_vendor-hbkid.
PERFORM bdc_field USING 'LFB1-XPORE'
c_x. "i_vendor-xpore.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB5-MAHNS'
i_vendor-mahns.
PERFORM bdc_field USING 'LFB1-XAUSZ'
i_vendor-xausz.
PERFORM bdc_dynpro USING 'SAPMF02K' '0610'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBW-WT_SUBJCT(01)'.
PERFORM bdc_field USING 'LFB1-QLAND'
i_vendor-qland.
PERFORM bdc_field USING 'LFBW-WITHT(01)'
i_vendor-witht_01.
PERFORM bdc_field USING 'LFBW-WT_WITHCD(01)'
i_vendor-wt_withcd.
PERFORM bdc_field USING 'LFBW-WT_SUBJCT(01)'
c_x.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFM1-WAERS'
i_vendor-waers.
PERFORM bdc_field USING 'LFM1-ZTERM'
i_vendor-zterm1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
Call the Transaction
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
Close the BDc Session
PERFORM close_group.
Regards,
Anji
Similar Messages
-
Problem In Vendor Master Creation
When i am going to create vendor Master then Recon.Account option has no value .Its show No Entry Option Available . Pls help me and solve this problem.
Thanks & Regard
vipin yadavHi Vipin
Is the Vendor created via a workflow?
If not, how is it getting created?
If there is no workflow involved, try posting this issue in the following forums....this forum is for Workflows.
http://scn.sap.com/community/erp
http://scn.sap.com/community/erp/scm-customer-and-vendor-master
http://scn.sap.com/community/abap (if there is any ABAP coding involved).
One suggestion, irrespective of th forum): please try to post all details of:
what you are doing
Transaction codes
button clicks
coding involved
all details
This will only help you to get the right solution in the first place.
regards,
Modak -
EHSM - Create Vendor - error: 'Could not find a document for the given key'
Dear all,
In the Chemical Approval Process I have attached a SDS document to the Approval Request. You can assign a Vendor to the SDS. As there are no (EHSM) Vendors currently available in the system I would like to create a new (EHSM) Vendor by clicking on 'Create Vendor'.
This will lead me to the following Webdynpro Application: Edit Vendor (EHFND_UI_VENDOR_OVP).
Only one field is shown in the Webdynpro named: 'Name of the Vendor'. After typing a name e.g. 'test', the following error message appears; 'Could not find a document for the given key'. See also attached document. This issue looks like a missing number range, however I could not find a EHSM number range for Vendors.
How to solve this issue?
More information:
Software Component: SAP EHS Management (EHSM) Support Package: 3
Process: Chemical Approval
Webdynpro application: EHFND_UI_VENDOR_OVP
Thank you.
Kind regards,
RoyHi
babooraj
This might be a problem with Windows Power Shell.
The solution is to copy the folder: "PSWorkflow" from "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\"
to "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules"
Than everything works fine.
Ps.: @Microsoft, please fix this problem in future versions.
Thomas van Veen -
Pan number compulsory field while creating vendor code
is it possible to make pan number compulsory field while creating vendor code
Dear Sanjeev
you can make PAN number mandatory use t.code shd0 in that first give transaction code than give screen variant detail for screen variant program go to xk01 and then go to pan field here click on f1 then click on technical specification u can copy the program and screen name after that click on create tab the xk01 screen field comes again go to pan field double click on that field and then select this as required field and save . then go to transaction variants give the transaction name and add a row in which insert row and gives screen variant , program and screen then save it now move to standard variant give your screen variant name and activate now your pan field is mandatory . if you have any problem in understanding i can provide you the screen shot also on your mail. provide your email id
Award points .
Regards -
Hi,
I am looking for the BAPI or ABAP to Create Vendor Price List in SAP but could find any yet.
Can anyone help me with the example?
Thank you in advance,
SunnyHI,,
Pls check the LineNum and PRiceList Numbers Are Correct Also Give the RecordKey Properly,
If you still have problem try to update using the SBO Import /Export option, It is very easy to upload the Data in Prielist
Mohamed Zubair -
Error in the PRAA (create vendors from employees).
Hi to all!
I have a problem: I run the transaction PRAA (create vendors from employees) and receive the message about error: "Reference vendor E000REFER0 , company code 1320 do not exist".
Please let me know how correctly run the transaction?
Thank.Hi,
Reference Vendor of Fi should have the same Company Code of the Employee in Personnel Admin. The purpose of reference vendor is that, the system picks all the features that exist for the reference vendor while creating a new vendor for the employee. To solve your problem, check with your Fi person, the list of vendors that exist for Company code 1320. Take one Person as reference employee from the list. Fi Person will also assist you in giving one reference person if you tell him the scenario.
Regards,
Suhasini -
Problem Creating Hyperlink to another workbook
I am having a problem creating a hyperlink to a worksheet in another workbook.
Here is what I have done:
Created the master and detail reports in 2 different workbooks.
Executed the master worksheet to display the data
Right clicked the field in the first row where I want to create the hyperlink, and chose Manage Links
Clicked the New Link button
Chose Worksheet for Where do you want to link to?
Clicked Browse by the Destination Worksheet
Clicked the detail report from the list of workbooks but the select button is grayed out
Does anyone have any idea why it won't let me select the detail report to link to?
I have OracleBI Discoverer Plus 10g
Any suggestions would be deeply appreciated.Yes, I did add a parameter to the detail report so that I could get detail just for that one item. The part that is giving me trouble is specifying the Destination workbook/worksheet. I see the detail report when I browse but the Select button is grayed out so I haven't made it to the part where you identify what values to pass to the detail report yet.
-
I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to icloud following all your instructions and now I can not use my mobile me e-mail address. I can not activate icloud because when I put my e-mail address it answers that somebody is already using my address. I have my old e-mails, but I can not receive any e-mail or send them.
I have contacted Apple Technical Support in Spain and I was sent an e-mail saying that I have to call a phone number and when I call it is always an answering machine who answers that says that I have to pay 50€ for a consultation or wait for 10 minutes. When I have made the consultation it was never mentioned that I have to pay 50€ for a phone consultation. If I don't want to wait I have to pay for the Apple Tecnical Support which cost 250 €, this was not mentioned in the technical support page.
Can somebody let me know how can I contact Apple in another way in order to talk with a human being or chat directly? I was very happy just using my mobileme e-mails, I didn't need any clouds and I was force by Apple to registered if I want to continue using my mobileme e-mail address.Sandra,
See this Apple support document for information on reporting an issue with your iTunes purchase.
http://support.apple.com/kb/HT1933
B-rock -
I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?
Hi czigrand,
Thanks for visiting Apple Support Communities.
Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
iTunes: Sending iTunes Gifts
http://support.apple.com/kb/HT2736
Best Regards,
Jeremy -
hi, iam using maintain_bapi of class vmd_ei_api for bank details creation at the time of vendor creation. but im getting error: ' Invalid address:bank Country missing'.please suggest
* *** Bank details***************************************
DATA: lt_bankdetails TYPE TABLE OF cvis_ei_cvi_bankdetail,
ls_bankdetails TYPE cvis_ei_cvi_bankdetail.
ls_bankdetails-data_key-banks = 'DE'. "Bank Country
ls_bankdetails-data_key-bankl = 'BEBEDEBB'. "Bank Key..
ls_bankdetails-data_key-bankn = '3538174400' ."Bank account number.
ls_bankdetails-data-bvtyp = 'USA'.
ls_bankdetails-data-bkref = 'BEN'. "Reference details.
ls_bankdetails-datax-bvtyp = 'X'.
ls_bankdetails-datax-bkref = 'X'. "Reference details.
ls_bankdetails-task = 'I'.
ls_bankdetails-data-iban = 'DE24100200003538174400'.
ls_bankdetails-datax-iban = 'X'.
APPEND ls_bankdetails TO lt_bankdetails.
*CLEAR : ls_bankdetails.
* ls_bankdetails-datax-iban = 'X'.
* APPEND ls_bankdetails TO lt_bankdetails.
* Inserting bank details,,,,
ls_bank-bankdetails = lt_bankdetails[].
ls_bank-current_state = ''.
ls_vendors-central_data-bankdetail = ls_bank.
And second question how/which method to use from this class to update bank details latter. Is it possible after creating vendor with mandatory fields and then update bank details?Hi Abhijeet,
please check in transaction FI01, about your data consistencies. You can use this wiki help in terms of Address, it it found any useful facts for you
Address Checks - Business Address Services (BC-SRV-ADR) - SAP Library -
Error while creating vendor contact person using vmd_ei_api
Hi,
while craeting vendor contact person using maintain_bapi of vmd_ei_api class iam getting error like 'Specify address number or address handle'.
code :
CALL FUNCTION 'BAPI_PARTNEREMPLOYEE_GETINTNUM'
EXPORTING
quantity = 1
IMPORTING
* RETURN =
contactid = lv_contactid
* QUANTITY =
* TABLES
* CONTACT =
ls_contacts1-task = 'I'.
ls_contacts1-data_key-parnr = lv_contactid."ls_knvk-parnr.
ls_contacts1-data-abtnr = '0002'."ls_knvk-abtnr.
ls_contacts1-data-pafkt = '02'."ls_knvk-pafkt.
ls_contacts1-data-parau = 'BNotes'."ls_knvk-parau.
ls_contacts1-datax-abtnr = 'X'.
ls_contacts1-datax-pafkt = 'X'.
ls_contacts1-datax-parau = 'X'.
* Inserting Phone ,Fax and email.
ls_phone-contact-task = 'I'. "Phone
ls_phone-contact-data-telephone = '89655696569'.
ls_phone-contact-data-extension = '778548'.
ls_phone-contact-datax-telephone = 'X'.
ls_phone-contact-datax-extension = 'X'.
APPEND ls_phone TO lt_phone.
ls_phone-contact-task = 'I'.
ls_phone-contact-data-r_3_user = 'X'.
ls_phone-contact-data-telephone = '89845589369'.
ls_phone-contact-data-extension = '858588'.
ls_phone-contact-datax-updateflag = 'X'.
ls_phone-contact-datax-telephone = 'X'.
ls_phone-contact-datax-extension = 'X'.
ls_phone-contact-datax-r_3_user = 'X'.
APPEND ls_phone TO lt_phone.
ls_fax-contact-task = 'I'.
ls_fax-contact-data-fax = '8896589'.
ls_fax-contact-data-extension ='44521'.
ls_fax-contact-datax-fax = 'X'.
ls_fax-contact-datax-extension ='X'.
APPEND ls_fax TO lt_fax.
ls_contacts1-address_type_3-communication-phone-current_state = ' '.
ls_contacts1-address_type_3-communication-phone-phone = lt_phone.
ls_contacts1-address_type_3-communication-fax-current_state = ' '.
ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
ls_contacts1-address_type_3-communication-fax-current_state = ' '.
ls_contacts1-address_type_3-communication-fax-fax = lt_fax.
ls_contacts1-address_type_3-task = 'I'.
ls_contacts1-address_type_3-POSTAL-data-FIRSTNAME = 'Roger'.
ls_contacts1-address_type_3-postal-data-lastname = 'Fedrer'.
ls_contacts1-address_type_3-POSTAL-datax-FIRSTNAME = 'X'.
ls_contacts1-address_type_3-postal-datax-lastname = 'X'.
APPEND ls_contacts1 TO lt_contacts1.
ls_vendor1-header-object_instance = p_lifnr.
ls_vendor1-header-object_task = 'M'.
ls_vendor1-central_data-contact-contacts = lt_contacts1.
ls_vendor1-central_data-contact-current_state = 'X'.
ls_vendor1-central_data-central-data-adrnr = ls_adrnr.
ls_vendor1-central_data-central-datax-adrnr = 'X' .
APPEND ls_vendor1 TO lt_vendor1.
gs_vmds_extern-vendors = lt_vendor1.
DATA:gs_succ_messages TYPE cvis_message,
gs_vmds_error TYPE vmds_ei_main,
gs_err_messages TYPE cvis_message,
gs_vmds_succ TYPE vmds_ei_main.
* Call the Method for creation of Vendor.
CALL METHOD vmd_ei_api=>maintain_bapi
EXPORTING
is_master_data = gs_vmds_extern
IMPORTING
es_master_data_correct = gs_vmds_succ
es_message_correct = gs_succ_messages
es_master_data_defective = gs_vmds_error
es_message_defective = gs_err_messages.
if sy-subrc = 0.
commit work.
Please suggest which fields else i have to pass??Hi Abhijeet,
here i am showing you some scn help to use maintain bapi of vmd_ei_api class, i think you are missing some data to be uploaded along with there are methods in lsmw, bdc too for this, please go through below links carefully , i hope you will able to solve your problem.
Vendor Master Upload Program - ABAP Development - SCN Wiki
unable to vendor master record update using class vmd_ei_api
Creation of Vendor - VMD_EI_API -
Problem creating Allocation Table with Reference to a PO
Dear Folks,
I am having problems creating an allocation table with reference to a PO in T-code WA01.
I read the SAP help that some prerequisites need to exist:
==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
Can anyone advice me where to find this stock split indicator?
Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
Thanks and Regards
JunwenAny idea please?
thanks -
Mandatory fields to create vendor and PO
Hi all,
I am migrating data from legacy system to ECC and to SRM. I found mandatory fields in ECC and I am not sure what are the mandatory fields for SRM. I need for Vendor creation(Foreign vendors also) and open PO. Please reply.
Regards,
BalajiHi
<b>Use the function module BBP_VENDOR_GET_NON_BAPI to create a vendor directly in SRM.</b>
<u>Function module - BBP_VENDOR_GET_NON_BAPI</u>
<u>Program</u> - <b>BBP_VENDOR_GET_DATA</b>
<u>BAPI</u> - <b>META_BUSINESS_PARTNER_CREATE</b>
<u>Also look at Function module - BBP_UPDATE_ATTRIBUTES.</u>
<b><u>Did you created any PO using that "bapi_poec_create"..? Don't forgot to add a commit work in your program.</u></b>
You will have to develop your own XML mapping to create a PO in SRM.
You can use BAPI_POEC_CREATE (read SE37 documentation about GUIDs).
This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.
You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.
<u>Please go through this as well -></u>
Re: Upload PO from XML file in SRM
Creating a PO with ME_CREATE_PO_ITEM
Re: Function Module/BAPI to create vendors in PPOMV_BBP
Re: BBP_PD_PO_CREATE
Create PO
<u>Hope this will definitely help. Do let me know.</u>
Regards
- Atul -
Problem in vendor invoice creation through BAPI
I am trying to create vendor invoice using bapi_acc_document_post but what value have be passed to obj_key and obj_typ fields of header is not clear to me.
regards,
anuHi,
Don't pass any values to OBJ_TYPE,OBJ_KEY. Many threads are available in SDN regarding this BAPI.
Search SDN to get more details.
Regards
Vinod -
Hi,
I am creating a vendor from a legacy file using a function
IDOC_INPUT_CREDITOR.
it is working fine if i use only one segment (E1LFA1M).
But in my case i also have to save data into one field in
table LFB1 for which i have to fill one more segment
(E1LFB1M).
Now when i fill both the segments, i am unable to create
vendor.
Below is a sample code, please revert ASAP :
REPORT zvr001_vendor_create.
types ------------
DATA l_input_method TYPE bdwfap_par-inputmethd.
DATA l_header_data TYPE bapi_incinv_create_header.
DATA l_return TYPE bapiret2.
DATA wa_lfa1 TYPE lfa1.
DATA wa_bseg TYPE bseg.
DATA wa_bkpf TYPE bkpf.
DATA l_update TYPE bdwfap_par-updatetask.
internal tables --------------
control records
DATA: it_cntrl TYPE TABLE OF edidc,
wa_cntrl LIKE LINE OF it_cntrl.
data records
DATA: it_data TYPE TABLE OF edidd,
wa_data LIKE LINE OF it_data,
wa_e1lfa1m LIKE e1lfa1m,
wa_e1lfb1m LIKE e1lfb1m.
status records
DATA: it_status TYPE TABLE OF bdidocstat,
wa_status LIKE LINE OF it_status.
return variables
DATA: it_ret TYPE TABLE OF bdwfretvar,
wa_ret LIKE LINE OF it_ret.
serialization
DATA: it_serial TYPE TABLE OF bdi_ser,
wa_serial LIKE LINE OF it_serial.
fill internal tables ( hardcoded for test purpose )
1. control records
wa_cntrl-doctyp = 'CREMAS03'.
wa_cntrl-mestyp = 'CREMAS'.
wa_cntrl-idoctp = 'CREMAS03'.
APPEND wa_cntrl TO it_cntrl.
2. data records
wa_data-segnam = 'E1LFA1M'.
wa_e1lfa1m-lifnr = 'A007'.
wa_e1lfa1m-ktokk = 'AMVG'.
wa_e1lfa1m-name1 = 'name'.
wa_e1lfa1m-stras = 'address1'.
wa_e1lfa1m-ort02 = 'address2'.
wa_e1lfa1m-ort01 = 'city'.
wa_e1lfa1m-regio = 'pstlz'.
wa_e1lfa1m-pstlz = '122200'.
wa_e1lfa1m-land1 = 'IN'.
wa_data-sdata = wa_e1lfa1m.
APPEND wa_data TO it_data.
CLEAR wa_data.
wa_data-segnam = 'E1LFB1M'.
wa_e1lfb1m-lifnr = 'A007'.
wa_e1lfb1m-bukrs = '1000'.
wa_e1lfb1m-tlfns = 'Text001'.
wa_data-sdata = wa_e1lfb1m.
APPEND wa_data TO it_data.
CLEAR wa_data.
create vendor
CALL FUNCTION 'IDOC_INPUT_CREDITOR'
EXPORTING
input_method = 'N'
mass_processing = ' '
PI_XK99_USED = ' '
IMPORTING
WORKFLOW_RESULT =
APPLICATION_VARIABLE =
in_update_task = 'X'
CALL_TRANSACTION_DONE =
TABLES
idoc_contrl = it_cntrl
idoc_data = it_data
idoc_status = it_status
return_variables = it_ret
serialization_info = it_serial
EXCEPTIONS
wrong_function_called = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
gauravmaybe the bapi does a call transaction somewhere....set a breakpoint on call transaction and give it another go..if you can change the mode to 'a' you might be able to find the offending field.
Try include LKD02F01.
CALL TRANSACTION BLF00-TCODE USING FT
MODE CALL_TRANSACTION_MODE
UPDATE C_UPDATE_SYNC
MESSAGES INTO T_BDCMSGCOLL.
Maybe you are looking for
-
I have Photoshop CS and have been using it for a long time on this computer - and it has always been fine. I'm now trying to open it - and it basically won't open. The initialization takes forever (it was always long - but is REALLY long) and then I
-
Tv as monitor, no picture (not supported)
My hubby decided to get the picture size to fit screen. In the process he changed something that is not supported(black screen) for his monitor (tv). We get HP symbol and then a little box "not supported"with black screen. How to I change setting bac
-
Add a new column in item table control of va01 screen
Hi All, i have requirement to add new column in item table control of va01 screen 4900 for the custome field of vbap table the required coloum is add with the help of access key however whem i am trying to save data, that custom field is not populate
-
Tried to configure an policy in contentspace to protect native PDF-files by Rights Management. Downloading such an file gave an error-message like (translated from german): "Acrobat-Security: you are trying to connect to an Adobe liveCycle Rights Man
-
Error when OWSM policy is applied to Proxy Service in 11gR1
Hi, I have applied oracle/wss_username_token_service_policy for my proxy service and trying to test that from OSB Test Console. I am getting below error, When i have launched Test Console for this proxy, i have observed in Security part, oracle/wss_u