Bapi BAPI_ENTRYSHEET_CREATE
Hello,
About this question i found one thread in Abap forum :
BAPI_ENTRYSHEET_CREATE
and i have the same doubt that appears in the end of the thread. Can anyone explain the significance of the import and table field parameters, related to one P.O. with services items. Also, please with the link between the data entered in the bapi, and the EKKO, EKPO and ESLL contents for that purchase order.
I'm trying to use the bapi, but i got the message that there's an error in the register update. The bapi returns one entry sheet number, but it does not exists.
Thanks,
Paulo Sousa
Hi,
The problem is i believe i'm filling the entry parameters well, but i think there's someting missing, reason why i got the error message. In my example i have P.O n. 4500009283 that have in EKPO PACKNO = 16964. In ESLL the entry that have PACKNO = 16964 has SUB_PACKNO = 16965. Also in ESLL with PACKNO = 16965 i have 4 entries, one of them ( with EXT_NUMBER = 0060 ) is the service i want to pass to the entry sheet with Servico code = 4000001, quantity 1 and value 100, 00.
To do that i'm filling the following parameters :
ENTRYSHEETHEADER
PCKG_NO = 0000016964
SHORT_TEXT = TEST
PO_NUMBER = 4500009283
PO_ITEM = 00010
DOC_DATE = 27.12.2006
POST_DATE = 27.12.2006
ACCEPTANCE = X
ENTRYSHEETACCOUNTASSIGNMENT
PCKG_NO = 0000016964
GL_ACCOUNT = 62235000
BUS_AREA = ANA
COSTCENTER = 110400
ENTRYSHEETSERVICES ( 2 entries )
1ST
PCKG_NO = 0000016964
LINE_NO = 0000000001
SUBPCKG_NO = 0000016965
2ND
PCKG_NO = 0000016965
LINE_NO = 0000000002
EXT_LINE = 0000000060 ( the service item i want to enter )
SERVICE = 4000001
QUANTITY = 1,000
BASE_UOM = UN
GR_PRICE = 100,00
ENTRYSHEETSRVACCASSVALUES
PCKG_NO = 0000016965
LINE_NO = 0000000002
QUANTITY = 1,000
NET_VALUE = 100,00
and when i test the bapi with those parameters i got the message 'Error updating register'. I got a entrysheet number in the ENTRYSHEET parameter but that entry sheet number does not exists.
I'll apreciate any sugestion about data that i need to give in the entry parameters/table entries, and that is not being filled at the moment.
Thanks,
Paulo Sousa
Similar Messages
-
Populate document header text in SES by bapi BAPI_ENTRYSHEET_CREATE
Hi,
I am using BAPI BAPI_ENTRYSHEET_CREATE to create a service entry sheet. But I am not able to populate the document header text (bktxt) in acceptance tab in service entry sheet header in ML81N.
Can anybody help me what I need to pass to this BAPI in order to populate this field.
Thanks,
MainakHey Mainak,
I am aware that the question was posted by you long back, but I am replying so that other readers probably can benefit from the answer below -
I faced the similar issue recently in one of the projects. The solution that i have opted is as below -
1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.
2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.
Hope this helps to other readers!
- Thanks,
Urvi. -
BAPI BAPI_ENTRYSHEET_CREATE - Service Entry Sheet - MM
Hi all,
I am trying to create a service entry sheet using the BAPI - BAPI_ENTRYSHEET_CREATE.
However the BAPI is executed and the service entry sheet is created OK
but in ML81N it shows the message SE001.
The problem occurs only when the PO have 2 items and the entry sheet is for 2o. item.
When the PO have 1 item the my routine is OK.
can anyone suggest any solution for this ...
From now, thanks.
my code:
form create_SES.
data: SUBPCKG_NO type ESLL-SUB_PACKNO,
LINE_NO type BAPIESLLC-LINE_NO.
data: begin of WA_PO_HEADER occurs 1.
include structure BAPIEKKOL.
data: end of WA_PO_HEADER.
data: PO_ITEMS type BAPIEKPO occurs 0 with header line,
PO_SERVICES type BAPIESLL occurs 0 with header line.
data: begin of PO_RET occurs 0.
include structure BAPIRETURN.
data: end of PO_RET.
data: ENTRYSHEET type BAPIESSR-SHEET_NO.
data: IT_ESSR like BAPIESSRC occurs 0
with header line.
data: IT_ESKN like BAPIESKNC occurs 0
with header line.
data: IT_ESLL like BAPIESLLC occurs 0
with header line.
data: IT_ESKL like BAPIESKLC occurs 0
with header line.
data: begin of IT_RET occurs 0.
include structure BAPIRET2.
data: end of IT_RET.
call function 'BAPI_PO_GETDETAIL'
exporting
PURCHASEORDER = IT_FRS_C-FRS_PO " for example 4500016194
ITEMS = 'X'
SERVICES = 'X'
importing
PO_HEADER = WA_PO_HEADER
tables
PO_ITEMS = PO_ITEMS
PO_ITEM_SERVICES = PO_SERVICES
RETURN = PO_RET.
loop at PO_RET where TYPE = 'E' or TYPE = 'A'.
return. " ERROR in PO
endloop.
loop at PO_ITEMS.
if PO_ITEMS-PO_ITEM <> 20. " <<<<< atention for this: only item 20 in PO
read table PO_SERVICES with key PCKG_NO = PO_ITEMS-PCKG_NO.
SUBPCKG_NO = PO_SERVICES-SUBPCKG_NO.
delete PO_SERVICES where PCKG_NO = SUBPCKG_NO.
delete PO_SERVICES where PCKG_NO = PO_ITEMS-PCKG_NO.
delete PO_ITEMS.
endif.
endloop.
loop at PO_ITEMS.
IT_ESSR-PO_NUMBER = PO_ITEMS-PO_NUMBER.
IT_ESSR-PO_ITEM = PO_ITEMS-PO_ITEM.
IT_ESSR-PCKG_NO = PO_ITEMS-PCKG_NO.
IT_ESSR-ACCEPTANCE = IT_FRS_C-FRS_ACEITE. " begin of my data = ' '
IT_ESSR-DOC_DATE = IT_FRS_C-FRS_DTDOC. " = ''
IT_ESSR-POST_DATE = IT_FRS_C-FRS_DTLANCA. " = ''
IT_ESSR-REF_DOC_NO = IT_FRS_C-FRS_REFER. " = '12345-67'
IT_ESSR-SHORT_TEXT = IT_FRS_C-FRS_TXT. " = ''
IT_ESSR-EXT_NUMBER = IT_FRS_C-FRS_NROEXT. " = ''
IT_ESSR-LOCATION = IT_FRS_C-FRS_LOCAL. " = ''
IT_ESSR-BEGDATE = IT_FRS_C-FRS_DTINI. " = ''
IT_ESSR-ENDDATE = IT_FRS_C-FRS_DTFIM. " = ''
IT_ESSR-PERSON_INT = IT_FRS_C-FRS_ENCINT. " = ''
IT_ESSR-PERSON_EXT = IT_FRS_C-FRS_ENCEXT. " end of my data = ''
if PO_ITEMS-ACCTASSCAT = 'U'.
IT_ESSR-ACCASSCAT = 'K'.
else.
IT_ESSR-ACCASSCAT = PO_ITEMS-ACCTASSCAT.
endif.
append IT_ESSR.
endloop.
LINE_NO = 1.
loop at PO_SERVICES.
clear IT_ESLL.
IT_ESLL-SHORT_TEXT = PO_SERVICES-SHORT_TEXT.
IT_ESLL-QUANTITY = PO_SERVICES-QUANTITY.
IT_ESLL-SERVICE = PO_SERVICES-SERVICE.
IT_ESLL-PCKG_NO = PO_SERVICES-PCKG_NO.
IT_ESLL-LINE_NO = LINE_NO.
IT_ESLL-EXT_LINE = PO_SERVICES-EXT_LINE.
IT_ESLL-OUTL_IND = PO_SERVICES-OUTL_IND.
IT_ESLL-SUBPCKG_NO = PO_SERVICES-SUBPCKG_NO.
IT_ESLL-PLN_PCKG = PO_SERVICES-PLN_PCKG.
IT_ESLL-PLN_LINE = PO_SERVICES-PLN_LINE.
IT_ESLL-BASE_UOM = PO_SERVICES-BASE_UOM.
IT_ESLL-UOM_ISO = PO_SERVICES-UOM_ISO.
IT_ESLL-PRICE_UNIT = PO_SERVICES-PRICE_UNIT.
IT_ESLL-FROM_LINE = PO_SERVICES-FROM_LINE.
append IT_ESLL.
LINE_NO = LINE_NO + 1.
endloop.
call function 'BAPI_ENTRYSHEET_CREATE'
exporting
ENTRYSHEETHEADER = IT_ESSR
TESTRUN = ' '
importing
ENTRYSHEET = ENTRYSHEET
tables
ENTRYSHEETACCOUNTASSIGNMENT = IT_ESKN
ENTRYSHEETSERVICES = IT_ESLL
* ENTRYSHEETSRVACCASSVALUES = IT_ESKL
RETURN = IT_RET
* ENTRYSHEETSERVICESTEXTS =
* ENTRYSHEETHEADERTEXT =
endform.Did you not search? Google has 3600 hits for BAPI_ENTRYSHEET_CREATE
the second hit is a wiki from SCN with sample coding
the third hit has a link to a OSS note with a promising title 420334 - BAPI_ENTRYSHEET_CREATE: Model for creation -
Creating Service entry sheet using bapi BAPI_ENTRYSHEET_CREATE
Hello Guys,
I am trying to create a service entry sheet for single line item only using bapi BAPI_ENTRYSHEET_CREATE.
its is creating Service entry document but not populating the line item for me (here only one line item for me).
If you guys have sample code (how the poupulate the internal tables) could you please send it across?.
Thanks in Advance..
SteevanHi,
Creating Service entry sheet using bapi BAPI_ENTRYSHEET_CREATE
For creating service entry sheet follow below link and it helps to you.
http://wiki.sdn.sap.com/wiki/display/ABAP/CreatingServiceEntrySheetusing+BAPI
Regards,
Sekhar -
Error while creation of service entry via BAPI_ENTRYSHEET_CREATE
Hi All,
I am struggling while creation of service entry using the BAPI, BAPI_ENTRYSHEET_CREATE. I am getting error ""No account assignment exists for service line 0000000010". I am passing the essr, eskn,eskl, esll structures as-
Please help sorting out what is the issue in the parameters, I am able to manually create an SER via ML81N though.
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
PURCHASEORDER = WS_PO
ITEMS = 'X'
SERVICES = 'X'
IMPORTING
PO_HEADER = WA_PO_HEADER
TABLES
PO_ITEMS = PO_ITEMS
PO_ITEM_SERVICES = PO_SERVICES
RETURN = BAPI_RETURN_PO.
Entry sheet header
LOOP AT PO_ITEMS.
BAPI_ESSR-PO_NUMBER = PO_ITEMS-PO_NUMBER.
BAPI_ESSR-PO_ITEM = PO_ITEMS-PO_ITEM.
BAPI_ESSR-SHORT_TEXT = 'Sample'.
bapi_essr-acceptance = 'X'.
BAPI_ESSR-DOC_DATE = SY-DATUM. " wa_po_header-doc_date.
BAPI_ESSR-POST_DATE = SY-DATUM. "po_items-price_date.
IF PO_ITEMS-ACCTASSCAT = 'U'.
BAPI_ESSR-ACCASSCAT = 'K'.
ELSE.
BAPI_ESSR-ACCASSCAT = PO_ITEMS-ACCTASSCAT.
ENDIF.
BAPI_ESSR-PCKG_NO = PO_ITEMS-PCKG_NO.
APPEND BAPI_ESSR.
ENDLOOP.
LINE_NO = 1.
SERIAL_NO = 0.
LOOP AT PO_SERVICES. " WHERE NOT short_text IS INITIAL.
CLEAR BAPI_ESLL.
BAPI_ESLL-PCKG_NO = PO_SERVICES-PCKG_NO.
BAPI_ESLL-LINE_NO = LINE_NO.
BAPI_ESLL-EXT_LINE = PO_SERVICES-EXT_LINE.
BAPI_ESLL-OUTL_IND = PO_SERVICES-OUTL_IND.
BAPI_ESLL-SUBPCKG_NO = PO_SERVICES-SUBPCKG_NO.
BAPI_ESLL-SERVICE = PO_SERVICES-SERVICE.
BAPI_ESLL-BASE_UOM = PO_SERVICES-BASE_UOM.
BAPI_ESLL-UOM_ISO = PO_SERVICES-UOM_ISO.
BAPI_ESLL-PRICE_UNIT = PO_SERVICES-PRICE_UNIT.
BAPI_ESLL-FROM_LINE = PO_SERVICES-FROM_LINE.
BAPI_ESLL-TO_LINE = PO_SERVICES-TO_LINE.
BAPI_ESLL-SHORT_TEXT = PO_SERVICES-SHORT_TEXT.
BAPI_ESLL-PLN_PCKG = '2'.
BAPI_ESLL-PLN_LINE = LINE_NO.
APPEND BAPI_ESLL.
LINE_NO = LINE_NO + 1.
ENDLOOP.
Now we wanted to create SES based on entered Quantity & NetValue.
LOOP AT BAPI_ESLL.
IF BAPI_ESLL-LINE_NO = '2'.
BAPI_ESLL-QUANTITY = PO_SERVICES-QUANTITY.
BAPI_ESLL-GR_PRICE = WS_PR. "po_services-gr_price.
MODIFY BAPI_ESLL INDEX SY-TABIX TRANSPORTING QUANTITY GR_PRICE.
ENDIF.
ENDLOOP.
LOOP AT PO_ITEMS.
CLEAR BAPI_ESKL.
BAPI_ESKL-LINE_NO = 2.
BAPI_ESKL-SERNO_LINE = 1.
BAPI_ESKL-PERCENTAGE = 100.
BAPI_ESKL-SERIAL_NO = 1.
APPEND BAPI_ESKL.
SERIAL_NO = SERIAL_NO + 1.
BAPI_ESKN-GL_ACCOUNT = PO_ITEMS-MAT_GRP.
BAPI_ESKN-PCKG_NO = '2'.
BAPI_ESKN-SERIAL_NO = SERIAL_NO.
APPEND BAPI_ESKN.
ENDLOOP.
CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
EXPORTING
ENTRYSHEETHEADER = BAPI_ESSR
TESTRUN = ''
IMPORTING
ENTRYSHEET = WS_ENTRYSHEET_NO
TABLES
ENTRYSHEETACCOUNTASSIGNMENT = BAPI_ESKN
ENTRYSHEETSERVICES = BAPI_ESLL
ENTRYSHEETSRVACCASSVALUES = BAPI_ESKL
RETURN = I_RETURN.
Thanks!!The issue resolved now by passing the following parameters-
EntrySheet header-
BAPI_ESSR-PO_NUMBER = PO_NUMBER.
BAPI_ESSR-PO_ITEM = PO_ITEM.
BAPI_ESSR-SHORT_TEXT = as entered by user
BAPI_ESSR-ACCEPTANCE = u2018Xu2019 or space.
BAPI_ESSR-DOC_DATE = Todayu2019s date.
BAPI_ESSR-POST_DATE = Todayu2019s date.
BAPI_ESSR-PCKG_NO = '0000000001'.
Entry Sheet Account Assignment-
BAPI_ESKN-COSTCENTER = Cost Center
BAPI_ESKN-WBS_ELEMENT = WBS element
BAPI_ESKN-AUFNR = Order
Entry Sheet Services-
Unplanned line-
BAPI_ESLL-PCKG_NO = '0000000001'.
BAPI_ESLL-LINE_NO = LINE_NO (000001).
BAPI_ESLL-EXT_LINE = '0000000000'.
BAPI_ESLL-OUTL_LEVEL = 0.
BAPI_ESLL-OUTL_IND = 'X'.
BAPI_ESLL-SUBPCKG_NO = '0000000002'.
Planned line-
BAPI_ESLL-LINE_NO = LINE_NO (000002).
BAPI_ESLL-PCKG_NO = '0000000002'.
BAPI_ESLL-SUBPCKG_NO = '0000000000'.
BAPI_ESLL-EXT_LINE = '0000000010'.
BAPI_ESLL-SERVICE = '0000000000'.
BAPI_ESLL-OUTL_LEVEL = 0.
BAPI_ESLL-OUTL_IND = ' '.
BAPI_ESLL-QUANTITY = as entered by user
BAPI_ESLL-BASE_UOM = PO_SERVICES-BASE_UOM.
BAPI_ESLL-GR_PRICE = as entered by user
BAPI_ESLL-PLN_PCKG = '0000000000'.
BAPI_ESLL-PLN_LINE = '0000000001'.
Entry Sheet Service access values-
BAPI_ESKL-LINE_NO = '2'.
BAPI_ESKL-PCKG_NO = '0000000002'.
BAPI_ESKL-PERCENTAGE = '100'.
Thankyou! -
Error during creation of entry sheet via BAPI
Hi all,
I have a problem with that bapi and that user exit. I can create a entry sheet with the bapi BAPI_ENTRYSHEET_CREATE and get it accepted using the flag BAPIESSRC-ACCEPTANCE of the header.
But if i use the enhancement SRVEDIT in order to do a custom validation i get the following error during the creation of the entry sheet: "E SE 214 Error during update".
Even if i don't do anything in the user exit (only activate it) i still get the message "Error during update". Anybody knows if there is a problem with that user exit? should i do something specific to use that user exit (it doesn't exist any documentation for the user)
Anybody has solved the issue? Anyone knows another user exit to use in the moment of save the changes of the entry sheet?
Many thanks in advance
AaronHi John,
Some of the structures you have to fill for the IDOC belongs to a referencing ...X structure. For example structure BAPI1022_FEGLG002 and BAPI1022_FEGLG002X.
When you fill the capitalization dat (BAPI1022_FEGLG002-CAP_DATE = '19981231') it's necessary to fill the corresponding field (BAPI1022_FEGLG002X-CAP_DATE = 'X') to specify that the content of the field should be transferred to the fixed asset. Otherwise it'll be not transferred and you'll get an error message instead.
Regards Bernhard -
BAPI to unaccept service entry sheet
Hello,
I have created and accepted service entry sheet using BAPI "BAPI_ENTRYSHEET_CREATE". Now i have requirement where I need to unaccept already accepted service entry sheet. Can any one provide me the BAPI which will help me in resolving this issue.
Thanks in advanceHello, Gregory...
Hi Guillermo,
I've tryed with this FM by 2 ways:
- Manually: deletes the Entry Sheet.
- Programatically: didnt do anything, gives the error: E SE 214 Error during update.
I only want to revoke the acceptance, I dont want to delete the Entry Sheet.
Could you tell me how to that?
Regards.
Gregory.
Im facing a similar problem executing BBP_ENTRYSHEET_CANCEL, in my process I execute BAPI_ENTRYSHEET_CREATE after then I recieve the error...
I think it is some trash in execution context.... -
BAPi to approve service entry sheet
Hi All,
I want to approve a service entry sheet
I am using the BAPi - BAPI_ENTRYSHEET_CREATE, I am able to create a service entry sheet but unable to approve it.
Please let me know if there is a BAPi- for approving a service entry sheet.
Regards
ShivaHello, Gregory...
Hi Guillermo,
I've tryed with this FM by 2 ways:
- Manually: deletes the Entry Sheet.
- Programatically: didnt do anything, gives the error: E SE 214 Error during update.
I only want to revoke the acceptance, I dont want to delete the Entry Sheet.
Could you tell me how to that?
Regards.
Gregory.
Im facing a similar problem executing BBP_ENTRYSHEET_CANCEL, in my process I execute BAPI_ENTRYSHEET_CREATE after then I recieve the error...
I think it is some trash in execution context.... -
BAPI for approving service entry sheets
Hi All,
I want to approve a service entry sheet
I am using the BAPi - BAPI_ENTRYSHEET_CREATE, I am able to create a service entry sheet but unable to approve it.
Please let me know if there is a BAPi- for approving a service entry sheet.
Regards
ShivaHi,
Try this BAPI " BAPI_SERVICE_CREATE ".
Regards
Milan -
Hi,
I put all required data in BAPI (BAPI_ENTRYSHEET_CREATE) and executed it.
It gives return message saying service entry successfully created and gave the SES number.
I went to ML81N for seeing the service entry but gives message no service entry exists.
Why like this?
Do I need to do something else for viewing this?
Please advice.
Thankshi,
have you used the commit function too in se37, then only the values get updated.
se37- bapi_entrysheet_create
select header-- function module---> test sequence.
here you enter the two function modules -Bapi_entrysheet_create,bapi_transaction_commit.
do the same procedure as followed by you before in addition to this.
REgards,
velu -
Examples on values to be given for bapi_entrysheet_create
hi ,
just have a problem through the bapi i am able to create the entry sheet but the material , i mean the line items are not created.Here is an example of values given to various import/tables parameters of BAPI 'BAPI_ENTRYSHEET_CREATE'.
Hope this will help you.
<u><b>ENTRYSHEETHEADER</b></u>
PCKG_NO 0000000001
SHORT_TEXT TEST
PO_NUMBER 4500017443
PO_ITEM 00010
BLOCK_IND
SCORE_TIME 0
SCORE_QUAL 0
DOC_DATE 12.10.2005
POST_DATE 12.10.2005
REF_DOC_NO
ACCASSCAT F
COMM_NO
USER_FIELD
ACCEPTANCE X
<u><b>ENTRYSHEETACCOUNTASSIGNMENT</b></u>
PCKG_NO 0000000001
SERIAL_NO 01
GL_ACCOUNT 417000
BUS_AREA 9900
COSTCENTER 9010
SD_DOC
ITM_NUMBER 000000
ASSET_NO
SUB_NUMBER
ORDER
CO_AREA 2000
TO_COSTCTR
TO_ORDER
TO_PROJECT
COST_OBJ
PROF_SEG 0000000000
PROFIT_CTR 3402
<u><b>ENTRYSHEETSERVICES</b></u> (two lines)
PCKG_NO 0000000001
LINE_NO 0000000001
EXT_LINE 0000000000
OUTL_LEVEL 0
OUTL_NO
OUTL_IND X
SUBPCKG_NO 0000000002
SERVICE
SERV_TYPE
EDITION 0000
SSC_ITEM
EXT_SERV
QUANTITY 0,000
BASE_UOM
UOM_ISO
OVF_TOL 0,0
OVF_UNLIM
PRICE_UNIT 0
GR_PRICE 0,0000
FROM_LINE 1
TO_LINE
PCKG_NO 0000000002
LINE_NO 0000000002
EXT_LINE 0000000020
OUTL_LEVEL 0
OUTL_NO
OUTL_IND
SUBPCKG_NO 0000000000
SERVICE 3000000000017
SERV_TYPE
EDITION 0000
SSC_ITEM
EXT_SERV
QUANTITY 2,000
BASE_UOM AU
UOM_ISO PCE
OVF_TOL 0,0
OVF_UNLIM
PRICE_UNIT 1
GR_PRICE 100 000,0000
FROM_LINE
TO_LINE
SHORT_TEXT WINDOW INSTALLATION
<u><b>ENTRYSHEETSRVACCASSVALUES</b></u>
PCKG_NO 0000000002
LINE_NO 0000000002
SERNO_LINE 01
PERCENTAGE 100,0
SERIAL_NO 01
QUANTITY 2,000
NET_VALUE 100 000,00 -
BAPI_EntrySheet_Create Issue
Hi Experts,
I am using the BAPI_EntrySheet_Create to create a SES without using the service master. I provide the entrysheet header, account assignment and Entryservices information. The BAPI returns with message that SES has been successfully created. But when displaying the SES using ML81N transaction, there is no line information displayed like short text, quantity or gross price.
Please help.
Thanks,Since it's been a while you wrote I assume this problem was solved.
But if you didn't....:
For calling the service, you must specify the service included in the PO by entering such values as PACKNO and SUBPACKNO. You can find this information in EKPO by entering with EBENL and EBELP, and extracting the value that EKPO-PAKNO gives you. Then go to table ESLL and get SUBPACKNO. Be sure to transfer this information (along with other parameters) to bapi BAPI_ENTRYSHEET_CREATE in a correct way or it'll crash.
Currently we have an issue with this bapi: after getting the service, an endless loop appears and a time-out dump arises.
If nothing works, I'll write a message with more details to call for help.
Sebastian -
BAPI_ENTRYSHEET_CREATE ESSR-BKTXT
In ML81N I have field ESSR-BKTXT (document header text).
How can I fill it using BAPI BAPI_ENTRYSHEET_CREATE?. It seems not present in structure BAPIESSRC.
Please help me.I faced the similar issue recently in one of the projects. The solution that i have opted is as below -
1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.
2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.
Hope this helps to other readers too!
- Thanks,
Urvi. -
Short text and number of outline not maintained error in BAPI_ENTRYSHEET_CREATE
Hi Experts,
I am using BAPI BAPI_ENTRYSHEET_CREATE' for creation of service entry sheets.
I passed below data into the respective parameters
Entry Header Sheet -
SHORT_TEXT
THIS IS SAMPLE TEXT
PO_NUMBER
231002130
PO_ITEM
00010
And just executed BAPI, I am able to get the ENTRYSHEET NUMBER.
Next I tried passing below data again
Entry Header Sheet -
SHORT_TEXT
THIS IS SAMPLE TEXT
PO_NUMBER
231002130
PO_ITEM
00010
ENTRYSHEETSERVICES:
QUANTITY
10.000
BASE_UOM
AU
And then executed - I am getting an error saying 'Short text and number of outline not maintained'.
My input file to BAPI contains the structure as PO, Item Number, Short Text for Service Entry sheet and Quantity.
Please suggest if any ideas.
Regards,
RafiHi All,
I resolved this. Please refer screen shots below for solution
Below screen shots show about the data to be passed to BAPI_ENTRYSHEET_CREATE
Regards,
Rafi -
BAPI-user exit for service entry
Is it possible to use a user exit in a BAPI?
I have a BAPI --- BAPI_ENTRYSHEET_CREATE
Is there any user exit which I can write code in this BAPI?
please suggest?Hello,
Yes; you can write user exit code for BAPI. BAPI_ENTRYSHEET_CREATE calls the function MS_CREATE_SERVICE_ENTRY_MULTI which has few user exits. If you search using SMOD with package 'ML', you will see all of these enhancements.
Thanks,
Venu
Maybe you are looking for
-
Playlists don't work with separate audio clips
I have a timeline with 8 different clips and chapter playlists set up to play each clip individually and to play them in pairs. This works fine. But when I add audio to the timeline it goes wrong. I have 8 different audio clips that match up with th
-
Itunes will not open because it says the file required to start it is gone.
I can't get my iTunes to start because it says the file needed to open iTunes was lost,
-
EVENT_KEYPRESS in Linux not consistant
Hello all, things don't happen as expected in a keypress event in a panel callback: printf("\n0x%08x - %s%s%s '%c' - Remains 0x%08x", eventData1, eventData1&VAL_SHIFT_MODIFIER?" Shift":"", eventData1&VAL_UNDERLINE_MODIFIER?" Alt":"", eventData1&VAL_M
-
Export to Playstation 3 broken in Final Cut Express 4 ?
I used to use FCE3, and would export HD to my Playstation 3 successfully. I use "Export to MP4" H.264, 1920x1080, 25000Kbps (25 Mbps) 30 fps frame rate, high quality. Worked every time. Upgraded to Final Cut Express 4.0.1 and now the PS3 says the fil
-
Is there any way to recover lost contact information from iCloud once it's been erased?