03-20-2014 9:29 AM
When i create the structure for particular field it will display the message "Field name VBELN does not agree with proposed name SD_DOC for BAPI table".
Kindly help me.
Regards,
Abhishek K.
03-20-2014 5:52 PM
Hi
You that is a warning message, you can just press ENTER and continue...
Regards
Miguel
03-20-2014 10:14 AM
03-20-2014 10:53 AM
Hi,
The message is because, for VBELN data element, default component is specified as SD_DOC. So the system expects, whenever you use data element VBELN, field name should be SD_DOC.
Similarly, if you use data element 'VBELN_VA', system expects fieldname to be DOC_NUMBER
Warning messages can be overridden by pressing enter. We may or may not accept system proposal.
Regards,
DPM
03-20-2014 12:27 PM
Hello Sir,
Yes i agree.If i create the structure with other naming conventions like "ZSTRUCTURE" the structure will be created without message.
My problem is that when i create the structure for BAPI TABLE so, it should start with "ZBAPI".Suppose i use naming convention like "ZBAPI_TABLE" whenever this naming convention used then this message pop up "Field name VBELN_VA does not agree with proposed name DOC_NUMBER for BAPI table".
Regards,
Abhishek K.
03-20-2014 1:09 PM
Hi,
Press F1 on Default component name (Data Element ) you will get the answer. Only for BAPI structures, system proposes the default component name. I believe, system internally scans for the word "BAPI" in the structure name, if found, proposes default component name.
Regards,
DPM
03-20-2014 5:42 PM
Hi,
Still i didn't get?Is there any other way to create the structure for BAPI?
Regards,
Abhishek K.
2 weeks ago
03-20-2014 5:52 PM
Hi
You that is a warning message, you can just press ENTER and continue...
Regards
Miguel
03-21-2014 5:57 AM
Hi,
Yes.its a warning message but when i press Enter there is No action on the screen(As i shared the screenshot), Even back and exit is also not work.I have to close that window and try to recreate again but can't work.I want solution for BAPI.If i create the structure with other naming convention like(ZIMPORT) it will get created but when we add API method for BAPI on that time system tells that Sturcture should create with ZBAPI.
As DEBOPRIYO MALLICK told System internally scans the word "BAPI" in the structure name So I think it may be System Problem.
Regards,
Abhishek K.
03-21-2014 6:04 AM
Hi Abhishek
If you clearly read documentation of how to create BAPI it clearly states that
All data structure names must begin with <namespace>BAPI
I would suggest you to go through standard SAP link where it provides all the conventions
http://help.sap.com/saphelp_erp2004/helpdata/en/43/b46c3953c111d395fa00a0c94260a5/content.htm
Nabheet
03-21-2014 12:29 PM
Hi Miguel Alvear,
As you said "just press ENTER and continue".
Finally it's worked ,The message will not popup.Just we have to give the field name after first enter it will popup the message but after 2nd enter and continue.It's worked then we can add more fields too.
Thank you so much Miguel Alvear
Regards,
Abhishek K.
03-21-2014 12:41 PM
You were able to bypass the warning but you did not respect the general conventions for BAPI (Also Actions in the ABAP Dictionary)
If standardized parameters are used, you have to use the names specified for standardized parameters.
Sorry, you created a RFC enabled FM and in no case a BAPI. (However, did you start creation of the Business Object with SWO1 ?)
Regards,
Raymond
03-21-2014 2:06 PM
Hello Raymond,
I had problem of creating structure for BAPI Now it is Solved .
And Yes i have created RFC Function Module.
But i get some problem during Activation.
Could you help me on this?
Code:->
FUNCTION ZBAPI_DEMO_SD.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(FM_VBELN) TYPE VBAP-VBELN
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRETURN
*" TABLES
*" ZITEMDATA STRUCTURE ZBAPI_TABLE OPTIONAL
*"----------------------------------------------------------------------
SELECT POSNR
MATNR
MATKL
PSTYV
MEINS FROM VBAP INTO TABLE ZITEMDATA
WHERE VBELN = FM_VBELN.
ENDFUNCTION.
Error: ->"Report/Program statement Missing or Program type is I (Include)".
Regards,
Abhishek K.
03-21-2014 2:25 PM
Activate the function group in SE80 ( Right click and activate )
or
Press back and try to activate the FM from SE37 initial screen.
03-22-2014 9:39 AM
Hi DEBOPRIYO MALLICK,
Yes yes.It's Worked.Thank you so much.
Your first option was correct that is in SE80 (Right Click and activate).
Finally its worked .
Kind Regards,
Abhishek K.
03-21-2014 7:06 AM
Hi Abhishek,
Try this :Z_BAPI
Hope it will work for you & let me know.
Regards,Santosh
03-21-2014 12:40 PM
Hi Santosh,
"Z_BAPI".
No.It is not working. System tells "Underscore is not permitted at 2nd or 3rd Position".
it should be "All data structure names must begin with <namespace>BAPI" but Underscore is not permitted as i given in the screenshot.
"Z_BAPI" Screenshot.
As Nabheet Madan has shared wonderful Document for us.
http://help.sap.com/saphelp_erp2004/helpdata/en/43/b46c3953c111d395fa00a0c94260a5/content.htm
Regards,
Abhishek K.