2010 Mar 03 6:45 PM
Hi all.
I'm trying to create an Entry Sheet using the BAPi: BAPI_ENTRYSHEET_CREATE.
I'm populating data into structure ENTRYSHEETHEADER and into tables ENTRYSHEETACCOUNTASSIGNMENT, ENTRYSHEETSERVICES, ENTRYSHEETSRVACCASSVALUES. When i execute the funcion (by SE37 or program call) the system raise a dump, with the exception INVALID_DYNPRONAME into the program SAPLSHL2.
I suppose that it is caused by a parameter missing, but I dont know the parameter.
Can anyone tells me how to execute this function?
Regards.
Gregory
Hi Lokeswari, thx for ur answer.
That's just what I'm doing. My problem is the field ACCEPTANCE if I don't fill it, the execution of the BAPI ends in a Dump and i need to create the Entry Sheet unaccepted. That's why I'm trying to revoke the acceptance after the creation of the Entry Sheet.
Regards.
Gregory.
2010 Mar 03 7:29 PM
As I supposed the dump was because a wrong parameter passing.
I've found the OSS Note 420334 and executing the function without dumps, now the return error is:
E 536 Short text and number of outline not maintained
I wanna know what is this error cause and how to solve it.
Regards.
Gregory.
2010 Mar 03 8:16 PM
Hi,
Check [ENTRYSHEETSERVICES|http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATEwithmulit-accounting]
2010 Mar 03 8:26 PM
Hi Keshav, thx.
I've already checked this Wiki.
Now I dont have neither the dump nor the error named before. However now I have the following error:
SE 147 Unplanned service TEST may not be entered
Do you know why its happening?
Regards.
Gregory.
2010 Mar 03 8:38 PM
2010 Mar 03 8:54 PM
I've filled the values PLN_PCKG and PLN_LINE with ESLL-PACKNO and ESLL-INTROW respectively and get the dump described above. Also fill thos fields with ESLL-PLN_PACKNO and PLN_INTROW and get the same dump.
Could you tell me with which values must I fill those fields?
Regards.
Gregory.
2010 Mar 04 4:59 AM
Hi..
In ENTRY SHEET HEADER
pckg_no
short_text
po_number
po_item
In ENTRYSHEETACCOUNTASSIGNMENT
pckg_no
In ENTRYSHEETSERVICES... we need to pass two rows
1st row
pckg_no
line_no
outl_ind
supckg_no
2nd row
pckg_no
line_no
ext_line
service
quantity
gr_price
in ENTRYSHEETSRVACCASSVALUES
pckg_no
line_no
Regards,
lokeswari.
2010 Mar 04 12:26 PM
Hi Lokeswari, thx for ur answer.
Passing those parameters the BAPI returns the message:
E SE 147 Unplanned service TEST may not be entered
That is why I assume that the fields PLN_PCKG and PLN_LINE must be filled. The question is what values must they have?
Regards.
Gregory.
2010 Mar 04 12:53 PM
All right.
I've filled the fields PLN_PCKG and PLN_LINE with ESLL-PACKNO and ESLL-INTROW respectively in ENTRYSHEETSERVICES Table and also fill ACCEPTANCE in ENTRYSHEETHEADER Structure and the BAPI works fine!
Now my problem is that i have to create the Entry Sheet not accepted, how can I do this?
Regards.
Gregory.
2010 Mar 04 6:24 PM
Reading some posts here, I've found that I can revoke Entry Sheet acceptance with the FM MS_DELETE_SERVICE_ENTRY_MULTI. I try but I'm getting the following message:
E SE 214 Error during update.
Could somebody tell me the parameters that I must pass to the FM?
Does anyone know, why is this error happening?
Regards.
Gregory.
2010 Mar 05 5:14 AM
Hi...
first get the values for the PO like service details, account assaignment from BAPI " BAPI_PO_GETDETAIL" and then pass to BAPI " BAPI_ENTRYSHEET_CREATE".
Regards,
Lokeswari.
2010 Mar 05 12:44 PM
Hi Lokeswari, thx for ur answer.
That's just what I'm doing. My problem is the field ACCEPTANCE if I don't fill it, the execution of the BAPI ends in a Dump and i need to create the Entry Sheet unaccepted. That's why I'm trying to revoke the acceptance after the creation of the Entry Sheet.
Regards.
Gregory.
2010 Mar 05 2:19 PM
OK, summarizing/updating:
I already can create service entry sheets using the BAPI BAPI_ENTRYSHEET_CREATE.
My problem is that I can't create it unaccepted (field ENTRYSHEETHEADER-ACCEPTANCE = ' ') because the function ends with a dump: RAISE_EXCEPTION - Exception condition "INVALID_DYNPRONAME" raised. (Program SAPLSHL2 or LSHL2U22).
Because of that I've tried to revoke the SES after the creation as accepted using the FM MS_DELETE_SERVICE_ENTRY_MULTI, but this FM also deletes the SES and I don't want it.
Does anybody knows how to avoid the Dump?
Does anybody knows how to revoke a Service Entry Sheet acceptance, after it's created as accepted?
Regards.
Gregory.
2010 Mar 05 3:45 PM
Hi,
I've solved the problem, the dump was produced by an user-exit. Sorry.
Regards.
Gregory.
2010 Sep 24 11:16 AM
Hi gregory,
i refered this note 420334 and followed the steps given, now the system is throwing a new error maintain service "Line 0000000010: please specify a service".
These are the fields that i've maintained:Can u send me the list of fields and values that u had passed. Moreover, i need the acceptance indicator to be set.
EntrysheetHeader:
PCKG_NO : 0000000001
SHORT_TEXT :BAPI FOR ENTRY SHEET UPLOAD
PO_NUMBER :2009200084
PO_ITEM : 00010
DOC_DATE 09/22/2010
POST_DATE 09/22/2010..
ACCEPTANCE : X
ENTRYSHEETSERVICES:
For the service package:
PCKG_NO : 0000000001
LINE_NO : 0000000001
EXT_LINE :0000000000
OUTL_LEVEL 0
OUTL_IND: X
SUBPCKG_NO :0000000002
For planned service:
PCKG_NO 0000000002
LINE_NO 0000000002
EXT_LINE 0000000010
...
SUBPCKG_NO 0000000000
SERVICE 5002
...
QUANTITY 8.00
...
GR_PRICE 120 ...
PLN_PCKG 0000003065(ESLL-PACKNO)
PLN_LINE 0000000001(ESLL-INTROW)
Do i need to maintain any other fields ?
2011 Jun 28 1:07 PM
Hello,
I am facing the same error.
The error says "Unplanned services may not be entered".
Please help me in giving the correct inputs.
Regards,
Renuka
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |