‎2005 Jun 09 10:13 AM
Hello All,
I have written a BDC report for uploading data through transaction XK02(change vendor details) using CALL TRANSACTION.
But the problem is ,the data for all the fields except one i.e.E-mail id of the vendor is not getting updated(uploaded).After executing the report in foreground,i can see the value for the field(Email id) being populated.But when i go through the transaction for that particular entry,i cant see the updated value for the field.
Can anyone please suggest where exactly the problem lies??Please help.
Thanks,
Deepti.
‎2005 Jun 09 10:27 AM
If the file that you use to upload the information is client-side, the report work fine only if you execute the program in foreground.
When you execute the report in background, you must indicate a remote path (for example file system of the server sap) to uploading the information.
Gianluca
‎2005 Jun 09 4:52 PM
Deepti - I don't think you can enter the e-mail address directly from the main address screen in batch input. Try something like the following:
perform dynpro
tables bdcdata
using:
'X' 'SAPMF02K' '0111', "Create Vendor: Address
' ' 'BDC_OKCODE' '$INT'. "E-Mail Address
perform dynpro
tables bdcdata
using:
'X' 'SAPLSZA6' '0600', "Maintain E-Mail Address
' ' 'G_SELECTED(1)' 'X',
' ' 'ADSMTP-SMTP_ADDR(1)' email_address,
' ' 'BDC_OKCODE' 'CONT'. "Next Screen
Rob
‎2005 Jun 20 6:22 AM
Rob,
On the same subject of program SAPLSZA6 and uploading Email Addresses via BDC... I cant seem to find the proper BDC code for uploading multiple telephones, faxes and emails in VAP2 (Contact Persons Change) in the CAM (central address management) section (communications).
I dont wanna do direct updates to ADR2,ADR3, ADR6...
Any help will be appreciated
Thanks
Louis
‎2005 Jun 20 2:55 PM
Try '$INT' for e-mail address,
'$MTE' fot telephone,
'$MFA' for fax.
At least, that's what they are for FK02.
You can also put in a breakpoint, press the button and then check to see the OK code.
Rob
‎2005 Jun 21 6:42 AM
Rob,
That worked! the OK_CODEs $INT, $MTE & $MFA for FK02 are the same for VAP2...
thanks for the help!
Louis