Bapi_requisition_create
Hi all,
I am looking for the way to pass to the bapi in object the Header Texts for Purchase Requisition.
Did anyone else have my same problem? Do you have any suggest for me?
Thanks Regards
Hi,
You can use FM SAVE_TEXT to save PR's header text after BAPI_REQUISITION_CREATE was committed.
CLEAR HEADER.
HEADER-TDOBJECT = 'EBANH'.
HEADER-TDNAME = '0010000000'
HEADER-TDID = 'B01'.
HEADER-TDSPRAS = SY-LANGU.
CLEAR I_LINES.
REFRESH I_LINES.
I_LINES-TDFORMAT = '*'.
I_LINES-TDLINE = 'INSERT HEADER DATA'.
APPEND I_LINES.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = HEADER
SAVEMODE_DIRECT = 'X'
IMPORTING
NEWHEADER = HEADER
TABLES
LINES = I_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Ferry Lianto
Similar Messages
-
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 -
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 -
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 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 -
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 -
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 -
PR created using ME51N Vs. PR created using BAPI_REQUISITION_CREATE - Probl
Hello
When I create a purchase requisition manually using ME51N with item category L, the Components of the material are automatically been exploded. If you just press the components tab of the Material Data tab, we can see the components of the material
But, when I create a PR using BAPI_REQUISITION_CREATE with the same data of the previous PR, then the component tab has no information at all. But If I press the Explode BOM, then I am getting the components. I need the components without exploding BOM as in the case of manual creation of a PR.
Do i need to pass any specific data in the BAPI to get the components ? Any help on this will be highly appriciated.
Thanks & Regards
Venktachalam .Rplease read note 499627. the bapi you are using is not capable of exploding your bom. the explosion is done when you use ME57 on that PR.
-
PR creation using BAPI_REQUISITION_CREATE, Service lines query
Hi,
I am trying to create the PR for service agreements and i'm able to create the same.
My first query is how to populate the data in LIMIT tab(Overall Limit & Expected value) for each line item of PR. I am using BAPI_REQUISITION_CREATE but its not populating the values in LIMIT tab.
2nd Query: BAPI_REQUISITION_CREATE is not checking the validity of the Requisitioner ID and even if the ID is not valis it is creating the PR. Does this BAPI_REQUISITION_CREATE restrict this? I guess it does not. I have created so many PR with invalid ID's while testing and it seems this bapi doesn't care about requisitioner id at all. Please advice some workaround.
Appreciate your help.
Thanks
RandhirSolved.
-
Issue in creating limits value for service PR using BAPI_REQUISITION_CREATE
HI Experts
I am creating a service PR using bapi bapi_requisition_create.I am able to create service PR successfully, but I am not able to set value for overall limit and the Expected value.
I am passing the limits values through bapi, but when I am trying to display those value in the limits tab in ME53N, it gives dump.
Please suggest how can I set the limits value.
regards
AshwiniCould Ashwini or anyone else please suggest how this issue was resolved? I am using BAPI_REQUISITION_CREATE, but the limits I enter in the REQUISITION_LIMITS table, do not get saved, although the Purchase Requisition itself gets created.
-
Bapi BAPI_REQUISITION_CREATE : how to populate data for sevices tab
Hi all,
I am creating a purchase requisition through bapi .I am using bapi BAPI_REQUISITION_CREATE
For creating purchase requisition. The bapi is creating PR.
I need to add item level services details also through bapi.i am Using structure BAPIESLLC to populate data. But the data is not getting populated in the services tab.
For header data i am populating the following data.
itab_bapiebanc-preq_item = '10'.
itab_bapiebanc-doc_type = 'NB'.
itab_bapiebanc-short_text = 'Blinding'.
itab_bapiebanc-quantity = '1'.
itab_bapiebanc-unit = 'AU'.
itab_bapiebanc-deliv_date = '20081027'.
itab_bapiebanc-plant = '1000'.
itab_bapiebanc-pur_group = '001'.
itab_bapiebanc-preq_name = 'tracking no'.
itab_bapiebanc-trackingno = '2/C/1B'.
itab_bapiebanc-mat_grp = '007'.
itab_bapiebanc-acctasscat = 'P'.
itab_bapiebanc-ITEM_CAT = '9'.
itab_bapiebanc-GR_IND = 'X'.
itab_bapiebanc-IR_IND = 'X'.
itab_bapiebanc-FIXED_VEND = ' '.
APPEND itab_bapiebanc.
itab_bapiebkn-wbs_elem = 'E-2004'.
itab_bapiebkn-g_l_acct = '0000417000'.
APPEND itab_bapiebkn.
itab_bapiebantx-PREQ_ITEM = '10'.
APPEND itab_bapiebantx.
when i am adding the above data the p,r is creating sucessfully in the system.
I need to add data in the item level services tab also.
I am populating for services tab .
*----- this part is not working
itab_bapiservices-SERVICE = '100217'.
itab_bapiservices-PCKG_NO = '0000000001'.
itab_bapiservices-LINE_NO = '0000000001'.
itab_bapiservices-EXT_LINE = '0000000010'.
itab_bapiservices-short_text = 'BREAKFAST CNTR TOP; AS PER SPECS'.
itab_bapiservices-QUANTITY = '680'.
itab_bapiservices-BASE_UOM = 'M2'.
itab_bapiservices-GR_PRICE = '23.00'.
itab_bapiservices-MATL_GROUP = '007'.
itab_bapiservices-PRICE_UNIT = '1'.
append itab_bapiservices.
I am populating data for service tab like given above.But the value is not get updaing in purchase requisation.
Please let me know how to populate the data for service tab.
with regards,
ambrose
itab_bapiebantx-text_line = 'Test for Purchase requisiton'.
APPEND itab_bapiebantx.Hello
Try this:
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'SERVICE'
IMPORTING
NUMBER = pacno
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
OTHERS = 8.
itab_bapiservices-PCKG_NO = pacno + 1.
Also Note 499626 - FAQ: BAPIs in the service -
Problem while using BAPI_REQUISITION_CREATE
Hi Friends,
i am working with BAPI_REQUISITION_CREATE for creating Purchase requisition.
i used bapi and pass only basic parameters ..
like
i filled first parameter (item data) of TAB Tables .
Which are---
item
Doc_type = NB
plant
material
qty
requistioner name
deliv_date
purchase grp
its working fine and returning value in importing parameter as
PR number.But when i wrote a report and fill all parameters in
my report and try to display the NUMBER (PR number) then
its not having any value in NUMBER Parameter but in data
base its creating a PR.
Can any one help me y its behaving differently ?date format prob
-
Multiple Account Assignment problem in BAPI_REQUISITION_CREATE
I'm calling BAPI_REQUISITION_CREATE and passing tables REQUISITION_ITEMS and REQUISITION_ACCOUNT_ASSIGNMENT. I'm passing the following to the items table:
'Y' to lt_bapiebanc-acctasscat,
'1' to lt_bapiebanc-distrib,
'1' to lt_bapiebanc-part_inv.
And I'm passing the following to the account assignment table:
v_qty to pt_bapiebkn-preq_qty,
wa_rfq-item to pt_bapiebkn-preq_item,
wa_rfq-glacct to pt_bapiebkn-g_l_acct,
p_unload_pt to pt_bapiebkn-unload_pt.
I receive error: "Please Enter Account Assignment".
I did get a successful Requisition created before including bapiebanc-distrib and bapiebanc-part_inv, but then the multiple account assignment didn't work. I hope somebody can help, I'm getting desperate!
Thanks,
Beth HolbackHi,
can you say me what u did to solve the issue?
since i am facing it now. kindly help me out..
thanks
Suganya -
Problem in BAPI_REQUISITION_CREATE
Dear All,
I am facing problem during Purchase requisition create with the help of BAPI BAPI_REQUISITION_CREATE.When I take material in file text format like(SANDERKOKS) then it will pick and it gives appropriate result.
But when I take alphanumeric material then it is not giving result.
I took data type of internal table field is charectar(18).but still it is giving problrm.
REgards,
AMARThis is my code.Please check and tell me
LOOP AT IT_DATA.
REFRESH IT_MAKT.
CONCATENATE IT_DATA-DEL_DT6(4) IT_DATA-DEL_DT3(2)
IT_DATA-DEL_DT+0(2) INTO V_DATE.
CONCATENATE '00' IT_DATA-PREQ_NO INTO V_PERRQ.
IT_MAKT-PREQ_NO = V_PERRQ .
IT_MAKT-DOC_TYPE = IT_DATA-DOC_TYP.
IT_MAKT-PREQ_ITEM = IT_DATA-PERQ_IT.
IT_MAKT-MATERIAL = IT_DATA-MATNR .
IT_MAKT-QUANTITY = IT_DATA-QUANT .
IT_MAKT-UNIT = IT_DATA-UNIT .
IT_MAKT-PLANT = IT_DATA-PLANT .
IT_MAKT-STORE_LOC = IT_DATA-STO_LC .
IT_MAKT-DELIV_DATE = V_DATE .
APPEND IT_MAKT.
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR = ' '
AUTOMATIC_SOURCE = 'X'
IMPORTING
NUMBER =
TABLES
REQUISITION_ITEMS = IT_MAKT
RETURN = BAPI_RETURN
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ENDIF.
ENDLOOP. -
Why Purchase Reqs created via BAPI_REQUISITION_CREATE are not shown in PR-
Hello,
I got few questions regarding the PReqs:
1.
I'm creating PRs via JCo + BAPI_REQUISITION_CREATE and transactions are confirmed with the new PR numbers. But when I go to PR->Display I do not see them. I can only see them if I go to MM->Purchasing->PR->ListDisplays->General, specify 'Requisitioner' by providing my login. Why is that? Is that normal?
2.
This is more like a user question: When I go to PReq->Display I can only see the las PReq created by me via SAP GUI. How can I see the all?
3.
I'm trying to list all the PReqs created by me using BAPI_REQUISITION_GETITEMS and setting the import parameter "PREQ_NAME" to my SAP user name. But i got nothing back. Could somebody please help me to figure out how I can do that properly? I"m a little confused with the parameter too, I would assume that I need to set a parameter like "CREATED_BY", but in the BAPI import parameters I can only see "PREQ_NAME".
Thank you very much!Refer this article
The Microsoft.SharePoint.SPFieldCollection.AddFieldAsXml method
http://blogs.msdn.com/b/sharepointdev/archive/2011/01/20/why-do-my-new-list-fields-not-appear-on-the-new-edit-or-display-forms.aspx
Please remember to click 'Mark as Answer' on the answer if it helps you
Maybe you are looking for
-
How do I authorize my new netbook?
I bought a new netbook, and when I tried to download my tunes, it said computer not authorized, and I can't find how to authorize it?
-
Secheldule alv report in background
hi experts, i want to secheldule an alv report for repeatedly every friday , and want to see on system automaticly when it get executed ...... can anyone tell me how to achive this.? thanks .
-
Does it harm the battery if we use the laptop while charging?
If we use while charging, is the power required directly taken from the external supply or from the battery itself. Which is the safest way to use the laptop without drawing power from the battery?
-
Regarding HCM Function Modules
Hi Friends I am new to ABAP-HR. Currently I was given some task to enhance MSS team viewer functionality so that "MSS team viewer need to be customized to read the custom evaluation path which incorporates relationship 210 created by UWLs substation
-
Logical : paging out memory to disk.
Hi, We have to reorg the table in production and so I tried to test in test database but everytime I issue move command , logical apply get stopped with error " paging out memory to disk". I tried to increare SGA and allocated more memory for LCR but