ERROR IN BAPI_REQUISITION_CREATE
E 06138 NOT POSSIBLE TO DETERMINE A CONSUMPTION ACCOUNT ERROR IS COMING WHEN I AM USING BAPI_REQUISITION_CREATE, IN THE ACCOUNT ASSIGNMENT
pLEASE rEPLY.
NEERAJ.
HI
I guess the process is unable to determine the account for posting. Try to create a PR online and see if the same error encounters. If yes, request your functional consultant to help do the setup for the same.
Kind Regards
Eswar
Similar Messages
-
ERROR IN BAPI_REQUISITION_CREATE IN EXIT
Dear all,
when i doing the bapi BAPI_REQUISITION_CREATE in forground( in se37) it is generating purchase requisition no. burt when i calling this F M in exit and passed the same values in the internal table of bapi it will generating the errors .
Please help me.Control indicators for controlling area 1000 do not exist though the required configuration for controlling is maintained.
Edited by: shashisapsd on May 12, 2010 9:09 AM -
Very urgent: Error in BAPI_REQUISITION_CREATE- very urgent
Hi,
Im encountering the error "No fund centered entered/ derived" even if I put fund center, cost center, profit center, gl acct, and commitment item in the account assignment table with blank account assignment category.
I debugged the program and even if we have derivation rules, the entries for fund center cost center etc. are not being filled because theyre blank to start with (FM Rule Cost center->fund center)
Please help. been working with this for the whole day.
thanks.
tykenTyken,
You are supposed to pass the COmmitment item in field CMMT_ITEM in Structure REQUISITION_ACCOUNT_ASSIGNMENT
Hope this helps
VB -
Error related to depreciation while creating PR - BAPI_REQUISITION_CREATE
Hi Experts,
We are using the BAPI_REQUISITION_CREATE to create the PR (Purchase requisition).
While creating the PR we were got stucked by the following errors.
- Parallel depreciation area 33 is not posted
-You cannot post to this asset (No depreciation areas present)
Please guide us if someone had faced similar error/suituation.
Early reply will be really appreciated.
Thanks,
Ravi.KHi Ravi,
Generally : the system checks whether depr.areas exist for this dummy asset and if not, the error AA 304 is prompted.
Further checks are made when using (N) transactions, that's why you get AA 025 when posting with ME51N.
Best regards Bernhard -
Using BAPI_REQUISITION_CREATE has Error Message ME038 "No direct postings c
I am using BAPI_REQUISITION_CREATE to create PR on Lotus Notes but there are Error Message ME038 "No direct postings can be made to G/L acct. XXXXX in CoCode XXXX".
When I created PR in T-code ME51N on SAP, there are not this Error Message .
I have checked G/L acct. in fs00, the Automatic Posting box is checked.
How do I resolve this problem if the Automatic Posting box is still checked.Hello,
Try passing the following fields in the table REQUISITION_ACCOUNT_ASSIGNMENT
PREQ_NO <blank it will be created>
PREQ_ITEM <line item number>
SERIAL_NO '01'
Hope it helps...!
Edited by: Anup Deshmukh on Jul 8, 2010 5:52 AM -
BAPI_REQUISITION_CREATE issues ME299-Error in commitments check
Hello:
We have SAP R/3 4.6c with FI-FM implemented. We also have an external .net program that invokes BAPI_REQUISITION_CREATE. Technically all is working fine, however we have a functional problem: when one the "n" purchase requisition (PR) material lines has exceeded in the budget for a certain combination of commitment item and fund center, the function issues the message error "ME299 indicating an error in the commitment check" but, there is no way to know in which PR line the error occured. I was looking at the function BAPI_ACC_PURCHASE_REQUI_CHECK to use as a complement but seems it only works when we have the PR "created" in SAP, we also, can not determine the values to type in the fields: COMPO_ACC, OBJ_TYPE, OBJ_KEY and OBJ_SYS. Do you have some solution or at least a suggestion about our problem?
Thanks!!Hi,
I just want to give a clue.
Try the same scenario in a ABAP Program with N lines.
Looks like the error is ocuuring from the program LEBNEF07.
Please check the line no 92. (MESSAGE e299(me) RAISING open_item_error.)
Put a break-point here and try to run manually.
Thanks,
Ramakrishna -
Error KI248 in ME51N (BAPI_REQUISITION_CREATE)
Hi,
I have a little problem: when i am using de Tr ME51N for a kind of data i have a problem derivating the PA object (Error KI248), however when i push the button the program solve the conflict a generate the document.
Using the same kind of data with the function BAPI_REQUISITION_CREATE, the same error is generated but i don`t know how to tell to the function how continue the process and generate the document.
Can anybody tell me if exists any note or enhancement to solve this issue?
Thanks a lot.
Carlos SIlvaFrom the long text for this error:
Enter a cost center, an order, a project, or a cost object that is not statistical.
Rob -
Hi All,
I'm using BAPI_REQUISITION_CREATE to create the PR . The PR is created successfully with service lines. The service lines for PR item has to be assigned to different account assignment. My problem is that account assignment is not getting assigned to the service line for multiple account assignment cases, instead the account assignment is blank for the sevice line.
Here is part of my code.
For Account Assignment
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-g_l_acct = '0000630010'.
t_requisitionaccoun-cost_ctr = '0801112560'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '02'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00020'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
For Service account Assignment
*<b>PR item 10</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
Service item 2
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 3.
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '02'
APPEND t_requisitionsrvaccass.
*<b>PR item 20</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000004'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
With this code, what I get is the blank account assignment for PR item 10 and correctly filled account assignment for PR item 20.
Does anyone done this before and can give me some help. Thanks.Hi, can you send me an example of this BAPI.
I have the same requeriment, i'm new with bapis
thanks -
BAPI_REQUISITION_CREATE, Need an error for Service lines no material grp
In Purchase requisition must not be created after passing all the data in reqitem, accass, service, item_limit, Item_text if there is no material group in the service line.
Is it possible? BAPI is creating PR without material group. I want to restrict that.Hi,
Request you to post this query to appropriate forum, as this does not pertain to travel management, to get a quick response.
Regards,
LNB -
Error on creation of PR using BAPI_PR_CREATE
Hello All,
while creating a PR using BAPI_PR_CREATE getting an error simultaneously a PR is creating
The error is Enter a G/L Account. Even when I am providing with the G/L Account number.
There is one input field as SERIAL_NO in tables PRACCOUNT and PRACCOUNTX. If I give SERIAL_NO as 00 in tables PRACCOUNT and PRACCOUNTX, then it gives the same error but and no PR is created but if i give 01 it gives the same error but and now PR is created simultaneouly .
Using the same details if I execute BAPI_REQUISITION_CREATE and SERIAL_NO as 00, the PR is successfully created.
Please let me know if anybody worked on it.
Thanks & Regards,
Ruchi TiwariHi,
you just need to populate the following fields:
praccount-preq_item = '10'. <--- this depends on how many items you have in your PR.
praccount-serial_no = '1'. <--- this one is required, in case you split the qty of the item by G/L or Cost Center.
dont forget to populate the ff. fields in the Purchase Requisition Change Parameter - Account Assignment table.
praccountx-preq_item = '10'.
praccountx-serial_no = '1'.
Thanks & regards,
ShreeMohan -
How to capture an error while creating a purchase requisition
Hello All,
I append 50 line items while creating a PR using BAPI_REQUISITION_CREATE and I get an error in RETURN.
So can I capture the line item which exactly has that error.
I mean to say how to figure out the line item with error, if the BAPI gives an error.
Please suggest.
Thanks & Regards,
Tarun GambhirI could not find TEST_RUN option in these bapis
Roundway will be
1. Use BAPI_REQUISTION_CREATE with single line item and create PR then take the requisiton number
2. Use ME_UPDATE_REQUISITION. and add line by line into same PR (Within loop)
BAPI_REQUISITION_CHANGE can only be possible to edit existing line and you cannot able to add new lines,
a®s
Edited by: a®s on Jul 29, 2009 11:13 AM -
BAPI_REQUISITION_CREATE: Err-No account assignment exists for service line
Hi Frnds,
I am using bapi BAPI_REQUISITION_CREATE to create PR with mutiple Service line.
I am getting an error message SE518 - No account assignment exists for service line 0000000000.
Can anyone of you help me out to solve this issue?
Thanks in advance
SuganyaHI
I need to create pucharse-requisition for services with account assignment K.
execute BAPI_REQUISITION_CREATE with an item with a service and work well.
When I prove with two items each one with its service gives east error me
"E518, No account assignment exists for service line 0000000010"
my source is:
REPORT Z_WGS_BAPI_REQUISIT_CREATE_002
NO STANDARD PAGE HEADING LINE-SIZE 180
START-OF-SLECTION *
DATA:
W_NUMBER LIKE BAPIEBANC-PREQ_NO,
W_REQUISITION_ITEMS LIKE BAPIEBANC OCCURS 0 WITH HEADER LINE,
W_REQUISITION_ACCOUNT LIKE BAPIEBKN OCCURS 0 WITH HEADER LINE,
W_REQUISITION_SERVICES LIKE BAPIESLLC OCCURS 0 WITH HEADER LINE,
W_REQUISITION_SRV_VALUES LIKE BAPIESKLC OCCURS 0 WITH HEADER LINE,
W_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE,
W_RETURN1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
perform item_10.
perform item_20.
perform bapi.
form item_10.
**Item 10
W_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
W_REQUISITION_ITEMS-PREQ_ITEM = '00010'.
W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
W_REQUISITION_ITEMS-ITEM_CAT = '9'.
W_REQUISITION_ITEMS-PUR_GROUP = 306.
W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
W_REQUISITION_ITEMS-PLANT = 'CO95'.
W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 1'.
W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
W_REQUISITION_ITEMS-QUANTITY = '1.000'.
W_REQUISITION_ITEMS-PCKG_NO = '0000000001'.
W_REQUISITION_ITEMS-GR_IND = 'X'.
W_REQUISITION_ITEMS-IR_IND = 'X'.
W_REQUISITION_ITEMS-FIXED_VEND = space.
W_REQUISITION_ITEMS-INFO_REC = space.
APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
W_REQUISITION_ACCOUNT-PREQ_ITEM = '00010'.
W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
W_REQUISITION_SERVICES-PCKG_NO = '0000000001'.
W_REQUISITION_SERVICES-LINE_NO = '0000000001'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000000'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000002'.
W_REQUISITION_SERVICES-FROM_LINE = '1'.
W_REQUISITION_SERVICES-PLN_LINE = '0000000001'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SERVICES-PCKG_NO = '0000000002'.
W_REQUISITION_SERVICES-LINE_NO = '0000000002'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000010'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000000'.
W_REQUISITION_SERVICES-SERVICE = '000000000003000001'.
W_REQUISITION_SERVICES-QUANTITY = '5.000'.
W_REQUISITION_SERVICES-BASE_UOM = 'UN'.
W_REQUISITION_SERVICES-GR_PRICE = '150.0000'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SRV_VALUES-PCKG_NO = '0000000002'.
W_REQUISITION_SRV_VALUES-LINE_NO = '0000000002'.
W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
W_REQUISITION_SRV_VALUES-SERIAL_NO = '01'.
W_REQUISITION_SRV_VALUES-PERCENTAGE = '100.0'.
APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
endform.
form item_20.
item 20
W_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
W_REQUISITION_ITEMS-PREQ_ITEM = '00020'.
W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
W_REQUISITION_ITEMS-ITEM_CAT = '9'.
W_REQUISITION_ITEMS-PUR_GROUP = '306'.
W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
W_REQUISITION_ITEMS-PLANT = 'CO95'.
W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 2'.
W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
W_REQUISITION_ITEMS-QUANTITY = '1.000'.
W_REQUISITION_ITEMS-PCKG_NO = '0000000003'.
W_REQUISITION_ITEMS-GR_IND = 'X'.
W_REQUISITION_ITEMS-IR_IND = 'X'.
W_REQUISITION_ITEMS-FIXED_VEND = space.
W_REQUISITION_ITEMS-INFO_REC = space.
APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
W_REQUISITION_ACCOUNT-PREQ_ITEM = '00020'.
W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
W_REQUISITION_SERVICES-PCKG_NO = '0000000003'.
W_REQUISITION_SERVICES-LINE_NO = '0000000003'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000000'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000004'.
W_REQUISITION_SERVICES-FROM_LINE = '1'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SERVICES-PCKG_NO = '0000000004'.
W_REQUISITION_SERVICES-LINE_NO = '0000000004'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000010'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000000'.
W_REQUISITION_SERVICES-SERVICE = '000000000003000002'.
W_REQUISITION_SERVICES-QUANTITY = '10.000'.
W_REQUISITION_SERVICES-BASE_UOM = 'UN'.
W_REQUISITION_SERVICES-GR_PRICE = '90.0000'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SRV_VALUES-PCKG_NO = '0000000004'.
W_REQUISITION_SRV_VALUES-LINE_NO = '0000000004'.
W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
W_REQUISITION_SRV_VALUES-SERIAL_NO = '01'.
W_REQUISITION_SRV_VALUES-PERCENTAGE = '100.0'.
APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
endform.
form bapi.
BAPI
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR =
AUTOMATIC_SOURCE = 'X'
IMPORTING
NUMBER = W_NUMBER
TABLES
REQUISITION_ITEMS = W_REQUISITION_ITEMS
REQUISITION_ACCOUNT_ASSIGNMENT = W_REQUISITION_ACCOUNT
REQUISITION_ITEM_TEXT =
REQUISITION_LIMITS =
REQUISITION_CONTRACT_LIMITS =
REQUISITION_SERVICES = W_REQUISITION_SERVICES
REQUISITION_SRV_ACCASS_VALUES = W_REQUISITION_SRV_VALUES
RETURN = W_RETURN.
REQUISITION_SERVICES_TEXT =
REQUISITION_ADDRDELIVERY =
EXTENSIONIN =
ejecuta commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = W_RETURN1.
LOOP AT W_RETURN. .
WRITE: / SY-TABIX,
/ 'W_RETURN-TYPE:', W_RETURN-TYPE,
/ 'W_RETURN-CODE:', W_RETURN-CODE,
/ 'W_RETURN-MESSAGE:', W_RETURN-MESSAGE,
/ 'W_RETURN-LOG_NO:', W_RETURN-LOG_NO,
/ 'W_RETURN-LOG_MSG_NO:', W_RETURN-LOG_MSG_NO,
/ 'W_RETURN-MESSAGE_V1:', W_RETURN-MESSAGE_V1,
/ 'W_RETURN-MESSAGE_V2:', W_RETURN-MESSAGE_V2,
/ 'W_RETURN-MESSAGE_V3:', W_RETURN-MESSAGE_V3,
/ 'W_RETURN-MESSAGE_V4:', W_RETURN-MESSAGE_V4.
ULINE.
ENDLOOP.
endform. -
With 'BAPI_REQUISITION_CREATE' not able to create service line item
Hi Experts
Please help me with this.
Am working with 'BAPI_REQUISITION_CREATE'. Able to create PR ( with constant data) but the service line item is not seen with ME53N. No error message displayed. Have checked the SAP note 420331.
The code is as below:
move '9' to it_BAPIEBANC-ITEM_CAT.
move 'sdfgsdfgdfsg' to it_BAPIEBANC-SHORT_TEXT.
move 'F' to it_BAPIEBANC-ACCTASSCAT.
move 1 to it_BAPIEBANC-QUANTITY.
move 'M2' to it_BAPIEBANC-UNIT.
move '1' to it_BAPIEBANC-DEL_DATCAT. "it_file-del_date_cat
move sy-datum to it_BAPIEBANC-DELIV_DATE.
move '100CC' to it_BAPIEBANC-MAT_GRP.
move '1CEN' to it_BAPIEBANC-PLANT.
move 'CIVIL' to it_BAPIEBANC-PREQ_NAME.
move '1001' to it_BAPIEBANC-PURCH_ORG.
move 'P11' to it_BAPIEBANC-PUR_GROUP.
MOVE 'NB' TO it_BAPIEBANC-DOC_TYPE.
MOVE 'X' TO it_BAPIEBANC-GR_IND.
MOVE 'X' TO it_BAPIEBANC-IR_IND.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'SERVICE'
IMPORTING
NUMBER = v_packno
RETURNCODE = RCODE.
it_BAPIEBANC-PCKG_NO = v_packno.
MOVE '00010' to it_BAPIEBANC-PREQ_ITEM.
APPEND it_BAPIEBANC.
CLEAR it_BAPIEBANC.
move '000001000341' to it_BAPIEBKN-ORDER_NO.
move 'AMINFRA' to it_BAPIEBKN-COST_CTR.
move '0040401100' to it_BAPIEBKN-G_L_ACCT.
MOVE '00010' to it_BAPIEBKN-PREQ_ITEM.
MOVE '01' to it_BAPIEBKN-SERIAL_NO.
APPEND it_BAPIEBKN.
CLEAR it_BAPIEBKN.
move v_packno to IT_BAPIESLLC-PCKG_NO.
IT_BAPIESLLC-subpckg_no = v_packno + 1 .
move '0000000001' to IT_BAPIESLLC-LINE_NO.
move '0000000000' to IT_BAPIESLLC-EXT_LINE.
MOVE 'sdfgsdfgf' TO IT_BAPIESLLC-SHORT_TEXT.
IT_BAPIESLLC-OUTL_IND = 'X'.
IT_BAPIESLLC-FROM_LINE = '1'.
APPEND IT_BAPIESLLC.
CLEAR IT_BAPIESLLC.
**service with master
IT_BAPIESLLC-PCKG_NO = V_PACKNO + 1.
IT_BAPIESLLC-subpckg_no = 0 .
move '0000000002' to IT_BAPIESLLC-LINE_NO.
move '0000000010' to IT_BAPIESLLC-EXT_LINE.
move '000000000003000193' TO IT_BAPIESLLC-SERVICE.
MOVE 'sdfgsdfgf' TO IT_BAPIESLLC-SHORT_TEXT. "it_file-DESC(40)
MOVE 1 TO IT_BAPIESLLC-QUANTITY. "it_file-QTY
MOVE 'M2' TO IT_BAPIESLLC-BASE_UOM. "it_file-UNIT
IT_BAPIESLLC-UOM_ISO = 'MTK'.
MOVE 1 TO IT_BAPIESLLC-price_unit .
IT_BAPIESLLC-GR_PRICE = 100.
APPEND IT_BAPIESLLC.
CLEAR IT_BAPIESLLC.
service without master
IT_BAPIESLLC-PCKG_NO = V_PACKNO + 1.
IT_BAPIESLLC-subpckg_no = 0 .
move '0000000003' to IT_BAPIESLLC-LINE_NO.
move '0000000020' to IT_BAPIESLLC-EXT_LINE.
move '000000000003000193' TO IT_BAPIESLLC-SERVICE.
MOVE 'sdfgsdfgf' TO IT_BAPIESLLC-SHORT_TEXT. "it_file-DESC(40)
MOVE 1 TO IT_BAPIESLLC-QUANTITY. "it_file-QTY
MOVE 'M2' TO IT_BAPIESLLC-BASE_UOM. "it_file-UNIT
IT_BAPIESLLC-UOM_ISO = 'MTK'.
MOVE 1 TO IT_BAPIESLLC-price_unit .
IT_BAPIESLLC-GR_PRICE = 100.
APPEND IT_BAPIESLLC.
CLEAR IT_BAPIESLLC.
it_BAPIESKLC-PCKG_NO = v_packno + 1.
it_BAPIESKLC-LINE_NO = '0000000002'.
it_BAPIESKLC-SERNO_LINE = '01'.
it_BAPIESKLC-SERIAL_NO = '01'.
it_BAPIESKLC-PERCENTAGE = '100'.
it_BAPIESKLC-QUANTITY = 2.
APPEND IT_BAPIESKLC.
CLEAR IT_BAPIESKLC.
it_BAPIESKLC-PCKG_NO = v_packno + 1.
it_BAPIESKLC-LINE_NO = '0000000003'.
it_BAPIESKLC-SERNO_LINE = '01'.
it_BAPIESKLC-SERIAL_NO = '01'.
it_BAPIESKLC-PERCENTAGE = '100'.
it_BAPIESKLC-QUANTITY = 2.
APPEND IT_BAPIESKLC.
CLEAR IT_BAPIESKLC.
CALL FUNCTION 'BAPI_REQUISITION_CREATE' IMPORTING
NUMBER = REQ_NO
TABLES
REQUISITION_ITEMS = it_BAPIEBANC
REQUISITION_ACCOUNT_ASSIGNMENT = it_BAPIEBKN
REQUISITION_SERVICES = IT_BAPIESLLC
REQUISITION_SRV_ACCASS_VALUES = it_BAPIESKLC
RETURN = IT_BAPIRETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Thnx and Regards
EbrahimFirst read [Note 499626 - FAQ: BAPIs in the service procurement|https://service.sap.com/sap/support/notes/499626] and especially [Note 420331 - BAPI_REQUISITION_CREATE: Template for services|https://service.sap.com/sap/support/notes/420331]
Regards,
Raymond -
Error while creating Requisition
Hi experts,
I am getting this error from RFC while creating requisition in portal for multiple line items.
Screen output without connection to user., error key: RFC_ERROR_SYSTEM_FAILURE
I have used standard BAPI: BAPI_REQUISITION_CREATE for creating the requisition in portal.
It works fine for a single line item but does not work multiple line items.I have checked the JCOs.It is correct.
Please suggest.
Thanks,
Rajanihi!
After importing structures to the model in webdynpro and mapping it to the corresponding field in the table of webdynpro screen, you should go through this code in on clicking of an event or triggering of a button event
public void executePurchaseRequisitionCreate( )
//@@begin executePurchaseRequisitionCreate()
try {
for (int i = 0;
i < wdThis.wdGetContext().nodeTableNode().size();
i++) {
Bapiebanc re = new Bapiebanc();
IPublicPurchaseRequisitionCustomCotroller.ITableNodeElement tn =
wdThis
.wdGetContext()
.nodeTableNode()
.getTableNodeElementAt(
i);
re.setPreq_Item(tn.getPreq_Item());
re.setMaterial(tn.getMaterial());
re.setUnit(tn.getUnit());
re.setQuantity(tn.getQuantity());
re.setDeliv_Date(tn.getDeliv_Date());
re.setPlant(tn.getPlant());
re.setPur_Group(tn.getPur_Group());
re.setDoc_Type(tn.getDoc_Type());
re.setPurch_Org(tn.getPurch_Org());
re.setDes_Vendor(tn.getDes_Vendor());
re.setStore_Loc(tn.getStore_Loc());
// wdContext
// .currentBapi_Requisition_Create_InputElement()
// .modelObject()
// .addRequisition_Items(re);
wdContext
.nodeBapi_Requisition_Create_Input()
.currentBapi_Requisition_Create_InputElement()
.modelObject()
.addRequisition_Items(re);
//execution of Bapi
wdThis
.wdGetContext()
.currentBapi_Requisition_Create_InputElement()
.modelObject()
.execute();
} catch (Exception ex) {
msgMgr =
(MessageManager) wdThis
.wdGetAPI()
.getComponent()
.getMessageManager();
msgMgr.reportException("Error from bapi: " + ex.toString(), true);
ex.printStackTrace();
wdContext.nodeOutput().invalidate();
wdContext.nodeRequisition_Items().invalidate();
//@@end -
BAPI_REQUISITION_CREATE with automatic ticking of Goods Receipt Indicator
Hi,
We're experiencing a problem with BAPI_REQUISITION_CREATE. We use this BAPI in our Purchase Requisition (PR) upload program. After successful run of the program it generates a PR number. When we try to look at the PR using ME53N, the default values assigned to the account assignment category are not properly populated. For example, account assignment Order (F) should by default tick the Goods Receipt and Invoice Receipt checkbox. But using the BAPI, it does not default it that way. Have you encountered the same error before? Is there a note that would fix this bug? I'm thinking if there's no note I might just check on the table of the config.Hi Jackie,
I am assuming when you say "the the values should come from the configuration", they are in place. Also when you manually do create a requisition of type F it would default the values, however with BAPI it bypasses the configurations and hence you are not able to get the needed values.
So do set the relavant fields in the BADI to have the fields populated in the screen.
Hope this helps
Abhijit
Maybe you are looking for
-
Multiple Scan 20" on a Mac mini ?
I want to make a low expensive change of computer. Is that possible to connect a Multiple Scan 20" on a Mac mini ? (Multiple scan have a DB-15 connector) Thanks. Claude
-
CRVS2010 Beta - Hyperlinks don't work in textobjects
I just wanted to report a bug that will hopefully get fixed in the November version of Crystal Reports for Visual Studio 2010. HyperLinks do not work! they cut off any url with a querystring in it. Note: I can create one in five seconds in the versi
-
Dear All, I need to hide the following menu bar in oracle forms at run time Action Edit Query Block Record Field Window Help -----(It will Show at run Time) Below some icons,ie, Save,Print,Print Setup,Exit,etc How to do it?Please help me.. Thanks and
-
JLayeredPane alternative for SWT
Hi there, I have recently started working in SWT, have been long working in Swing. I post this question here since I didn't find any specific forum for SWT queries, which btw I think is the need of the hour. SWT definitely calls for a separate dedica
-
Airtunes on a G3 Powerbook using non airport pc card
hello, I'm running a G3 powerbook with a belkin pc card which connects to a wireless network. I also have a macbook and a airport express which I use for airtunes which is great. Can I use my G3 somehow to stream music to the airport express and use