on 12-18-2014 1:00 PM
Hi Experts,
We have the below requirement:
SO will be created always with reference to PO in the background. Now we need to pass this SO information to a third party system for which we are triggering an IDOC thru output type(ZOUT), but to trigger the Output we have some conditions like check the output type in PO for ex:if it has ZPUR then trigger otherwise not.
Now my concern here is how we can check the preceding document output type because we cant refer to VBFA while creation, since VBELN in VBFA will not be available in the creation time.
Please suggest how to arrive a logic for this.
Thanks,
Saravanakkumar
Hello Saravanakkumar,
If my understanding is correct you are working on PO - SO process in which system creates Sales order from Purchase order.
Basically PO number is reflect to VBKD-BSTKD if Sales order is created from PO through Idoc type : ORDERS05.
we can get the PO number from Sales order as below.
And
pass these PO number to table NAST and get the output type.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Adding to what has mentioned, I would suggest you to assign a routine to output type ZOUT in output determination procedure in which you can check if output type 'ZPUR' in PO has been triggered successfully. Make use of table NAST.
I'm sure that PO number would be coming in one of the fields of data which is being sent to create SO. I think that you might be using BAPI for SO creation, check in it and you would find PO number during runtime before save.
Regards
SD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply.
The concern here is how do we check the PO number because document flow table cant be used since VBELN no may not be there during creation time.
Besides there is another context where SO should trigger the ZOUT based on another Output type ZORD in the same SO - here also the challenge is how to check ZORD in NAST because we need to have VBELN to pass in the NAST but in creation how do we get VBELN no?
Thanks in Advance
Hi,
you can create an incompletness procedure at header level where you check that field VBKD-BSTKD is filled, setting status for this field equal to 03, means blocked for delivery. Assign this incompletness procedure to your sales order.
In NACE, in V1 (sales), check what´s your procedure (standard V10000) and for the message your´re using, create a requirement that checks if sales order is blocked for delivery (check with abaper for coding)
Regards,
JM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.