Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ENTRYSHEET_CREATE

Former Member
0 Likes
3,896

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

15 REPLIES 15
Read only

Former Member
0 Likes
2,803

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.

Read only

0 Likes
2,803

Hi,

Check [ENTRYSHEETSERVICES|http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATEwithmulit-accounting]

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

Check

fill the value to pln_line

Read only

0 Likes
2,803

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.

Read only

Former Member
0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

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.

Read only

0 Likes
2,803

Hi,

I've solved the problem, the dump was produced by an user-exit. Sorry.

Regards.

Gregory.

Read only

0 Likes
2,803

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 ?

Read only

0 Likes
2,803

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