on 01-12-2005 10:56 PM
I'm using .NET Connector calling Rfc_Call_Transaction funtion throught a proxy, i stablished all the params as you can see in the code below, but i get the message cited in the subject 'Start screen does not exist in batch input data'.
What do you think is happening? or Where can i get the samples needed for perform this type of request?
private BDCDATA FillBDCDATA(string Program,
string Dynbegin,
string Dynpro,
string Fnam,
string Fval)
{
BDCDATA st_DATA = new BDCDATA();
st_DATA.Program = Program;
st_DATA.Dynbegin = Dynbegin;
st_DATA.Dynpro = Dynpro;
st_DATA.Fnam = Fnam;
st_DATA.Fval = Fval;
return st_DATA;
}
private void button3_Click(object sender, System.EventArgs e)
{
SAPProxy proxy = null;
try
{
proxy = new SAPProxy("ASHOST=" + txtHost.Text +
" SYSNR=" + txtSysnr.Text +
" CLIENT=" + txtMand.Text +
" LANG=" + txtLang.Text +
" USER=" + txtUser.Text +
" PASSWD=" + txtPass.Text);
}
catch(Exception excpt)
{
txtMsg.Text = excpt.Message;
}
if (proxy == null)
return;
BDCDATATable tblBDCDATA = new BDCDATATable();
MESSAGEINF infMessage = new MESSAGEINF();
//BDCDATA st_DATA = new BDCDATA();
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BDC_OKCODE", "/00"));
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-BLDAT", "30.12.2004"));
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-VERSN", "0"));
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "FMPS-FIKRS", "ente"));
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-JAHR", "2005"));
proxy.Rfc_Call_Transaction("FM9J","", out infMessage, ref tblBDCDATA);
txtMsg.Text = infMessage.Msgtx;
}
Jose,
I imagine you are passing, for the Dynbegin parameter of the private method FillBDCDATA, invalid values.
Why don't you try this way:
tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "X", "0111", " "," "));
tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BDC_OKCODE", "/00"));
tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-BLDAT", "30.12.2004"));
tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-VERSN", "0"));
tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "FMPS-FIKRS", "ente"));
tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-JAHR", "2005"));
I hope I could help you.
Regards,
Daniel Carvalho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.